summaryrefslogtreecommitdiff
authoreilers <eilers>2002-11-21 08:19:50 (UTC)
committer eilers <eilers>2002-11-21 08:19:50 (UTC)
commit842d502e43ce9889eae891962acfa8fc7061a916 (patch) (unidiff)
tree46d538135fd3d873c5fbabe3619d8476dfee8574
parent5b106f38c00c2fff0adf78a07900131098afa4d5 (diff)
downloadopie-842d502e43ce9889eae891962acfa8fc7061a916.zip
opie-842d502e43ce9889eae891962acfa8fc7061a916.tar.gz
opie-842d502e43ce9889eae891962acfa8fc7061a916.tar.bz2
nothing interesting
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/abconfig.cpp b/core/pim/addressbook/abconfig.cpp
index 703faac..e58fa76 100644
--- a/core/pim/addressbook/abconfig.cpp
+++ b/core/pim/addressbook/abconfig.cpp
@@ -118,67 +118,67 @@ void AbConfig::load()
118 int ID = 0; 118 int ID = 0;
119 int i = 0; 119 int i = 0;
120 ID = cfg.readNumEntry( "ContactID_"+QString::number(i++), 0 ); 120 ID = cfg.readNumEntry( "ContactID_"+QString::number(i++), 0 );
121 while ( ID != 0 ){ 121 while ( ID != 0 ){
122 m_ordered.append( ID ); 122 m_ordered.append( ID );
123 ID = cfg.readNumEntry( "ContactID_"+QString::number(i++), 0 ); 123 ID = cfg.readNumEntry( "ContactID_"+QString::number(i++), 0 );
124 } 124 }
125 125
126 // If no contact order is defined, we set the default 126 // If no contact order is defined, we set the default
127 if ( m_ordered.count() == 0 ) { 127 if ( m_ordered.count() == 0 ) {
128 m_ordered.append( Qtopia::DefaultEmail ); 128 m_ordered.append( Qtopia::DefaultEmail );
129 m_ordered.append( Qtopia::HomePhone); 129 m_ordered.append( Qtopia::HomePhone);
130 m_ordered.append( Qtopia::HomeMobile); 130 m_ordered.append( Qtopia::HomeMobile);
131 m_ordered.append( Qtopia::BusinessPhone); 131 m_ordered.append( Qtopia::BusinessPhone);
132 } 132 }
133 133
134 cfg.setGroup("ToolBar"); 134 cfg.setGroup("ToolBar");
135 m_barPos = cfg.readNumEntry( "Position", QMainWindow::Top ); 135 m_barPos = cfg.readNumEntry( "Position", QMainWindow::Top );
136 136
137 m_changed = false; 137 m_changed = false;
138} 138}
139 139
140void AbConfig::save() 140void AbConfig::save()
141{ 141{
142 if ( m_changed ){ 142 if ( m_changed ){
143 Config cfg("AddressBook"); 143 Config cfg("AddressBook");
144 cfg.setGroup("Font"); 144 cfg.setGroup("Font");
145 cfg.writeEntry("fontSize", m_fontSize); 145 cfg.writeEntry("fontSize", m_fontSize);
146 146
147 cfg.setGroup("Search"); 147 cfg.setGroup("Search");
148 cfg.writeEntry("useRegExp", m_useRegExp); 148 cfg.writeEntry("useRegExp", m_useRegExp);
149 cfg.writeEntry("caseSensitive", m_beCaseSensitive); 149 cfg.writeEntry("caseSensitive", m_beCaseSensitive);
150 150
151 cfg.setGroup("Mail"); 151 cfg.setGroup("Mail");
152 cfg.writeEntry( "useQtMail", m_useQtMail ); 152 cfg.writeEntry( "useQtMail", m_useQtMail );
153 cfg.writeEntry( "useOpieMail", m_useOpieMail); 153 cfg.writeEntry( "useOpieMail", m_useOpieMail);
154 154
155 cfg.setGroup("ContactOrder"); 155 cfg.setGroup("ContactOrder");
156 cfg.clearGroup(); 156 cfg.clearGroup();
157 for ( uint i = 0; i < m_ordered.count(); i++ ){ 157 for ( uint i = 0; i < m_ordered.count(); i++ ){
158 cfg.writeEntry( "ContactID_"+QString::number(i), m_ordered[i] ); 158 cfg.writeEntry( "ContactID_"+QString::number(i), m_ordered[i] );
159 } 159 }
160 160
161 cfg.setGroup("ToolBar"); 161 cfg.setGroup("ToolBar");
162 cfg.writeEntry( "Position", m_barPos ); 162 cfg.writeEntry( "Position", m_barPos );
163 163
164 cfg.setGroup("Version"); 164 cfg.setGroup("Version");
165 cfg.writeEntry( "AppName", APPNAME + QString(" V" ) + MAINVERSION + QString(".") + SUBVERSION + QString(".") + PATCHVERSION); 165 cfg.writeEntry( "AppName", APPNAME + QString(" V" ) + MAINVERSION + QString(".") + SUBVERSION + QString(".") + PATCHVERSION);
166 cfg.writeEntry( "Mainversion", MAINVERSION ); 166 cfg.writeEntry( "Mainversion", MAINVERSION );
167 cfg.writeEntry( "SubVersion", SUBVERSION ); 167 cfg.writeEntry( "SubVersion", SUBVERSION );
168 cfg.writeEntry( "PatchVersion", PATCHVERSION ); 168 cfg.writeEntry( "PatchVersion", PATCHVERSION );
169 169
170 } 170 }
171 171
172} 172}
173 173
174void AbConfig::operator= ( const AbConfig& cnf ) 174void AbConfig::operator= ( const AbConfig& cnf )
175{ 175{
176 m_useQtMail = cnf.m_useQtMail; 176 m_useQtMail = cnf.m_useQtMail;
177 m_useOpieMail = cnf.m_useOpieMail; 177 m_useOpieMail = cnf.m_useOpieMail;
178 m_useRegExp = cnf.m_useRegExp; 178 m_useRegExp = cnf.m_useRegExp;
179 m_beCaseSensitive = cnf.m_beCaseSensitive; 179 m_beCaseSensitive = cnf.m_beCaseSensitive;
180 m_fontSize = cnf.m_fontSize; 180 m_fontSize = cnf.m_fontSize;
181 m_ordered = cnf.m_ordered; 181 m_ordered = cnf.m_ordered;
182 182 m_barPos = cnf.m_barPos;
183} 183}
184 184