Files
konsole/include/session.h
Lars Doelle be77dd27de David's patches, see ChangeLog
svn path=/trunk/kdebase/konsole/; revision=14287
1998-12-20 21:50:59 +00:00

75 lines
1.9 KiB
C++

/* -------------------------------------------------------------------------- */
/* */
/* [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. */
/* */
/* -------------------------------------------------------------------------- */
#ifndef SESSION_H
#define SESSION_H
#include <kapp.h>
#include <ktmainwindow.h>
#include <qstrlist.h>
#include "TEShell.h"
#include "TEWidget.h"
#include "TEmuVt102.h"
class TESession : public QObject
{ Q_OBJECT
public:
TESession(KTMainWindow* main, TEWidget* w, QStrList & _args,
const char* term, int login_session);
~TESession();
public:
void setConnect(bool r);
Emulation* getEmulation(); // to control emulation
public:
int schemaNo();
int fontNo();
const char* emuName();
const char* Title();
void setSchemaNo(int sn);
void setFontNo(int fn);
void setTitle(const char* title);
void run();
public slots:
void done(int status);
void terminate();
signals:
void done(TESession*, int);
private:
Shell* sh;
TEWidget* te;
Emulation* em;
int schema_no; // no exactly the right place
int font_no; // no exactly the right place
char* term;
QStrList args;
QString title;
};
#endif