15#ifndef SWRADIYOMAINCONTROL_H
16#define SWRADIYOMAINCONTROL_H
19#include <QAudioBuffer>
20#include <QMediaPlayer>
25#include <swbuttongroup.h>
26#include <swlistcontrol.h>
27#include <swradiyobasewidget.h>
29#include <swdialdialog.h>
30#include <ui_swradiyomainwidget.h>
68 static constexpr const char* SWPLAYBUTTONNSTYLE =
":/data/radiyo.playbutton.css";
69 static constexpr const char* SWPAUSEBUTTONNSTYLE =
":/data/radiyo.pausebutton.css";
70 static constexpr const char* SWTITLELABELSTYLE =
":/data/radiyo.titlelabel.css";
72 typedef QVector<SWAbstractControl*> SWControlVec;
77 QSettings& settings();
102 return *( _controls[_currentCtrlID] );
111 void swapControls(
int newID );
116 static const int RADIYO_SMALL_X = 480;
117 static const int RADIYO_SMALL_Y = 320;
118 static const int RADIYO_LARGE_X = 800;
119 static const int RADIYO_LARGE_Y = 480;
123 QString _buttonPlayCss, _buttonPauseCss;
125 bool _playerActive =
false;
132 SWControlVec _controls;
140 int _senderDialValue = -1;
141 int _volumeDialValue = -1;
void onIDTriggered(int id)
onIDTriggered
void onShutDown()
onShutDown
void loadSettings()
loadSettings: die Einstellungen laden (fonts etc.)
void onVolumeValueChanged(int value)
onVolumeValueChanged
void onSenderValueChanged(int value)
onSenderValueChanged
void onVolumeButtonClicked()
onVolumeButtonClicked() wechselt zwischen Play- und Standby-Mode
void onSenderButtonClicked()
swapControls
void togglePlayMode()
startPlaying: von aussen und von innen
virtual ~SWRaDIYoMainWidget()
~SWRaDIYoMainWidget Destructor.
void saveSettings()
saveSettings
SWRaDIYoMainWidget(QWidget *parent=nullptr)
SWRaDIYoMainWidget –doku begins here —.