author | zecke <zecke> | 2002-10-09 14:25:38 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-09 14:25:38 (UTC) |
commit | f9f2d227b3cfbc2187b4f7f535fc59f9735798d0 (patch) (unidiff) | |
tree | 7645623f7dde640222fab3e5ff0af0af3ae2f882 /noncore/apps/opie-console/profile.cpp | |
parent | ff0caad7ea46d19f7a7916047fd0914f6f100dde (diff) | |
download | opie-f9f2d227b3cfbc2187b4f7f535fc59f9735798d0.zip opie-f9f2d227b3cfbc2187b4f7f535fc59f9735798d0.tar.gz opie-f9f2d227b3cfbc2187b4f7f535fc59f9735798d0.tar.bz2 |
A small testsuite
the stuff from the remote goes to the stdout
There is a send button and a multilineedit
be sure to hit \n before sending...
Some debug code... in some files
debugged IOSerial it should be fine now
Diffstat (limited to 'noncore/apps/opie-console/profile.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profile.cpp b/noncore/apps/opie-console/profile.cpp index 1a94619..ffd672e 100644 --- a/noncore/apps/opie-console/profile.cpp +++ b/noncore/apps/opie-console/profile.cpp | |||
@@ -69,27 +69,29 @@ void Profile::setBackground( int back ) { | |||
69 | } | 69 | } |
70 | void Profile::setForeground( int fore ) { | 70 | void Profile::setForeground( int fore ) { |
71 | m_fore = fore; | 71 | m_fore = fore; |
72 | } | 72 | } |
73 | void Profile::setTerminal( int term ) { | 73 | void Profile::setTerminal( int term ) { |
74 | m_terminal = term; | 74 | m_terminal = term; |
75 | } | 75 | } |
76 | /* config stuff */ | 76 | /* config stuff */ |
77 | void Profile::clearConf() { | 77 | void Profile::clearConf() { |
78 | m_conf.clear(); | 78 | m_conf.clear(); |
79 | } | 79 | } |
80 | void Profile::writeEntry( const QString& key, const QString& value ) { | 80 | void Profile::writeEntry( const QString& key, const QString& value ) { |
81 | qWarning("key %s value %s", key.latin1(), value.latin1() ); | ||
81 | m_conf.replace( key, value ); | 82 | m_conf.replace( key, value ); |
82 | } | 83 | } |
83 | void Profile::writeEntry( const QString& key, int num ) { | 84 | void Profile::writeEntry( const QString& key, int num ) { |
85 | qWarning("num"); | ||
84 | writeEntry( key, QString::number( num ) ); | 86 | writeEntry( key, QString::number( num ) ); |
85 | } | 87 | } |
86 | void Profile::writeEntry( const QString& key, bool b ) { | 88 | void Profile::writeEntry( const QString& key, bool b ) { |
87 | writeEntry( key, QString::number(b) ); | 89 | writeEntry( key, QString::number(b) ); |
88 | } | 90 | } |
89 | void Profile::writeEntry( const QString& key, const QStringList& lis, const QChar& sep ) { | 91 | void Profile::writeEntry( const QString& key, const QStringList& lis, const QChar& sep ) { |
90 | writeEntry( key, lis.join(sep) ); | 92 | writeEntry( key, lis.join(sep) ); |
91 | } | 93 | } |
92 | QString Profile::readEntry( const QString& key, const QString& deflt )const { | 94 | QString Profile::readEntry( const QString& key, const QString& deflt )const { |
93 | QMap<QString, QString>::ConstIterator it; | 95 | QMap<QString, QString>::ConstIterator it; |
94 | it = m_conf.find( key ); | 96 | it = m_conf.find( key ); |
95 | 97 | ||