author | zecke <zecke> | 2002-09-28 20:07:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 20:07:52 (UTC) |
commit | b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19 (patch) (side-by-side diff) | |
tree | a9cac491c119fb644ac75750cd715fce16c4c778 /noncore/apps/opie-console/profile.cpp | |
parent | cb33923e1db6df3ead352f21c94b80a5785d70ca (diff) | |
download | opie-b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19.zip opie-b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19.tar.gz opie-b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19.tar.bz2 |
Profiles, loading and saving completed
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profile.cpp b/noncore/apps/opie-console/profile.cpp index cdf595e..c8f5eb0 100644 --- a/noncore/apps/opie-console/profile.cpp +++ b/noncore/apps/opie-console/profile.cpp @@ -24,24 +24,27 @@ bool Profile::operator==( const Profile& prof ) { Profile &Profile::operator=( const Profile& prof ) { m_name = prof.m_name; m_ioLayer = prof.m_ioLayer; m_back = prof.m_back; m_fore = prof.m_fore; m_terminal = prof.m_terminal; m_conf = prof.m_conf; return *this; } Profile::~Profile() { } +QMap<QString, QString> Profile::conf()const { + return m_conf; +} QString Profile::name()const { return m_name; } QString Profile::ioLayerName()const { return m_ioLayer; } int Profile::foreground()const { return m_fore; } int Profile::background()const { return m_back; } @@ -95,12 +98,15 @@ int Profile::readNumEntry( const QString& key, int def )const { if ( it != m_conf.end() ) { bool ok; int val = it.data().toInt(&ok); if (ok) return val; } return def; } bool Profile::readBoolEntry( const QString& key, bool def )const { return readNumEntry( key, def ); } +void Profile::setConf( const QMap<QString, QString>& conf ) { + m_conf = conf; +}; |