CMakelists.txt adjustement
[musik.git] / musikclass.h
blob187e8cd25a58ed2f0de0df07b1fba33a538ee701
1 // andrea diamantini - adjam7@gmail.com
2 // musik - simplest KDE4 audio player
3 // file musikui.h
5 #ifndef MUSIK_UI_H
6 #define MUSIK_UI_H
8 #include <phonon/seekslider.h>
9 #include <phonon/mediaobject.h>
10 #include <phonon/audiooutput.h>
11 #include <phonon/volumeslider.h>
12 #include <phonon/mediasource.h>
14 #include <QList>
15 #include <QWidget>
16 #include <QAction>
17 #include <QLineEdit>
18 #include <QMap>
20 class Musik : public QWidget
22 Q_OBJECT
23 public:
24 Musik();
26 ~Musik();
28 private slots:
29 void chooseFile();
30 void editTag();
32 void changeState(Phonon::State, Phonon::State);
34 private:
35 void setupActions();
36 void setupUi();
37 void setInfo();
39 QString filePath;
40 QMap<QString, QString> metaData;
42 Phonon::SeekSlider *seekSlider;
43 Phonon::MediaObject *mediaObject;
44 Phonon::AudioOutput *audioOutput;
45 Phonon::VolumeSlider *volumeSlider;
46 Phonon::MediaSource *source;
48 QLineEdit *line;
49 QAction *playAction;
50 QAction *pauseAction;
51 QAction *stopAction;
52 QAction *editTagAction;
53 QAction *openFileAction;
56 #endif