[PATCH 1/3] Create Last.fm scrobbler skeleton

Jonathan Martens jonathan at lpt-093-cos6.snetram.nl
Thu Mar 29 20:32:46 UTC 2012


---
 mythplugins/mythmusic/mythmusic/scrobbler.cpp |   17 +++++++++++++++++
 mythplugins/mythmusic/mythmusic/scrobbler.h   |   18 ++++++++++++++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 mythplugins/mythmusic/mythmusic/scrobbler.cpp
 create mode 100644 mythplugins/mythmusic/mythmusic/scrobbler.h

diff --git a/mythplugins/mythmusic/mythmusic/scrobbler.cpp b/mythplugins/mythmusic/mythmusic/scrobbler.cpp
new file mode 100644
index 0000000..44a4e6c
--- /dev/null
+++ b/mythplugins/mythmusic/mythmusic/scrobbler.cpp
@@ -0,0 +1,17 @@
+#include "scrobbler.h"
+
+Scrobbler::Scrobbler()
+    : QObject(NULL)
+{
+    setObjectName("Scrobbler");
+}
+
+Scrobbler::~Scrobbler()
+{
+}
+
+void Scrobbler::customEvent(QEvent *event)
+{
+    LOG(VB_GENERAL, LOG_INFO, QString("Scrobbler::customEvent()"));
+}
+
diff --git a/mythplugins/mythmusic/mythmusic/scrobbler.h b/mythplugins/mythmusic/mythmusic/scrobbler.h
new file mode 100644
index 0000000..a825a63
--- /dev/null
+++ b/mythplugins/mythmusic/mythmusic/scrobbler.h
@@ -0,0 +1,18 @@
+#ifndef __scrobbler_h
+#define __scrobbler_h
+
+#include "constants.h"
+#include "musicplayer.h"
+
+class Scrobbler : public QObject
+{
+    Q_OBJECT
+
+  public:
+    Scrobbler();
+    virtual ~Scrobbler();
+
+    void customEvent(QEvent *);
+};
+
+#endif // __scrobbler_h
-- 
1.7.1




--------------080001040401040101060503
Content-Type: text/plain;
 name="0002-Tie-in-Scrobbler-skeleton-into-MythMusic.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0002-Tie-in-Scrobbler-skeleton-into-MythMusic.patch"



More information about the mythtv-dev mailing list