Diffstat (limited to 'core/apps/embeddedkonsole/session.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/session.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/core/apps/embeddedkonsole/session.h b/core/apps/embeddedkonsole/session.h new file mode 100644 index 0000000..4a61569 --- a/dev/null +++ b/core/apps/embeddedkonsole/session.h | |||
@@ -0,0 +1,93 @@ | |||
1 | /* -------------------------------------------------------------------------- */ | ||
2 | /* */ | ||
3 | /* [session.h] Testbed for TE framework */ | ||
4 | /* */ | ||
5 | /* -------------------------------------------------------------------------- */ | ||
6 | /* */ | ||
7 | /* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de> */ | ||
8 | /* */ | ||
9 | /* This file is part of Konsole, an X terminal. */ | ||
10 | /* */ | ||
11 | /* -------------------------------------------------------------------------- */ | ||
12 | /* */ | ||
13 | /* Ported Konsole to Qt/Embedded */ | ||
14 | /* */ | ||
15 | /* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */ | ||
16 | /* */ | ||
17 | /* -------------------------------------------------------------------------- */ | ||
18 | |||
19 | #ifndef SESSION_H | ||
20 | #define SESSION_H | ||
21 | |||
22 | #include <qapplication.h> | ||
23 | #include <qmainwindow.h> | ||
24 | #include <qstrlist.h> | ||
25 | |||
26 | #include "MyPty.h" | ||
27 | #include "TEWidget.h" | ||
28 | #include "TEmuVt102.h" | ||
29 | |||
30 | class TESession : public QObject | ||
31 | { Q_OBJECT | ||
32 | |||
33 | public: | ||
34 | |||
35 | TESession(QMainWindow* main, TEWidget* w, | ||
36 | const char* pgm, QStrList & _args, | ||
37 | const char* term); | ||
38 | ~TESession(); | ||
39 | |||
40 | public: | ||
41 | |||
42 | void setConnect(bool r); | ||
43 | TEmulation* getEmulation(); // to control emulation | ||
44 | bool isSecure(); | ||
45 | |||
46 | public: | ||
47 | |||
48 | int schemaNo(); | ||
49 | int fontNo(); | ||
50 | const char* emuName(); | ||
51 | const QString& Title(); | ||
52 | bool history(); | ||
53 | int keymap(); | ||
54 | |||
55 | void setHistory(bool on); | ||
56 | void setSchemaNo(int sn); | ||
57 | void setKeymapNo(int kn); | ||
58 | void setFontNo(int fn); | ||
59 | void setTitle(const QString& title); | ||
60 | void kill(int signal); | ||
61 | |||
62 | public slots: | ||
63 | |||
64 | void run(); | ||
65 | void done(int status); | ||
66 | void terminate(); | ||
67 | |||
68 | signals: | ||
69 | |||
70 | void done(TESession*, int); | ||
71 | |||
72 | private: | ||
73 | |||
74 | // TEPty* sh; | ||
75 | MyPty* sh; | ||
76 | TEWidget* te; | ||
77 | TEmulation* em; | ||
78 | |||
79 | //FIXME: using the indices here | ||
80 | // is propably very bad. We should | ||
81 | // use a persistent reference instead. | ||
82 | int schema_no; | ||
83 | int font_no; | ||
84 | int keymap_no; | ||
85 | QString title; | ||
86 | |||
87 | const char* pgm; | ||
88 | QStrList args; | ||
89 | |||
90 | QCString term; | ||
91 | }; | ||
92 | |||
93 | #endif | ||