blob: 9c4115ebc6c73e2e6b2036511156a16b6eec4a47 (
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
|
/*
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.
*/
/*
Copyright (C) 2005 Francois Chazal <neptune3k@free.fr>
Copyright (C) 2006-2007 Eike Hein <hein@kde.org>
*/
#ifndef TERMINAL_H
#define TERMINAL_H
#include <stdlib.h>
#include <tqobject.h>
#include <tqwidget.h>
#include <klibloader.h>
#include <tdeparts/part.h>
#include <kde_terminal_interface.h>
class Terminal : public TQObject
{
Q_OBJECT
public:
explicit Terminal(TQWidget* parent = 0, const char* name = 0);
virtual ~Terminal();
int id() { return terminal_id; }
TQWidget* widget();
TerminalInterface* terminal();
const TQString title();
void setTitle(const TQString& title);
signals:
void destroyed(int);
void titleChanged(TQWidget*, const TQString&);
private:
static int available_terminal_id;
int terminal_id;
KParts::Part* terminal_part;
TQString terminal_title;
TQWidget* terminal_widget;
TerminalInterface* terminal_interface;
private slots:
void slotUpdateSessionTitle(const TQString &);
};
#endif /* TERMINAL_H */
|