Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (46 sloc) 1.156 kb
d1c0583 @RJ initial checkin
authored
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QMainWindow>
5
6 #include <Phonon/AudioOutput>
7 #include <Phonon/MediaObject>
8 #include <Phonon/BackendCapabilities>
9 #include <QString>
10 #include <QUrl>
a9393bf @RJ handle layout manually, use layout manager
authored
11 #include <QPushButton>
12 #include <QWebView>
13 #include <QEvent>
0c19b17 @RJ comet testing
authored
14 #include <QMenuBar>
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
15 #include <QNetworkAccessManager>
16
17 #include "qplaydar.h"
18 #include "player/playengine.h"
d1c0583 @RJ initial checkin
authored
19
20 #include "WebkitApi.h"
4dd1e5a @RJ import a bunch of graphics and css from the cloud player
authored
21
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
22 // Subclass this just so we can print js errors:
4dd1e5a @RJ import a bunch of graphics and css from the cloud player
authored
23 class Webpage : public QWebPage
24 {
25 virtual void javaScriptConsoleMessage ( const QString & message, int lineNumber, const QString & sourceID )
26 {
27 qDebug() << message << " @ no. " << lineNumber << " sourceid: " << sourceID;
28 }
29 };
d1c0583 @RJ initial checkin
authored
30
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
31
0c19b17 @RJ comet testing
authored
32 class MainWindow : QMainWindow {
d1c0583 @RJ initial checkin
authored
33 Q_OBJECT
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
34
d1c0583 @RJ initial checkin
authored
35 public:
0c19b17 @RJ comet testing
authored
36 MainWindow();
d1c0583 @RJ initial checkin
authored
37 ~MainWindow();
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
38 //friend class WebkitApi;
0c19b17 @RJ comet testing
authored
39 QSize sizeHint() const {
40 return QSize(800, 480);
41 }
d1c0583 @RJ initial checkin
authored
42
43 protected:
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
44
d1c0583 @RJ initial checkin
authored
45
46 private slots:
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
47
d1c0583 @RJ initial checkin
authored
48
49 private:
50
51 WebkitApi * webkitApi;
a9393bf @RJ handle layout manually, use layout manager
authored
52 QWebView * webView;
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
53 Playdar::Client * pc;
54 Playengine * player;
0c19b17 @RJ comet testing
authored
55 QMenu * fileMenu;
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
56 QNetworkAccessManager * nam;
d1c0583 @RJ initial checkin
authored
57
a9393bf @RJ handle layout manually, use layout manager
authored
58 void setupUi();
d1c0583 @RJ initial checkin
authored
59
60
2ef4062 @RJ expose qplaydarclient, encapsulate phonon stuff better, change js api to...
authored
61 //void jseval(QString);
d1c0583 @RJ initial checkin
authored
62
63 };
64
65 #endif // MAINWINDOW_H
Something went wrong with that request. Please try again.