()
| 218 | |
| 219 | |
| 220 | public final void importData() { |
| 221 | array = iData(); |
| 222 | |
| 223 | // Sorted similar to Config.loadFromStorage(). |
| 224 | cf.accountIndex=cf.getIntProperty(getValue(accountIndex),-1); |
| 225 | cf.showOfflineContacts=cf.getBooleanProperty(getValue(showOfflineContacts),false); |
| 226 | Config.fullscreen=cf.getBooleanProperty(getValue(fullscreen),true); |
| 227 | cf.def_profile = cf.getIntProperty(getValue(def_profile),0); |
| 228 | //#ifdef SMILES |
| 229 | cf.smiles=cf.getBooleanProperty(getValue(smiles),true); |
| 230 | //#endif |
| 231 | cf.showTransports=cf.getBooleanProperty(getValue(showTransports),true); |
| 232 | cf.selfContact=cf.getBooleanProperty(getValue(selfContact),false); |
| 233 | cf.collapsedGroups=cf.getBooleanProperty(getValue(collapsedGroups),true); |
| 234 | cf.ignore=cf.getBooleanProperty(getValue(ignore),false); |
| 235 | cf.eventComposing=cf.getBooleanProperty(getValue(eventComposing),true); |
| 236 | cf.gmtOffset=cf.getIntProperty(getValue(gmtOffset),0); |
| 237 | cf.autoLogin=cf.getBooleanProperty(getValue(autoLogin),true); |
| 238 | //#ifndef WMUC |
| 239 | cf.autoJoinConferences=cf.getBooleanProperty(getValue(autoJoinConferences),true); |
| 240 | //#endif |
| 241 | cf.popupFromMinimized=cf.getBooleanProperty(getValue(popupFromMinimized),true); |
| 242 | cf.notifyBlink=cf.getBooleanProperty(getValue(notifyBlink),false); |
| 243 | cf.rosterFont=cf.getIntProperty(getValue(font1),8); |
| 244 | cf.msgFont=cf.getIntProperty(getValue(font2),8); |
| 245 | cf.autoFocus=cf.getBooleanProperty(getValue(autoFocus),false); |
| 246 | cf.notInListDropLevel=cf.getIntProperty(getValue(notInListDropLevel), NotInListFilter.ALLOW_ALL); |
| 247 | //#ifndef WMUC |
| 248 | cf.storeConfPresence=cf.getBooleanProperty(getValue(storeConfPresence), false); |
| 249 | //#endif |
| 250 | cf.capsState=cf.getBooleanProperty(getValue(capsState),false); |
| 251 | cf.textWrap=cf.getIntProperty(getValue(textWrap),0); |
| 252 | cf.loginstatus=cf.getIntProperty(getValue(loginstatus),0); |
| 253 | //#ifdef HISTORY |
| 254 | cf.msgPath=getStringProperty(getValue(msgPath),""); |
| 255 | cf.msgLog=cf.getBooleanProperty(getValue(msgLog),false); |
| 256 | cf.msgLogPresence=cf.getBooleanProperty(getValue(msgLogPresence),false); |
| 257 | cf.msgLogConfPresence=cf.getBooleanProperty(getValue(msgLogConfPresence),false); |
| 258 | cf.msgLogConf=cf.getBooleanProperty(getValue(msgLogConf),false); |
| 259 | //#endif |
| 260 | Config.autoAwayDelay=cf.getIntProperty(getValue(autoAwayDelay),5); |
| 261 | //#ifndef WMUC |
| 262 | cf.defGcRoom=getStringProperty(getValue(defGcRoom),"bombusmod@conference.jabber.ru"); |
| 263 | //#endif |
| 264 | // TODO: read firstRun? |
| 265 | cf.panelsState=cf.getIntProperty(getValue(panelsState), VirtualList.PANELS_STATE_BOTH); |
| 266 | //#ifndef WMUC |
| 267 | cf.confMessageCount=cf.getIntProperty(getValue(confMessageCount),20); |
| 268 | //#endif |
| 269 | cf.fileTransfer=cf.getBooleanProperty(getValue(fileTransfer),true); |
| 270 | //#ifdef LIGHT_CONFIG |
| 271 | //# cf.lightState=cf.getBooleanProperty(getValue(lightState),false); |
| 272 | //#endif |
| 273 | cf.notifySound=cf.getBooleanProperty(getValue(notifySound),false); |
| 274 | //#ifdef LAST_MESSAGES |
| 275 | cf.lastMessages=cf.getBooleanProperty(getValue(lastMessages),false); |
| 276 | //#endif |
| 277 | Config.useMyStatusMessages=cf.getBooleanProperty(getValue(useMyStatusMessages),true); |
no test coverage detected