Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

kvnc.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 
00003 #ifndef KVNC_H
00004 #define KVNC_H
00005 
00006 #include <qmainwindow.h>
00007 #include <qtoolbar.h>
00008 #include <qwidgetstack.h>
00009 #include "kvncbookmarkdlg.h"
00010 
00011 class QAction;
00012 class KRFBCanvas;
00013 class QPushButton;
00014 class QToolBar;
00015 
00022 class KVNC : public QMainWindow
00023 {
00024   Q_OBJECT
00025 public:
00026   KVNC( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
00027   ~KVNC();
00028 
00029 public slots:
00030   void newConnection();
00031   void deleteBookmark();
00032   void openConnection(QListBoxItem *);
00033   void openConnection(QString);
00034   void openConnection(void);
00035   void toggleFullScreen();
00036   void closeConnection();
00037   static QString appName() { return QString::fromLatin1("keypebble"); }
00038 
00039 protected:
00040   void setupActions();
00041 
00042 protected slots:
00043   void showMenu();
00044 
00045   void connected();
00046   void loggedIn();
00047   void disconnected();
00048   void statusMessage( const QString & );
00049   void error( const QString & );
00050 
00051 private:
00052   bool fullscreen;
00053   KRFBCanvas *canvas;
00054   QPopupMenu *cornerMenu;
00055   QPushButton *cornerButton;
00056   QAction *fullScreenAction;
00057   QAction *optionsAction;
00058   QAction *disconnectAction;
00059   QAction *ctlAltDelAction;;
00060   QAction *connectAction;
00061   QAction *rightClickAction;
00062   QAction *doubleClickAction;
00063         QToolBar * bar;
00064 
00065         KVNCBookmarkDlg * bookmarkSelector;
00066         QWidgetStack * stack;
00067         KRFBServer * curServer;
00068 };
00069 
00070 #endif // KVNC_H

Generated on Sat Nov 5 16:17:17 2005 for OPIE by  doxygen 1.4.2