merge in my changes from soc-krdc branch
[kdenetwork.git] / krdc / main.h
blob833f6599ce42fe6680afe01784b81f4f56091b22
1 /***************************************************************************
2 main.h - controller object
3 -------------------
4 begin : Sat Jun 15 02:12:00 CET 2002
5 copyright : (C) 2002 by Tim Jansen
6 email : tim@tjansen.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef MAIN_H
19 #define MAIN_H
21 #include <QObject>
22 #include "krdc.h"
23 #include "kremoteview.h"
24 #include "smartptr.h"
26 class KApplication;
28 class MainController : public QObject {
29 Q_OBJECT
30 private:
31 SmartPtr<KRDC> m_krdc;
32 WindowMode m_windowMode;
33 QString m_host, m_encodings, m_password, m_resolution;
34 bool m_scale;
35 bool m_localCursor;
36 QSize m_initialWindowSize;
37 QString m_keymap;
38 KRemoteView::Quality m_quality;
39 QString m_caption;
41 KApplication *m_app;
43 public:
44 MainController(KApplication *app, WindowMode wm,
45 const QString &host,
46 KRemoteView::Quality quality,
47 const QString &encodings,
48 const QString &password,
49 bool scale,
50 bool localCursor,
51 QSize initialWindowSize,
52 QString &caption);
53 ~MainController();
54 int main();
55 bool start();
57 private slots:
58 void errorRestartRequested();
59 void errorRestart();
62 #endif