Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (show 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 ) { | |||
24 | Profile &Profile::operator=( const Profile& prof ) { | 24 | Profile &Profile::operator=( const Profile& prof ) { |
25 | m_name = prof.m_name; | 25 | m_name = prof.m_name; |
26 | m_ioLayer = prof.m_ioLayer; | 26 | m_ioLayer = prof.m_ioLayer; |
27 | m_back = prof.m_back; | 27 | m_back = prof.m_back; |
28 | m_fore = prof.m_fore; | 28 | m_fore = prof.m_fore; |
29 | m_terminal = prof.m_terminal; | 29 | m_terminal = prof.m_terminal; |
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 | } |
42 | int Profile::foreground()const { | 45 | int Profile::foreground()const { |
43 | return m_fore; | 46 | return m_fore; |
44 | } | 47 | } |
45 | int Profile::background()const { | 48 | int Profile::background()const { |
46 | return m_back; | 49 | return m_back; |
47 | } | 50 | } |
@@ -95,12 +98,15 @@ int Profile::readNumEntry( const QString& key, int def )const { | |||
95 | if ( it != m_conf.end() ) { | 98 | if ( it != m_conf.end() ) { |
96 | bool ok; | 99 | bool ok; |
97 | int val = it.data().toInt(&ok); | 100 | int val = it.data().toInt(&ok); |
98 | 101 | ||
99 | if (ok) | 102 | if (ok) |
100 | return val; | 103 | return val; |
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 | }; | ||