qtmobility/src/publishsubscribe/xqsettingsmanager_symbian/xqsettingsmanager.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    94     \enum XQSettingsManager::Error
    94     \enum XQSettingsManager::Error
    95 
    95 
    96     This enum defines the possible errors for an XQSettingsManager object.
    96     This enum defines the possible errors for an XQSettingsManager object.
    97 */
    97 */
    98 /*  \var XQSettingsManager::Error XQSettingsManager::NoError
    98 /*  \var XQSettingsManager::Error XQSettingsManager::NoError
    99     No error occured.
    99     No error occurred.
   100 */
   100 */
   101 /*  \var XQSettingsManager::Error XQSettingsManager::OutOfMemoryError
   101 /*  \var XQSettingsManager::Error XQSettingsManager::OutOfMemoryError
   102     Not enough memory.
   102     Not enough memory.
   103 */
   103 */
   104 /*  \var XQSettingsManager::Error XQSettingsManager::NotFoundError
   104 /*  \var XQSettingsManager::Error XQSettingsManager::NotFoundError
   135     Writes an item value.
   135     Writes an item value.
   136     \param key XQSettingsKey where the value is written to
   136     \param key XQSettingsKey where the value is written to
   137     \param value Value to be written into the settings item. The type is determined with
   137     \param value Value to be written into the settings item. The type is determined with
   138     QVariant.type() and it must be either QVariant::Int, QVariant::Double, QVariant::String or
   138     QVariant.type() and it must be either QVariant::Int, QVariant::Double, QVariant::String or
   139     QVariant::ByteArray.
   139     QVariant::ByteArray.
   140     \return True if the item was written succesfully, otherwise return false.
   140     \return True if the item was written successfully, otherwise return false.
   141     \sa error(), readItemValue()
   141     \sa error(), readItemValue()
   142 */
   142 */
   143 bool XQSettingsManager::writeItemValue(const XQSettingsKey& key, const QVariant& value)
   143 bool XQSettingsManager::writeItemValue(const XQSettingsKey& key, const QVariant& value)
   144 {
   144 {
   145     return d->writeItemValue(key, value);
   145     return d->writeItemValue(key, value);
   148 /* 
   148 /* 
   149     Starts monitoring a settings item.
   149     Starts monitoring a settings item.
   150     \param key XQSettingsKey of which changes are monitored.
   150     \param key XQSettingsKey of which changes are monitored.
   151     \param type Value type. Default is TypeVariant which means that the type is
   151     \param type Value type. Default is TypeVariant which means that the type is
   152     tried to detect automatically.
   152     tried to detect automatically.
   153     \return True if monitoring was started succesfully, otherwise return false.
   153     \return True if monitoring was started successfully, otherwise return false.
   154     \sa error(), stopMonitoring()
   154     \sa error(), stopMonitoring()
   155 */
   155 */
   156 bool XQSettingsManager::startMonitoring(const XQSettingsKey& key, XQSettingsManager::Type type)
   156 bool XQSettingsManager::startMonitoring(const XQSettingsKey& key, XQSettingsManager::Type type)
   157 {
   157 {
   158     return d->startMonitoring(key, type);
   158     return d->startMonitoring(key, type);
   159 }
   159 }
   160 
   160 
   161 /* 
   161 /* 
   162     Stops monitoring a settings item.
   162     Stops monitoring a settings item.
   163     \param key XQSettingsKey of which changes are not monitored any more.
   163     \param key XQSettingsKey of which changes are not monitored any more.
   164     \return True if monitoring was stopped succesfully, otherwise return false.
   164     \return True if monitoring was stopped successfully, otherwise return false.
   165     \sa error(), startMonitoring()
   165     \sa error(), startMonitoring()
   166 */
   166 */
   167 bool XQSettingsManager::stopMonitoring(const XQSettingsKey& key)
   167 bool XQSettingsManager::stopMonitoring(const XQSettingsKey& key)
   168 {
   168 {
   169     return d->stopMonitoring(key);
   169     return d->stopMonitoring(key);