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

Profile Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-console/profile.h>

Collaboration diagram for Profile:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< ProfileValueList
enum  Color {
  Black = 0, White, Gray, Green,
  Orange
}
enum  Terminal {
  VT102 = 0, VT100, Ansi, Linux,
  XTerm
}
enum  Font { Micro = 0, Small, Medium }

Public Member Functions

 Profile ()
 Profile (const QString &name, const QCString &iolayerName, const QCString &termName, int background, int foreground, int terminal)
 Profile (const Profile &)
Profileoperator= (const Profile &)
bool operator== (const Profile &prof)
 ~Profile ()
QString name () const
QCString ioLayerName () const
QCString terminalName () const
bool autoConnect () const
int foreground () const
int background () const
int terminal () const
QMap< QString, QStringconf () const
void clearConf ()
void writeEntry (const QString &key, const QString &value)
void writeEntry (const QString &key, int num)
void writeEntry (const QString &key, bool b)
void writeEntry (const QString &key, const QStringList &, const QChar &)
QString readEntry (const QString &key, const QString &deflt=QString::null) const
int readNumEntry (const QString &key, int=-1) const
bool readBoolEntry (const QString &key, bool=FALSE) const
void setName (const QString &)
void setIOLayer (const QCString &)
void setTerminalName (const QCString &)
void setAutoConnect (const bool)
void setBackground (int back)
void setForeground (int fore)
void setTerminal (int term)
void setConf (const QMap< QString, QString > &)

Private Attributes

QMap< QString, QStringm_conf
QString m_name
QCString m_ioLayer
QCString m_term
bool m_autoConnect
int m_back
int m_fore
int m_terminal

Detailed Description

A session will be generated from a saved profile. A profile contains the iolayername a name. We can generate a Session from a Profile Configuration is contained here too

Definition at line 15 of file profile.h.


Member Typedef Documentation

typedef QValueList<Profile> Profile::ValueList
 

Definition at line 17 of file profile.h.


Member Enumeration Documentation

enum Profile::Color
 

Enumeration values:
Black 
White 
Gray 
Green 
Orange 

Definition at line 18 of file profile.h.

enum Profile::Font
 

Enumeration values:
Micro 
Small 
Medium 

Definition at line 27 of file profile.h.

enum Profile::Terminal
 

Enumeration values:
VT102 
VT100 
Ansi 
Linux 
XTerm 

Definition at line 23 of file profile.h.


Constructor & Destructor Documentation

Profile::Profile  ) 
 

Definition at line 3 of file profile.cpp.

Profile::Profile const QString name,
const QCString iolayerName,
const QCString termName,
int  background,
int  foreground,
int  terminal
 

Definition at line 6 of file profile.cpp.

Profile::Profile const Profile  ) 
 

Definition at line 15 of file profile.cpp.

Profile::~Profile  ) 
 

Definition at line 36 of file profile.cpp.


Member Function Documentation

bool Profile::autoConnect  )  const
 

Definition at line 50 of file profile.cpp.

References m_autoConnect.

Referenced by ProfileEditorDialog::initUI().

int Profile::background  )  const
 

Definition at line 57 of file profile.cpp.

References m_back.

void Profile::clearConf  ) 
 

Definition at line 86 of file profile.cpp.

References QMap< Key, T >::clear(), and m_conf.

QMap< QString, QString > Profile::conf  )  const
 

Definition at line 38 of file profile.cpp.

References m_conf.

int Profile::foreground  )  const
 

Definition at line 54 of file profile.cpp.

References m_fore.

QCString Profile::ioLayerName  )  const
 

Definition at line 44 of file profile.cpp.

References m_ioLayer.

Referenced by ProfileManager::fromProfile(), and ProfileEditorDialog::initUI().

QString Profile::name  )  const
 

Definition at line 41 of file profile.cpp.

References m_name.

Referenced by ConfigListItem::ConfigListItem(), ProfileManager::fromProfile(), and ProfileEditorDialog::initUI().

Profile & Profile::operator= const Profile  ) 
 

Definition at line 24 of file profile.cpp.

References m_autoConnect, m_back, m_conf, m_fore, m_ioLayer, m_name, m_term, and m_terminal.

bool Profile::operator== const Profile prof  ) 
 

Definition at line 19 of file profile.cpp.

References m_name.

bool Profile::readBoolEntry const QString key,
bool  = FALSE
const
 

Definition at line 123 of file profile.cpp.

References readNumEntry().

Referenced by ATConfigDialog::readConfig(), and IOModem::reload().

QString Profile::readEntry const QString key,
const QString deflt = QString::null
const
 

Definition at line 101 of file profile.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), and m_conf.

