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

KeyTrans Class Reference

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

Collaboration diagram for KeyTrans:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyTrans ()
 ~KeyTrans ()
bool findEntry (int key, int bits, int *cmd, const char **txt, int *len)
KeyEntryaddEntry (int ref, int key, int bits, int mask, int cmd, QString txt)
 KeyTrans ()
 ~KeyTrans ()
bool findEntry (int key, int bits, int *cmd, const char **txt, int *len)
KeyEntryaddEntry (int ref, int key, int bits, int mask, int cmd, QString txt)

Static Public Member Functions

static KeyTransdefaultKeyTrans ()
static KeyTransfromFile (const char *path)
static KeyTransfind (int numb)
static KeyTransfind (const char *path)
static int count ()
static void loadAll ()
static KeyTransdefaultKeyTrans ()
static KeyTransfromFile (const char *path)
static KeyTransfind (int numb)
static KeyTransfind (const char *path)
static int count ()
static void loadAll ()

Public Attributes

QString hdr
int numb
QString path

Private Member Functions

void addKeyTrans ()
void addKeyTrans ()

Static Private Member Functions

static KeyTransfromDevice (QString path, QIODevice &buf)
static KeyTransfromDevice (QString path, QIODevice &buf)

Private Attributes

QList< KeyEntrytable
QList< KeyEntrytable

Classes

class  KeyEntry

Constructor & Destructor Documentation

KeyTrans::KeyTrans  ) 
 

Definition at line 80 of file keytrans.cpp.

References numb, and path.

KeyTrans::~KeyTrans  ) 
 

Definition at line 86 of file keytrans.cpp.

KeyTrans::KeyTrans  ) 
 

KeyTrans::~KeyTrans  ) 
 


Member Function Documentation

KeyEntry* KeyTrans::addEntry int  ref,
int  key,
int  bits,
int  mask,
int  cmd,
QString  txt
 

KeyTrans::KeyEntry * KeyTrans::addEntry int  ref,
int  key,
int  bits,
int  mask,
int  cmd,
QString  txt
 

Definition at line 90 of file keytrans.cpp.

References NULL, and table.

void KeyTrans::addKeyTrans  )  [private]
 

void KeyTrans::addKeyTrans  )  [private]
 

Definition at line 645 of file keytrans.cpp.

References QDict< type >::insert(), QIntDict< type >::insert(), keytab_serial, numb, and path.

Referenced by loadAll().

static int KeyTrans::count  )  [static]
 

int KeyTrans::count  )  [static]
 

Definition at line 640 of file keytrans.cpp.

References QIntDict< type >::count().

Referenced by Konsole::init().

static KeyTrans* KeyTrans::defaultKeyTrans  )  [static]
 

KeyTrans * KeyTrans::defaultKeyTrans  )  [static]
 

Definition at line 413 of file keytrans.cpp.

References buf, and fromDevice().

Referenced by loadAll().

static KeyTrans* KeyTrans::find const char *  path  )  [static]
 

static KeyTrans* KeyTrans::find int  numb  )  [static]
 

KeyTrans * KeyTrans::find const char *  path  )  [static]
 

Definition at line 634 of file keytrans.cpp.

References QIntDict< type >::find(), and QDict< type >::find().

KeyTrans * KeyTrans::find int  numb  )  [static]
 

Definition at line 628 of file keytrans.cpp.

References QIntDict< type >::find().

Referenced by Konsole::init(), EmulationLayer::setKeytrans(), and TEmulation::setKeytrans().

bool KeyTrans::findEntry int  key,
int  bits,
int *  cmd,
const char **  txt,
int *  len
 

bool KeyTrans::findEntry int  key,
int  bits,
int *  cmd,
const char **  txt,
int *  len
 

Definition at line 104 of file keytrans.cpp.

References FALSE, table, and TRUE.

Referenced by TEmuVt102::onKeyPress().

static KeyTrans* KeyTrans::fromDevice QString  path,
QIODevice buf
[static, private]
 

KeyTrans * KeyTrans::fromDevice QString  path,
QIODevice buf
[static, private]
 

Definition at line 307 of file keytrans.cpp.

References KeytabReader::parseTo(), and path.

Referenced by defaultKeyTrans(), fromFile(), and loadAll().

static KeyTrans* KeyTrans::fromFile const char *  path  )  [static]
 

KeyTrans * KeyTrans::fromFile const char *  path  )  [static]
 

Definition at line 422 of file keytrans.cpp.

References fromDevice().

static void KeyTrans::loadAll  )  [static]
 

void KeyTrans::loadAll  )  [static]
 

Definition at line 652 of file keytrans.cpp.

References addKeyTrans(), QValueList< T >::begin(), defaultKeyTrans(), QValueList< T >::end(), QDir::entryList(), fromDevice(), path, and QPEApplication::qpeDir().

Referenced by Konsole::init().


Member Data Documentation

QString KeyTrans::hdr
 

Definition at line 88 of file keytrans.h.

int KeyTrans::numb
 

Definition at line 89 of file keytrans.h.

Referenced by addKeyTrans(), and KeyTrans().

QString KeyTrans::path
 

Definition at line 90 of file keytrans.h.

Referenced by addKeyTrans(), fromDevice(), KeyTrans(), and loadAll().

QList<KeyEntry> KeyTrans::table [private]
 

Definition at line 86 of file keytrans.h.

QList<KeyEntry> KeyTrans::table [private]
 

Definition at line 86 of file keytrans.h.

Referenced by addEntry(), and findEntry().


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