summaryrefslogtreecommitdiff
path: root/musicagent.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-26 20:02:47 +0100
committerJavier <dev.git@javispedro.com>2015-12-26 20:02:47 +0100
commitceafe544919a35f674684c2e71593b9fb35747a5 (patch)
treed0912a51b60b91cf4f6177a0c18aab0629d501b8 /musicagent.h
parent693f100e919132bd1cf703c5987c5d503bc2289c (diff)
downloadsapd-ceafe544919a35f674684c2e71593b9fb35747a5.tar.gz
sapd-ceafe544919a35f674684c2e71593b9fb35747a5.zip
prepare new agent for music controller
Diffstat (limited to 'musicagent.h')
-rw-r--r--musicagent.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/musicagent.h b/musicagent.h
new file mode 100644
index 0000000..32121d4
--- /dev/null
+++ b/musicagent.h
@@ -0,0 +1,26 @@
+#ifndef MUSICAGENT_H
+#define MUSICAGENT_H
+
+#include <QtCore/QObject>
+#include "sappeer.h"
+#include "sapmanager.h"
+#include "sapagent.h"
+
+class MusicAgent : public QObject, public SAPAgent
+{
+public:
+ explicit MusicAgent(QObject *parent = 0);
+
+public:
+ static MusicAgent * instance();
+ static void registerServices(SAPManager *manager);
+
+ void peerFound(SAPPeer *peer);
+ void requestConnection(SAPConnectionRequest *request);
+
+private:
+ SAPPeer *_peer;
+ SAPSocket *_socket;
+};
+
+#endif // MUSICAGENT_H