qtmobileextensions/src/settingsmanager/xqcentralrepositoryutils_p.h
branchRCL_3
changeset 23 cd2778e5acfe
parent 22 5d007b20cfd0
child 25 19a54be74e5e
equal deleted inserted replaced
22:5d007b20cfd0 23:cd2778e5acfe
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 *
       
     5 * This program is free software: you can redistribute it and/or modify
       
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
       
     8 * 
       
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not, 
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    17 *
       
    18 * Description:
       
    19 *
       
    20 */
       
    21 
       
    22 #ifndef XQCENTRALREPOSITORYUTILS_P_H
       
    23 #define XQCENTRALREPOSITORYUTILS_P_H
       
    24 
       
    25 #include "xqsettingsmanager.h"
       
    26 #include "xqsettingskey.h"
       
    27 #include "xqcentralrepositoryutils.h"
       
    28 
       
    29 class XQSettingsManagerPrivate;
       
    30 class XQCentralRepositorySearchCriteria;
       
    31 
       
    32 class XQCentralRepositoryUtilsPrivate
       
    33 {
       
    34 public:
       
    35     XQCentralRepositoryUtilsPrivate(XQSettingsManager& settingsManager);
       
    36     ~XQCentralRepositoryUtilsPrivate();
       
    37     bool createKey(const XQCentralRepositorySettingsKey& key, const QVariant& value);
       
    38     bool deleteKey(const XQCentralRepositorySettingsKey& key);
       
    39     bool resetKey(const XQCentralRepositorySettingsKey& key);
       
    40     bool resetRepository(long int repositoryUid);
       
    41     QList<XQCentralRepositorySettingsKey> findKeys(const XQCentralRepositorySearchCriteria& criteria);
       
    42 
       
    43     bool startTransaction(long int repositoryUid, XQCentralRepositoryUtils::TransactionMode transactionMode);
       
    44     bool commitTransaction(long int repositoryUid);
       
    45     void cancelTransaction(long int repositoryUid);
       
    46     void failTransaction(long int repositoryUid);
       
    47     XQCentralRepositoryUtils::TransactionState transactionState(long int repositoryUid) const;
       
    48 
       
    49 private:
       
    50     XQSettingsManagerPrivate& m_settingsManagerPrivate;
       
    51 };
       
    52 
       
    53 #endif //XQCENTRALREPOSITORYUTILS_P_H