summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/lyrics/cmodule.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/cmodule.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/cmodule.h')
-rw-r--r--noatun-plugins/lyrics/cmodule.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/noatun-plugins/lyrics/cmodule.h b/noatun-plugins/lyrics/cmodule.h
new file mode 100644
index 0000000..dbb2da7
--- /dev/null
+++ b/noatun-plugins/lyrics/cmodule.h
@@ -0,0 +1,43 @@
+#ifndef _LYRICSCMODULE_H_
+#define _LYRICSCMODULE_H_
+
+#include <noatun/pref.h>
+#include <qvaluevector.h>
+#include <klocale.h>
+
+class KLineEdit;
+class KListBox;
+class KButtonBox;
+
+struct SearchProvider {
+ QString name;
+ QString url;
+};
+
+class LyricsCModule : public CModule {
+ Q_OBJECT
+ public:
+ LyricsCModule(QObject *_parent);
+ public slots:
+ virtual void save(void);
+ virtual void reopen(void);
+ void newSearch(QString name = i18n( "New Search Provider" ), QString query = "");
+ void delSearch();
+ void moveUpSearch();
+ void moveDownSearch();
+ void selected( QListBoxItem *i );
+ void nameChanged( const QString &name );
+ void queryChanged( const QString &query );
+ protected:
+ KListBox *providersBox;
+ KButtonBox *boxButtons;
+ KLineEdit *nameEdit;
+ KLineEdit *queryEdit;
+ QValueVector<SearchProvider> mProviders;
+};
+
+
+
+
+
+#endif