summaryrefslogtreecommitdiffstats
path: root/krdc/main.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /krdc/main.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc/main.h')
-rw-r--r--krdc/main.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/krdc/main.h b/krdc/main.h
new file mode 100644
index 00000000..d95f079e
--- /dev/null
+++ b/krdc/main.h
@@ -0,0 +1,60 @@
+/***************************************************************************
+ main.h - controller object
+ -------------------
+ begin : Sat Jun 15 02:12:00 CET 2002
+ copyright : (C) 2002 by Tim Jansen
+ email : tim@tjansen.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef MAIN_H
+#define MAIN_H
+
+#include <qobject.h>
+#include "krdc.h"
+#include "kremoteview.h"
+#include "smartptr.h"
+
+class KApplication;
+
+class MainController : public QObject {
+ Q_OBJECT
+private:
+ SmartPtr<KRDC> m_krdc;
+ WindowMode m_windowMode;
+ QString m_host, m_encodings, m_password, m_resolution;
+ bool m_scale;
+ bool m_localCursor;
+ QSize m_initialWindowSize;
+ QString m_keymap;
+ Quality m_quality;
+
+ KApplication *m_app;
+
+public:
+ MainController(KApplication *app, WindowMode wm,
+ const QString &host,
+ Quality quality,
+ const QString &encodings,
+ const QString &password,
+ bool scale,
+ bool localCursor,
+ QSize initialWindowSize);
+ ~MainController();
+ int main();
+ bool start();
+
+private slots:
+ void errorRestartRequested();
+ void errorRestart();
+};
+
+#endif