uiservicetabsettings/inc/cvimpstsettingscenrep.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Settings Store implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CVIMPSTSETTINGSCENREP_H
       
    20 #define __CVIMPSTSETTINGSCENREP_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CRepository;
       
    27 class CVIMPSTSettings;
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 NONSHARABLE_CLASS( CVIMPSTSettingsCenRep ): public CBase
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35 
       
    36         /**
       
    37          * Two-phased constructor.
       
    38          *          
       
    39          */
       
    40         static CVIMPSTSettingsCenRep* NewL( );
       
    41         static CVIMPSTSettingsCenRep* NewLC( );
       
    42 
       
    43         /**
       
    44          * Destructor.
       
    45          */
       
    46         virtual ~CVIMPSTSettingsCenRep();
       
    47 
       
    48 
       
    49     public:        
       
    50         /**
       
    51          * UpdateOldSAPL
       
    52          * @param aSAPSettings the pointer to respective sap
       
    53          */
       
    54         void UpdateOldSettingsL( TUint32& aServiceId, CVIMPSTSettings* aSettings );
       
    55         /**
       
    56          * GetSAPL
       
    57          * @param aSAPSettings the pointer to respective sap
       
    58          */
       
    59         void GetSettingsL( TUint32& aServiceId, CVIMPSTSettings* aSettings );
       
    60         /**
       
    61          * DoGetSAPL
       
    62          * @param aSAPSettings the pointer to respective sap
       
    63          */
       
    64         void DoGetSettingsL( TUint32& aServiceId, CVIMPSTSettings* aSettings );
       
    65         /**
       
    66          * StartOwnTransaction
       
    67          * @param aMode updates the store
       
    68          */
       
    69         TBool StartOwnTransaction( TInt aMode );
       
    70         /**
       
    71          * StartOwnTransaction
       
    72          * returns current repository
       
    73          */
       
    74         CRepository* Repository() const;  
       
    75 
       
    76     private: //Constructors
       
    77 
       
    78         /**
       
    79          * C++ default constructor.
       
    80          */
       
    81         CVIMPSTSettingsCenRep();
       
    82 
       
    83         /**
       
    84          * By default Symbian 2nd phase constructor is private.
       
    85          *
       
    86          * @param aPriority Priority for active object based store event
       
    87          *        notifier. This determines priority of notifying store
       
    88          *        event observers.
       
    89          */
       
    90         void ConstructL( );
       
    91 
       
    92 
       
    93     private:    // Data
       
    94         CRepository* iRepository; // Handle to central repository session (own)  
       
    95     };
       
    96 
       
    97 #endif      // __CVIMPSTSETTINGSCENREP_H
       
    98 
       
    99 // End of File