equal
deleted
inserted
replaced
142 */ |
142 */ |
143 CaEntry *HsOperatorHandlerPrivate::createAppEntry( |
143 CaEntry *HsOperatorHandlerPrivate::createAppEntry( |
144 XQSettingsManager *crManager) |
144 XQSettingsManager *crManager) |
145 { |
145 { |
146 QVariant variant = getVariantFromKey( |
146 QVariant variant = getVariantFromKey( |
147 crManager, OperatorStoreApplication, XQSettingsManager::TypeString); |
147 crManager, OperatorStoreApplication, XQSettingsManager::TypeString); |
148 if (!variant.isNull()) { |
148 if (!variant.isNull()) { |
149 CaEntry *operatorEntry = new CaEntry; |
149 CaEntry *operatorEntry = new CaEntry; |
150 operatorEntry->setEntryTypeName(Hs::applicationTypeName); |
150 operatorEntry->setEntryTypeName(Hs::applicationTypeName); |
|
151 // Convert from a hexadecimal integer into a decimal one (as a string). |
151 operatorEntry->setAttribute( |
152 operatorEntry->setAttribute( |
152 Hs::applicationUidEntryKey, variant.toString()); |
153 Hs::applicationUidEntryKey, |
153 |
154 QString::number(variant.toString().toInt(0, 16))); |
154 return operatorEntry; |
155 return operatorEntry; |
155 } |
156 } |
156 return NULL; |
157 return NULL; |
157 } |
158 } |
158 |
159 |
208 QVariant presenceVariant = crManager->readItemValue( |
209 QVariant presenceVariant = crManager->readItemValue( |
209 presenceKey, type); |
210 presenceKey, type); |
210 |
211 |
211 if (presenceVariant.isValid()) { |
212 if (presenceVariant.isValid()) { |
212 qDebug() << "HsOperatorHandlerPrivate::storePresent" |
213 qDebug() << "HsOperatorHandlerPrivate::storePresent" |
213 << presenceVariant.toInt(); |
214 << presenceVariant; |
214 return presenceVariant; |
215 return presenceVariant; |
215 } |
216 } |
216 return QVariant(); |
217 return QVariant(); |
217 } |
218 } |
218 |
219 |