summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/kvnc.h
Side-by-side diff
Diffstat (limited to 'noncore/comm/keypebble/kvnc.h') (more/less context) (ignore 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 @@
+// -*- c++ -*-
+
+#ifndef KVNC_H
+#define KVNC_H
+
+#include <qmainwindow.h>
+#include <qurl.h>
+
+class QAction;
+class KRFBCanvas;
+class QPushButton;
+class QToolBar;
+
+/**
+ * Top level window for Keystone.
+ *
+ * @author Richard Moore, rich@kde.org
+ * @version $Id$
+ */
+class KVNC : public QMainWindow
+{
+ Q_OBJECT
+public:
+ KVNC( const char *name = 0 );
+ ~KVNC();
+
+public slots:
+ void toggleFullScreen();
+ void openURL( const QUrl & );
+ void closeConnection();
+ void showOptions();
+
+protected:
+ void setupActions();
+
+protected slots:
+ void showMenu();
+
+ void connected();
+ void loggedIn();
+ void disconnected();
+ void statusMessage( const QString & );
+ void error( const QString & );
+
+private:
+ bool fullscreen;
+ KRFBCanvas *canvas;
+ QPopupMenu *cornerMenu;
+ QPushButton *cornerButton;
+ QAction *fullScreenAction;
+ QAction *optionsAction;
+ QAction *disconnectAction;
+ QAction *connectAction;
+};
+
+#endif // KVNC_H