Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TESession Class Reference

#include </home/clem/local/src/opie/core/apps/embeddedkonsole/session.h>

Collaboration diagram for TESession:

Collaboration graph
[legend]
List of all members.

Public Slots

void run ()
void done (int status)
void terminate ()
void changeTitle (int, const QString &title)

Signals

void done (TEWidget *, int)
void changeTitle (TEWidget *, const QString &)

Public Member Functions

 TESession (QMainWindow *main, TEWidget *w, const char *pgm, QStrList &_args, const char *term)
 ~TESession ()
void setConnect (bool r)
TEmulationgetEmulation ()
bool isSecure ()
int schemaNo ()
int fontNo ()
const char * emuName ()
const QStringTitle ()
bool history ()
int keymap ()
void setHistory (bool on)
void setSchemaNo (int sn)
void setKeymapNo (int kn)
void setFontNo (int fn)
void kill (int signal)

Private Attributes

MyPtysh
TEWidgette
TEmulationem
int schema_no
int font_no
int keymap_no
QString title
const char * pgm
QStrList args
QCString term

Detailed Description

Sessions are combinations of TEPTy and Emulations.

The stuff in here does not belong to the terminal emulation framework, but to main.C. It serves it's duty by providing a single reference to TEPTy/Emulation pairs. In fact, it is only there to demonstrate one of the abilities of the framework - multible sessions.

Definition at line 30 of file session.h.


Constructor & Destructor Documentation

TESession::TESession QMainWindow *  main,
TEWidget w,
const char *  pgm,
QStrList _args,
const char *  term
 

Definition at line 25 of file session.cpp.

References changeTitle(), TEWidget::Columns(), done(), em, TEWidget::Lines(), MyPty::setSize(), sh, te, and term.

TESession::~TESession  ) 
 

Definition at line 73 of file session.cpp.

References done(), em, and sh.


Member Function Documentation

void TESession::changeTitle TEWidget ,
const QString
[signal]
 

void TESession::changeTitle int  ,
const QString title
[slot]
 

Definition at line 139 of file session.cpp.

References te.

Referenced by TESession().

void TESession::done TEWidget ,
int 
[signal]
 

void TESession::done int  status  )  [slot]
 

Definition at line 86 of file session.cpp.

References te.

Referenced by TESession(), and ~TESession().

const char * TESession::emuName  ) 
 

Definition at line 118 of file session.cpp.

References term.

int TESession::fontNo  ) 
 

Definition at line 113 of file session.cpp.

References font_no.

TEmulation * TESession::getEmulation  ) 
 

Definition at line 96 of file session.cpp.

References em.

Referenced by TEWidget::drop_menu_activated(), and TEWidget::dropEvent().

bool TESession::history  ) 
 

Definition at line 155 of file session.cpp.

References em, and TEmulation::history().

bool TESession::isSecure  ) 
 

int TESession::keymap  ) 
 

Definition at line 108 of file session.cpp.

References keymap_no.

void TESession::kill int  signal  ) 
 

Definition at line 68 of file session.cpp.

void TESession::run  )  [slot]
 

Definition at line 62 of file session.cpp.

References args, FALSE, pgm, MyPty::run(), sh, and term.

Referenced by Konsole::newSession().

int TESession::schemaNo  ) 
 

Definition at line 103 of file session.cpp.

References schema_no.

void TESession::setConnect bool  r  ) 
 

Definition at line 81 of file session.cpp.

References em, and TEmulation::setConnect().

Referenced by Konsole::doneSession(), and Konsole::newSession().

void TESession::setFontNo int  fn  ) 
 

Definition at line 134 of file session.cpp.

References font_no.

void TESession::setHistory bool  on  ) 
 

Definition at line 150 of file session.cpp.

References em, and TEmulation::setHistory().

Referenced by Konsole::newSession().

void TESession::setKeymapNo int  kn  ) 
 

Definition at line 128 of file session.cpp.

References em, keymap_no, and TEmulation::setKeytrans().

void TESession::setSchemaNo int  sn  ) 
 

Definition at line 123 of file session.cpp.

References schema_no.

void TESession::terminate  )  [slot]
 

Definition at line 91 of file session.cpp.

const QString & TESession::Title  ) 
 

Definition at line 145 of file session.cpp.

References title.

Referenced by Konsole::switchSession().


Member Data Documentation

QStrList TESession::args [private]
 

Definition at line 89 of file session.h.

Referenced by run().

TEmulation* TESession::em [private]
 

Definition at line 78 of file session.h.

Referenced by getEmulation(), history(), setConnect(), setHistory(), setKeymapNo(), TESession(), and ~TESession().

int TESession::font_no [private]
 

Definition at line 84 of file session.h.

Referenced by fontNo(), and setFontNo().

int TESession::keymap_no [private]
 

Definition at line 85 of file session.h.

Referenced by keymap(), and setKeymapNo().

const char* TESession::pgm [private]
 

Definition at line 88 of file session.h.

Referenced by run().

int TESession::schema_no [private]
 

Definition at line 83 of file session.h.

Referenced by schemaNo(), and setSchemaNo().

MyPty* TESession::sh [private]
 

Definition at line 76 of file session.h.

Referenced by run(), TESession(), and ~TESession().

TEWidget* TESession::te [private]
 

Definition at line 77 of file session.h.

Referenced by changeTitle(), done(), and TESession().

QCString TESession::term [private]
 

Definition at line 91 of file session.h.

Referenced by emuName(), run(), and TESession().

QString TESession::title [private]
 

Definition at line 86 of file session.h.

Referenced by Title().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:35 2005 for OPIE by  doxygen 1.4.2