summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvnc.h
Unidiff
Diffstat (limited to 'noncore/comm/keypebble/kvnc.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/comm/keypebble/kvnc.h56
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
9class QAction;
10class KRFBCanvas;
11class QPushButton;
12class QToolBar;
13
14/**
15 * Top level window for Keystone.
16 *
17 * @author Richard Moore, rich@kde.org
18 * @version $Id$
19 */
20class KVNC : public QMainWindow
21{
22 Q_OBJECT
23public:
24 KVNC( const char *name = 0 );
25 ~KVNC();
26
27public slots:
28 void toggleFullScreen();
29 void openURL( const QUrl & );
30 void closeConnection();
31 void showOptions();
32
33protected:
34 void setupActions();
35
36protected 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
45private:
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