summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/lyrics/cmodule.h
blob: d95baf9bf4c29279a4799b2e3b3465625b734f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _LYRICSCMODULE_H_
#define _LYRICSCMODULE_H_

#include <noatun/pref.h>
#include <tqvaluevector.h>
#include <klocale.h>

class KLineEdit;
class KListBox;
class KButtonBox;

struct SearchProvider {
  TQString name;
  TQString url;
};

class LyricsCModule : public CModule {
  Q_OBJECT
  
  public:
    LyricsCModule(TQObject *_parent);
  public slots:
    virtual void save(void);
    virtual void reopen(void);
    void newSearch(TQString name = i18n( "New Search Provider" ), TQString query = "");
    void delSearch();
    void moveUpSearch();
    void moveDownSearch();
    void selected( TQListBoxItem *i );
    void nameChanged( const TQString &name );
    void queryChanged( const TQString &query );
  protected:
    KListBox *providersBox;
    KButtonBox *boxButtons;
    KLineEdit *nameEdit;
    KLineEdit *queryEdit;
    TQValueVector<SearchProvider> mProviders;
};





#endif