Diffstat (limited to 'noncore/apps/opie-console/profile.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profile.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/profile.h b/noncore/apps/opie-console/profile.h index 5652ac5..78fe6ab 100644 --- a/noncore/apps/opie-console/profile.h +++ b/noncore/apps/opie-console/profile.h | |||
@@ -13,56 +13,59 @@ | |||
13 | * Configuration is contained here too | 13 | * Configuration is contained here too |
14 | */ | 14 | */ |
15 | class Profile { | 15 | class Profile { |
16 | public: | 16 | public: |
17 | typedef QValueList<Profile> ValueList; | 17 | typedef QValueList<Profile> ValueList; |
18 | enum Color { Black = 0, | 18 | enum Color { Black = 0, |
19 | White, | 19 | White, |
20 | Gray }; | 20 | Gray }; |
21 | enum Terminal {VT102 = 0 }; | 21 | enum Terminal {VT102 = 0 }; |
22 | enum Font { Micro = 0, Small, Medium }; | 22 | enum Font { Micro = 0, Small, Medium }; |
23 | Profile(); | 23 | Profile(); |
24 | Profile( const QString& name, | 24 | Profile( const QString& name, |
25 | const QString& iolayerName, | 25 | const QCString& iolayerName, |
26 | const QCString& termName, | ||
26 | int background, | 27 | int background, |
27 | int foreground, | 28 | int foreground, |
28 | int terminal); | 29 | int terminal); |
29 | Profile( const Profile& ); | 30 | Profile( const Profile& ); |
30 | Profile &operator=( const Profile& ); | 31 | Profile &operator=( const Profile& ); |
31 | bool operator==( const Profile& prof ); | 32 | bool operator==( const Profile& prof ); |
32 | 33 | ||
33 | ~Profile(); | 34 | ~Profile(); |
34 | QString name()const; | 35 | QString name()const; |
35 | QString ioLayerName()const; | 36 | QCString ioLayerName()const; |
37 | QCString terminalName()const; | ||
36 | int foreground()const; | 38 | int foreground()const; |
37 | int background()const; | 39 | int background()const; |
38 | int terminal()const; | 40 | int terminal()const; |
39 | 41 | ||
40 | /* | 42 | /* |
41 | * config stuff | 43 | * config stuff |
42 | */ | 44 | */ |
43 | QMap<QString, QString> conf()const; | 45 | QMap<QString, QString> conf()const; |
44 | void clearConf(); | 46 | void clearConf(); |
45 | void writeEntry( const QString& key, const QString& value ); | 47 | void writeEntry( const QString& key, const QString& value ); |
46 | void writeEntry( const QString& key, int num ); | 48 | void writeEntry( const QString& key, int num ); |
47 | void writeEntry( const QString& key, bool b ); | 49 | void writeEntry( const QString& key, bool b ); |
48 | void writeEntry( const QString& key, const QStringList&, const QChar& ); | 50 | void writeEntry( const QString& key, const QStringList&, const QChar& ); |
49 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; | 51 | QString readEntry( const QString& key, const QString& deflt = QString::null)const; |
50 | int readNumEntry( const QString& key, int = -1 )const; | 52 | int readNumEntry( const QString& key, int = -1 )const; |
51 | bool readBoolEntry( const QString& key, bool = FALSE )const; | 53 | bool readBoolEntry( const QString& key, bool = FALSE )const; |
52 | 54 | ||
53 | void setName( const QString& ); | 55 | void setName( const QString& ); |
54 | void setIOLayer( const QString& ); | 56 | void setIOLayer( const QCString& ); |
57 | void setTerminalName( const QCString& ); | ||
55 | void setBackground( int back ); | 58 | void setBackground( int back ); |
56 | void setForeground( int fore ); | 59 | void setForeground( int fore ); |
57 | void setTerminal( int term ); | 60 | void setTerminal( int term ); |
58 | void setConf( const QMap<QString, QString>& ); | 61 | void setConf( const QMap<QString, QString>& ); |
59 | private: | 62 | private: |
60 | QMap<QString, QString> m_conf; | 63 | QMap<QString, QString> m_conf; |
61 | QString m_name; | 64 | QString m_name; |
62 | QString m_ioLayer; | 65 | QCString m_ioLayer, m_term; |
63 | int m_back; | 66 | int m_back; |
64 | int m_fore; | 67 | int m_fore; |
65 | int m_terminal; | 68 | int m_terminal; |
66 | }; | 69 | }; |
67 | 70 | ||
68 | #endif | 71 | #endif |