remotemgmt_plat/syncml_ds_customization_api/tsrc/synchconfigvalidator/customdatasynchconfigvalidatorengine_p.h
branchRCL_3
changeset 25 b183ec05bd8c
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CUSTOMDATASYNCHCONFIGVALIDATORENGINE_H
       
    19 #define CUSTOMDATASYNCHCONFIGVALIDATORENGINE_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "customdatasynchconfigvalidatorenginewrapper.h"
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class CustomDataSynchConfigValidatorEngine: public QObject, public CBase
       
    27 {
       
    28     Q_OBJECT
       
    29     
       
    30 public:
       
    31     CustomDataSynchConfigValidatorEngine(CustomDataSynchConfigValidatorEngineWrapper* parent);
       
    32     ~CustomDataSynchConfigValidatorEngine();
       
    33     
       
    34     //Tests
       
    35     bool dataSynchCenrepExists();
       
    36     bool operatordataSynchCenrepExists();
       
    37     bool operatordataSynchErrorCenrepExists();
       
    38     bool customSynchProfilesAllowed();
       
    39     bool configuredContactsAdapterExists(QString & errorMsg);
       
    40     bool configuredCustomSynchProfileExists(QString & errorMsg);
       
    41     bool contactAdapterCenrepValueToProfileMatches(QString & errorMsg);
       
    42     bool myprofileAdapterCenrepValueToProfileMatches(QString & errorMsg);
       
    43 
       
    44     /**
       
    45      * Tests whether a device info extension plugin is available
       
    46      * @return True, if plugin is found, false otherwise.
       
    47      */
       
    48     bool devInfoExtensionPluginAvailable();
       
    49     
       
    50 private:
       
    51     bool getStringValueFromSyncProfileSettingsDb(QString & value, QString columnName, QString whereTypeConditionForSql="");
       
    52     /*@returns profileId -1 if problems acquiring the op.specific profile Id*/
       
    53     int operatorProfileIdFromProfilesDB();
       
    54     bool adapterCenrepValueToProfileMatches(QString & errorMsg, TUid adapterUid);
       
    55     
       
    56     QString imsi() const;
       
    57     QString imei() const;
       
    58     QString softwareVersion() const;
       
    59     QString model() const;
       
    60     QString manufacturer() const;
       
    61 
       
    62 private:
       
    63     CustomDataSynchConfigValidatorEngineWrapper* q;//for emitting signals in q
       
    64     TUid iEComDtorKey;
       
    65 };
       
    66 
       
    67 #endif /*CUSTOMDATASYNCHCONFIGVALIDATORENGINE_H*/
       
    68 
       
    69 // End of file