1 #ifndef REMOTECONTROL_H 2 #define REMOTECONTROL_H 6 #include <QWebSocketServer> 26 QWebSocketServer *_webSocketServer;
27 QWebSocket *_webSocket;
29 QUdpSocket *_udpSocket;
53 void decodeResponseFromClient(
const QString &message);
55 void initializeConnection();
57 void mediaPlayerStatedChanged(QMediaPlayer::State state);
59 void sendActivePlaylist(
int index);
61 void sendActivePlaylists()
const;
63 void sendAllPlaylists()
const;
65 void sendPosition(qint64 pos, qint64 duration);
67 void sendTrackInfos(
const QString &track);
69 void sendVolume(qreal volume);
72 #endif // REMOTECONTROL_H Definition: remotecontrol.h:40
Definition: remotecontrol.h:38
Definition: remotecontrol.h:37
The RemoteControl class is a class which allows client-side applications (like App on SmartPhones) to...
Definition: remotecontrol.h:14
Definition: remotecontrol.h:34
void startServer()
Definition: remotecontrol.cpp:42
void changeServerPort(int port)
Definition: remotecontrol.cpp:35
Definition: remotecontrol.h:35
RemoteControl(AbstractView *currentView, int port, QObject *parent=0)
Definition: remotecontrol.cpp:17
Definition: remotecontrol.h:39
virtual ~RemoteControl()
Definition: remotecontrol.cpp:30
Command
Definition: remotecontrol.h:33
Definition: remotecontrol.h:33
The AbstractView class is the base class for all views in Miam-Player.
Definition: abstractview.h:22
Definition: remotecontrol.h:36
Definition: remotecontrol.h:41
Definition: remotecontrol.h:42