Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (35 sloc) 0.808 kb
d1c05838 »
2009-12-23 initial checkin
1 #ifndef WEBKITAPI_H
2 #define WEBKITAPI_H
3
4 #include <qobject.h>
5
6 class QWebView;
7 class QWebFrame;
8
9 class WebkitApi : public QObject
10 {
11 Q_OBJECT
12 public:
13 WebkitApi( QObject *parent );
14
15 void setWebView( QWebView *view );
16
17 void emitTick(qint64, qint64);
18 void emitStateChange(QString);
19 void emitBufferPercent(int);
20 void emitTogglePause();
21 void emitVolumeChanged(int);
22
23 signals:
24 void elapsed(int, int);
25 void stateChange(QString);
26 void bufferPercent(int);
27 void volumeChanged(int);
28 void pauseToggled();
29 void playRequested(QString);
30 void stopRequested();
31
32 public slots:
33 void togglePause();
34 void setVolume(int);
35 void play(QString);
36 void stop();
37
38 private slots:
39 void attachObject();
40
41 private:
42 QWebFrame *frame;
43 };
44
45
46 #endif // WEBKITAPI_H
Something went wrong with that request. Please try again.