Referenced by Dialer::Dialer(), TerminalWidget::load(), SerialConfigWidget::load(), ModemConfigWidget::load(), IrdaConfigWidget::load(), FunctionKeyboardConfig::load(), FunctionKeyboard::load(), EmulationHandler::load(), ConsoleConfigWidget::load(), BTConfigWidget::load(), ATConfigDialog::readConfig(), IOSerial::reload(), IOModem::reload(), IOIrda::reload(), IOBt::reload(), MyPty::reload(), SenderUI::SenderUI(), Dialer::setHangupOnly(), Dialer::slotAutostart(), and Dialer::trydial().

int Profile::readNumEntry const QString key,
int  = -1
const
 

Definition at line 110 of file profile.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), m_conf, and val.

Referenced by EmulationHandler::EmulationHandler(), TerminalWidget::load(), SerialConfigWidget::load(), ModemConfigWidget::load(), IrdaConfigWidget::load(), FunctionKeyboardConfig::load(), FunctionKeyboard::load(), EmulationHandler::load(), ConsoleConfigWidget::load(), BTConfigWidget::load(), MyPty::MyPty(), readBoolEntry(), ATConfigDialog::readConfig(), IOSerial::reload(), IOModem::reload(), IOIrda::reload(), IOBt::reload(), and MyPty::reload().

void Profile::setAutoConnect const   bool  ) 
 

Definition at line 72 of file profile.cpp.

References m_autoConnect.

Referenced by ProfileEditorDialog::accept(), and ProfileManager::load().

void Profile::setBackground int  back  ) 
 

Definition at line 76 of file profile.cpp.

References m_back.

Referenced by ProfileManager::load().

void Profile::setConf const QMap< QString, QString > &   ) 
 

Definition at line 126 of file profile.cpp.

References m_conf.

Referenced by ProfileManager::load().

void Profile::setForeground int  fore  ) 
 

Definition at line 79 of file profile.cpp.

References m_fore.

Referenced by ProfileManager::load().

void Profile::setIOLayer const QCString  ) 
 

Definition at line 66 of file profile.cpp.

References m_ioLayer.

Referenced by ProfileEditorDialog::accept(), and ProfileManager::load().

void Profile::setName const QString  ) 
 

Definition at line 63 of file profile.cpp.

References m_name.

Referenced by ProfileEditorDialog::accept(), and ProfileManager::load().

void Profile::setTerminal int  term  ) 
 

Definition at line 82 of file profile.cpp.

References m_terminal.

Referenced by ProfileManager::load().

void Profile::setTerminalName const QCString  ) 
 

Definition at line 69 of file profile.cpp.

References m_term.

Referenced by ProfileEditorDialog::accept(), and ProfileManager::load().

int Profile::terminal  )  const
 

Definition at line 60 of file profile.cpp.

References m_terminal.

QCString Profile::terminalName  )  const
 

Definition at line 47 of file profile.cpp.

References m_term.

Referenced by ProfileEditorDialog::initUI(), and ProfileEditorDialog::slotConActivated().

void Profile::writeEntry const QString key,
const QStringList ,
const QChar
 

Definition at line 98 of file profile.cpp.

References QStringList::join(), and writeEntry().

void Profile::writeEntry const QString key,
bool  b
 

Definition at line 95 of file profile.cpp.

References QString::number(), and writeEntry().

void Profile::writeEntry const QString key,
int  num
 

Definition at line 92 of file profile.cpp.

References QString::number(), and writeEntry().

void Profile::writeEntry const QString key,
const QString value
 

Definition at line 89 of file profile.cpp.

References m_conf, and QMap< Key, T >::replace().

Referenced by FunctionKeyboardConfig::save(), SenderUI::SenderUI(), ProfileEditorDialog::slotConActivated(), and writeEntry().


Member Data Documentation

bool Profile::m_autoConnect [private]
 

Definition at line 73 of file profile.h.

Referenced by autoConnect(), operator=(), and setAutoConnect().

int Profile::m_back [private]
 

Definition at line 74 of file profile.h.

Referenced by background(), operator=(), and setBackground().

QMap<QString, QString> Profile::m_conf [private]
 

Definition at line 70 of file profile.h.

Referenced by clearConf(), conf(), operator=(), readEntry(), readNumEntry(), setConf(), and writeEntry().

int Profile::m_fore [private]
 

Definition at line 75 of file profile.h.

Referenced by foreground(), operator=(), and setForeground().

QCString Profile::m_ioLayer [private]
 

Definition at line 72 of file profile.h.

Referenced by ioLayerName(), operator=(), and setIOLayer().

QString Profile::m_name [private]
 

Definition at line 71 of file profile.h.

Referenced by name(), operator=(), operator==(), and setName().

QCString Profile::m_term [private]
 

Definition at line 72 of file profile.h.

Referenced by operator=(), setTerminalName(), and terminalName().

int Profile::m_terminal [private]
 

Definition at line 76 of file profile.h.

Referenced by operator=(), setTerminal(), and terminal().


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