aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-13 16:38:23 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-13 16:38:23 +0000
commit9408303fad1efd3b889f7677dd255b9437276cfc (patch)
tree0657a5fd272ab0eb8469626d059e9d1f9f560238 /src/plugins/General/scrobbler
parentd0e1f9e4e1e44dbe3372a6cdb621bf0ee9baa668 (diff)
downloadqmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.gz
qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.tar.bz2
qmmp-9408303fad1efd3b889f7677dd255b9437276cfc.zip
fixed general plugin api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2351 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler')
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.cpp4
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.h6
-rw-r--r--src/plugins/General/scrobbler/scrobblerhandler.cpp4
-rw-r--r--src/plugins/General/scrobbler/scrobblerhandler.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/General/scrobbler/scrobblerfactory.cpp b/src/plugins/General/scrobbler/scrobblerfactory.cpp
index 6ed89e551..acbec4e8d 100644
--- a/src/plugins/General/scrobbler/scrobblerfactory.cpp
+++ b/src/plugins/General/scrobbler/scrobblerfactory.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2009 by Ilya Kotov *
+ * Copyright (C) 2008-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -35,7 +35,7 @@ const GeneralProperties ScrobblerFactory::properties() const
return properties;
}
-General *ScrobblerFactory::create(QObject *parent)
+QObject *ScrobblerFactory::create(QObject *parent)
{
return new ScrobblerHandler(parent);
}
diff --git a/src/plugins/General/scrobbler/scrobblerfactory.h b/src/plugins/General/scrobbler/scrobblerfactory.h
index a0bd0a626..cd37ee696 100644
--- a/src/plugins/General/scrobbler/scrobblerfactory.h
+++ b/src/plugins/General/scrobbler/scrobblerfactory.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Ilya Kotov *
+ * Copyright (C) 2008-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -32,10 +32,10 @@
class ScrobblerFactory : public QObject, public GeneralFactory
{
Q_OBJECT
-Q_INTERFACES(GeneralFactory);
+Q_INTERFACES(GeneralFactory)
public:
const GeneralProperties properties() const;
- General *create(QObject *parent);
+ QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
QTranslator *createTranslator(QObject *parent);
diff --git a/src/plugins/General/scrobbler/scrobblerhandler.cpp b/src/plugins/General/scrobbler/scrobblerhandler.cpp
index 6248578e3..be280b19f 100644
--- a/src/plugins/General/scrobbler/scrobblerhandler.cpp
+++ b/src/plugins/General/scrobbler/scrobblerhandler.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -26,7 +26,7 @@
#include "scrobbler2.h"
#include "scrobblerhandler.h"
-ScrobblerHandler::ScrobblerHandler(QObject *parent) : General(parent)
+ScrobblerHandler::ScrobblerHandler(QObject *parent) : QObject(parent)
{
QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
settings.beginGroup("Scrobbler");
diff --git a/src/plugins/General/scrobbler/scrobblerhandler.h b/src/plugins/General/scrobbler/scrobblerhandler.h
index 9a6bd3828..501ee349c 100644
--- a/src/plugins/General/scrobbler/scrobblerhandler.h
+++ b/src/plugins/General/scrobbler/scrobblerhandler.h
@@ -28,7 +28,7 @@
@author Ilya Kotov <forkotov02@hotmail.ru>
*/
-class ScrobblerHandler : public General
+class ScrobblerHandler : public QObject
{
Q_OBJECT