Diffstat (limited to 'noncore/comm/keypebble/kvnc.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/kvnc.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/noncore/comm/keypebble/kvnc.h b/noncore/comm/keypebble/kvnc.h new file mode 100644 index 0000000..92666c5 --- a/dev/null +++ b/noncore/comm/keypebble/kvnc.h | |||
@@ -0,0 +1,56 @@ | |||
1 | // -*- c++ -*- | ||
2 | |||
3 | #ifndef KVNC_H | ||
4 | #define KVNC_H | ||
5 | |||
6 | #include <qmainwindow.h> | ||
7 | #include <qurl.h> | ||
8 | |||
9 | class QAction; | ||
10 | class KRFBCanvas; | ||
11 | class QPushButton; | ||
12 | class QToolBar; | ||
13 | |||
14 | /** | ||
15 | * Top level window for Keystone. | ||
16 | * | ||
17 | * @author Richard Moore, rich@kde.org | ||
18 | * @version $Id$ | ||
19 | */ | ||
20 | class KVNC : public QMainWindow | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | KVNC( const char *name = 0 ); | ||
25 | ~KVNC(); | ||
26 | |||
27 | public slots: | ||
28 | void toggleFullScreen(); | ||
29 | void openURL( const QUrl & ); | ||
30 | void closeConnection(); | ||
31 | void showOptions(); | ||
32 | |||
33 | protected: | ||
34 | void setupActions(); | ||
35 | |||
36 | protected slots: | ||
37 | void showMenu(); | ||
38 | |||
39 | void connected(); | ||
40 | void loggedIn(); | ||
41 | void disconnected(); | ||
42 | void statusMessage( const QString & ); | ||
43 | void error( const QString & ); | ||
44 | |||
45 | private: | ||
46 | bool fullscreen; | ||
47 | KRFBCanvas *canvas; | ||
48 | QPopupMenu *cornerMenu; | ||
49 | QPushButton *cornerButton; | ||
50 | QAction *fullScreenAction; | ||
51 | QAction *optionsAction; | ||
52 | QAction *disconnectAction; | ||
53 | QAction *connectAction; | ||
54 | }; | ||
55 | |||
56 | #endif // KVNC_H | ||