syncmlfw/ds/settings/inc/nsmldsoperatorsettings.h
branchRCL_3
changeset 61 b183ec05bd8c
equal deleted inserted replaced
59:13d7c31c74e0 61:b183ec05bd8c
       
     1 /*
       
     2 * Copyright (c) 2010 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:  DS Operator Settings
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __NSMLDSOPERATORSETTINGS_H
       
    19 #define __NSMLDSOPERATORSETTINGS_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CRepository;
       
    26 
       
    27 // ----------------------------------------------------------------------------
       
    28 //  CNSmlDSOperatorSettings provides an interface to 
       
    29 //  DS Operator Settings repository
       
    30 //
       
    31 //*  @lib nsmldssettings.lib
       
    32 // ----------------------------------------------------------------------------
       
    33 class CNSmlDSOperatorSettings : public CBase
       
    34     {
       
    35     public:
       
    36         /**
       
    37         * Two-phased constructor.
       
    38         */
       
    39         IMPORT_C static CNSmlDSOperatorSettings* NewL();
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         IMPORT_C static CNSmlDSOperatorSettings* NewLC();
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         IMPORT_C virtual ~CNSmlDSOperatorSettings();
       
    50 
       
    51         /**
       
    52         * Is current profile Operator specific profile.
       
    53         * @param aServerId Server Id to compare in Repository value.
       
    54         * @return Boolean ETrue if profile is Operator specific profile.
       
    55         */
       
    56         IMPORT_C TBool IsOperatorProfileL( const TDesC& aServerId  );
       
    57 
       
    58         /**
       
    59         * SW version of Operator specific profile.
       
    60         * @return Software version.
       
    61         */
       
    62         IMPORT_C HBufC8* CustomSwvValueLC();
       
    63 
       
    64         /**
       
    65         * Model value of Operator specific profile.
       
    66         * @return Mod value.
       
    67         */
       
    68         IMPORT_C HBufC8* CustomModValueLC();
       
    69 
       
    70         /**
       
    71         * Manufacturer value of Operator specific profile.
       
    72         * @return Manufacturer value.
       
    73         */
       
    74         IMPORT_C HBufC8* CustomManValueLC();
       
    75 
       
    76         /**
       
    77         * Populates server status code list
       
    78         * @param RArray to contains status codes
       
    79         */
       
    80         IMPORT_C void PopulateStatusCodeListL( RArray< TInt >& aArray );
       
    81 
       
    82         /**
       
    83         * SyncML Error Reporting
       
    84         * @return Boolean ETrue if SyncML Error Reporting is enabled.
       
    85         */
       
    86         IMPORT_C TBool SyncErrorReportingEnabled(); 
       
    87                 
       
    88         /**
       
    89         * HTTP Error Reporting
       
    90         * @return Boolean ETrue if HTTP Error Reporting is enabled.
       
    91         */
       
    92         IMPORT_C TBool HttpErrorReportingEnabled(); 
       
    93                 
       
    94     private:
       
    95 
       
    96         /**
       
    97          * Reads list of status codes from cenrep
       
    98         * @param RArray to contains status codes
       
    99         */
       
   100         void InitializeServerStatusCodeListL( RArray< TInt >& aArray );
       
   101 
       
   102         /**
       
   103         * C++ constructor.
       
   104         */
       
   105         CNSmlDSOperatorSettings();
       
   106         
       
   107         /**
       
   108         * 2nd phase constructor.
       
   109         */
       
   110         void ConstructL();
       
   111 
       
   112         /**
       
   113         * Get Repository key value of Operator specific profile.
       
   114         * @param aKey Repository key which value method returns.
       
   115         * @return Repository key value.
       
   116         */
       
   117         HBufC8* GetValueLC( const TUint32 aKey );
       
   118 
       
   119     private: // data
       
   120         CRepository* iRepository;
       
   121 
       
   122     };
       
   123 
       
   124 #endif // __NSMLDSOPERATORSETTINGS_H
       
   125 
       
   126 // End of File