/* 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 Copyright (C) 2006-2007 Eike Hein */ #ifndef TERMINAL_H #define TERMINAL_H #include #include #include #include #include #include class Terminal : public TQObject { Q_OBJECT TQ_OBJECT public: explicit Terminal(TQWidget* tqparent = 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 */