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