qtmobility/src/publishsubscribe/xqsettingsmanager_symbian/xqcentralrepositoryutils.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
   112     releases by default.)
   112     releases by default.)
   113     \param key XQCentralRepositorySettingsKey which defines the key details
   113     \param key XQCentralRepositorySettingsKey which defines the key details
   114     \param value Initial value to be written into central repository. The type is determined with
   114     \param value Initial value to be written into central repository. The type is determined with
   115     QVariant.type() and it must be either QVariant::Int, QVariant::Double, QVariant::String or
   115     QVariant.type() and it must be either QVariant::Int, QVariant::Double, QVariant::String or
   116     QVariant::ByteArray.
   116     QVariant::ByteArray.
   117     \return True if the key was succesfully created, otherwise return false.
   117     \return True if the key was successfully created, otherwise return false.
   118 */
   118 */
   119 bool XQCentralRepositoryUtils::createKey(const XQCentralRepositorySettingsKey& key, const QVariant& value)
   119 bool XQCentralRepositoryUtils::createKey(const XQCentralRepositorySettingsKey& key, const QVariant& value)
   120 {
   120 {
   121     return d->createKey(key, value);
   121     return d->createKey(key, value);
   122 }
   122 }
   123 
   123 
   124 /*
   124 /*
   125     Deletes a key from central repository. (NOTE: This function is not enabled in public
   125     Deletes a key from central repository. (NOTE: This function is not enabled in public
   126     releases by default.)
   126     releases by default.)
   127     \param key XQCentralRepositorySettingsKey which defines the key details
   127     \param key XQCentralRepositorySettingsKey which defines the key details
   128     \return True if the key was succesfully deleted, otherwise return false.
   128     \return True if the key was successfully deleted, otherwise return false.
   129 */
   129 */
   130 bool XQCentralRepositoryUtils::deleteKey(const XQCentralRepositorySettingsKey& key)
   130 bool XQCentralRepositoryUtils::deleteKey(const XQCentralRepositorySettingsKey& key)
   131 {
   131 {
   132     return d->deleteKey(key);
   132     return d->deleteKey(key);
   133 }
   133 }
   134 
   134 
   135 /*
   135 /*
   136     Resets a key in central repository to it's initial value defined in .ini file.
   136     Resets a key in central repository to it's initial value defined in .ini file.
   137     \param key XQCentralRepositorySettingsKey which defines the key details
   137     \param key XQCentralRepositorySettingsKey which defines the key details
   138     \return True if the key was succesfully reset, otherwise return false.
   138     \return True if the key was successfully reset, otherwise return false.
   139 */
   139 */
   140 bool XQCentralRepositoryUtils::resetKey(const XQCentralRepositorySettingsKey& key)
   140 bool XQCentralRepositoryUtils::resetKey(const XQCentralRepositorySettingsKey& key)
   141 {
   141 {
   142     return d->resetKey(key);
   142     return d->resetKey(key);
   143 }
   143 }
   144 
   144 
   145 /*
   145 /*
   146     Resets the whole central repository file to it's initial state defined in .ini file.
   146     Resets the whole central repository file to it's initial state defined in .ini file.
   147     \param repositoryUid Repository UID
   147     \param repositoryUid Repository UID
   148     \return True if the repository was succesfully reset, otherwise return false.
   148     \return True if the repository was successfully reset, otherwise return false.
   149 */
   149 */
   150 bool XQCentralRepositoryUtils::resetRepository(long int repositoryUid)
   150 bool XQCentralRepositoryUtils::resetRepository(long int repositoryUid)
   151 {
   151 {
   152     return d->resetRepository(repositoryUid);
   152     return d->resetRepository(repositoryUid);
   153 }
   153 }
   164 
   164 
   165 /*
   165 /*
   166     Starts transaction. See Symbian documentation for more info.
   166     Starts transaction. See Symbian documentation for more info.
   167     \param repositoryUid Repository UID
   167     \param repositoryUid Repository UID
   168     \param transactionMode Transaction mode.
   168     \param transactionMode Transaction mode.
   169     \return True if the transaction was succesfully started, otherwise return false.
   169     \return True if the transaction was successfully started, otherwise return false.
   170 */
   170 */
   171 bool XQCentralRepositoryUtils::startTransaction(long int repositoryUid, TransactionMode transactionMode)
   171 bool XQCentralRepositoryUtils::startTransaction(long int repositoryUid, TransactionMode transactionMode)
   172 {
   172 {
   173     return d->startTransaction(repositoryUid, transactionMode);
   173     return d->startTransaction(repositoryUid, transactionMode);
   174 }
   174 }
   175 
   175 
   176 /*
   176 /*
   177     Commits transaction. See Symbian documentation for more info.
   177     Commits transaction. See Symbian documentation for more info.
   178     \param repositoryUid Repository UID
   178     \param repositoryUid Repository UID
   179     \return True if the transaction was succesfully committed, otherwise return false.
   179     \return True if the transaction was successfully committed, otherwise return false.
   180 */
   180 */
   181 bool XQCentralRepositoryUtils::commitTransaction(long int repositoryUid)
   181 bool XQCentralRepositoryUtils::commitTransaction(long int repositoryUid)
   182 {
   182 {
   183     return d->commitTransaction(repositoryUid);
   183     return d->commitTransaction(repositoryUid);
   184 }
   184 }