summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/lyrics/lyrics.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch)
tree2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /noatun-plugins/lyrics/lyrics.h
downloadtdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz
tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/lyrics/lyrics.h')
-rw-r--r--noatun-plugins/lyrics/lyrics.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/noatun-plugins/lyrics/lyrics.h b/noatun-plugins/lyrics/lyrics.h
new file mode 100644
index 0000000..9454604
--- /dev/null
+++ b/noatun-plugins/lyrics/lyrics.h
@@ -0,0 +1,55 @@
+#ifndef LYRICS_H
+#define LYRICS_H
+
+#include <noatun/plugin.h>
+#include <noatun/player.h>
+#include <noatun/app.h>
+#include <kmainwindow.h>
+#include <qvaluevector.h>
+#include <khtml_part.h>
+#include <kaction.h>
+#include "cmodule.h"
+
+class HistoryManager;
+
+class Lyrics : public KMainWindow, public Plugin {
+Q_OBJECT
+
+public:
+ Lyrics();
+ ~Lyrics();
+ void go(const KURL &);
+ void setProviders( QValueVector<SearchProvider> &sites );
+
+public slots:
+ void viewLyrics(int index = -1);
+ void back();
+ void forward();
+
+protected:
+ bool queryClose();
+
+protected slots:
+ void changeUI(int, bool);
+ void openURLRequest( const KURL &, const KParts::URLArgs & );
+ void loadingURL(KIO::Job *);
+ void loadedURL();
+ void attach(bool);
+ void newSong();
+ void goTo();
+
+private:
+ int menuID;
+ KAction *back_act, *forward_act;
+ KToggleAction *follow_act;
+ KToggleAction *attach_act;
+ KSelectAction *site_act;
+ KHTMLPart *htmlpart;
+ QValueVector<SearchProvider> mSites;
+ HistoryManager *history;
+ bool active;
+
+};
+
+
+#endif