summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/lyrics/lyrics.h
blob: a5b411bc6b9a7590822b49e8400abc7acec1f72a (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
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef LYRICS_H
#define LYRICS_H

#include <noatun/plugin.h>
#include <noatun/player.h>
#include <noatun/app.h>
#include <kmainwindow.h>
#include <tqvaluevector.h>
#include <tdehtml_part.h>
#include <kaction.h>
#include "cmodule.h"

class HistoryManager;

class Lyrics : public TDEMainWindow, public Plugin {
Q_OBJECT
  

public:
  Lyrics();
  ~Lyrics();
  void go(const KURL &);
  void setProviders( TQValueVector<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(TDEIO::Job *);
  void loadedURL();
  void attach(bool);
  void newSong();
  void goTo();

private:
	int menuID;
  TDEAction *back_act, *forward_act;
  TDEToggleAction *follow_act;
  TDEToggleAction *attach_act;
  TDESelectAction *site_act;
	TDEHTMLPart *htmlpart;
  TQValueVector<SearchProvider> mSites;
  HistoryManager *history;
  bool active;

};


#endif