summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profile.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/profile.cpp6
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;
+};