author | zecke <zecke> | 2002-09-28 20:07:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 20:07:52 (UTC) |
commit | b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19 (patch) (unidiff) | |
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 | |||
@@ -30,12 +30,15 @@ Profile &Profile::operator=( const Profile& prof ) { | |||
30 | m_conf = prof.m_conf; | 30 | m_conf = prof.m_conf; |
31 | 31 | ||
32 | return *this; | 32 | return *this; |
33 | } | 33 | } |
34 | Profile::~Profile() { | 34 | Profile::~Profile() { |
35 | } | 35 | } |
36 | QMap<QString, QString> Profile::conf()const { | ||
37 | return m_conf; | ||
38 | } | ||
36 | QString Profile::name()const { | 39 | QString Profile::name()const { |
37 | return m_name; | 40 | return m_name; |
38 | } | 41 | } |
39 | QString Profile::ioLayerName()const { | 42 | QString Profile::ioLayerName()const { |
40 | return m_ioLayer; | 43 | return m_ioLayer; |
41 | } | 44 | } |
@@ -101,6 +104,9 @@ int Profile::readNumEntry( const QString& key, int def )const { | |||
101 | } | 104 | } |
102 | return def; | 105 | return def; |
103 | } | 106 | } |
104 | bool Profile::readBoolEntry( const QString& key, bool def )const { | 107 | bool Profile::readBoolEntry( const QString& key, bool def )const { |
105 | return readNumEntry( key, def ); | 108 | return readNumEntry( key, def ); |
106 | } | 109 | } |
110 | void Profile::setConf( const QMap<QString, QString>& conf ) { | ||
111 | m_conf = conf; | ||
112 | }; | ||