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