profilesservices/ProfileEngine/EngSrc/CProfileEngineImpl.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 8 f62c3a3d66b8
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32property.h>
    24 #include <e32property.h>
    25 #include <f32file.h>            // RFs
    25 #include <f32file.h>            // RFs
    26 #include <Profile.hrh>          // TProfileRingingVolume 
    26 #include <Profile.hrh>          // TProfileRingingVolume 
    27 #include <MProfileEngineExtended.h> // MProfileEngineExtended
    27 #include <MProfileEngineExtended2.h> // MProfileEngineExtended2
    28 #include <MProfileExtended.h> // MProfileExtended
    28 #include <MProfileExtended.h> // MProfileExtended
    29 
    29 
    30 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    31 class CProfileNameImpl;
    31 class CProfileNameImpl;
    32 class CProfileImpl;
    32 class CProfileImpl;
    44 *
    44 *
    45 *  @lib ProfileEng
    45 *  @lib ProfileEng
    46 *  @since 2.0
    46 *  @since 2.0
    47 */
    47 */
    48 NONSHARABLE_CLASS(CProfileEngineImpl) : public CBase,
    48 NONSHARABLE_CLASS(CProfileEngineImpl) : public CBase,
    49                            public MProfileEngineExtended
    49                            public MProfileEngineExtended2
    50     {
    50     {
    51     public:  // Constructors and destructor
    51     public:  // Constructors and destructor
    52 
    52 
    53         /**
    53         /**
    54         * Two-phased constructor.
    54         * Two-phased constructor.
   184         * From MProfileEngine.
   184         * From MProfileEngine.
   185         */
   185         */
   186         TBool IsActiveProfileTimedL();
   186         TBool IsActiveProfileTimedL();
   187 
   187 
   188         /**
   188         /**
   189         * From MProfileEngineExtended.
   189         * From MProfileEngineExtended2.
   190         */
   190         */
   191         void SetActiveProfileTimedL( TInt aId, TTime aTime );
   191         void SetActiveProfileTimedL( TInt aId, TTime aTime );
       
   192         
       
   193         
       
   194         /**
       
   195         * From MProfileEngineExtended2.
       
   196         */
       
   197         virtual MProfileExtended2* Profile2LC( TInt aId );
       
   198 
       
   199         /**
       
   200         * From MProfileEngineExtended2.
       
   201         */
       
   202         virtual MProfileExtended2* Profile2L( TInt aId );
       
   203 
       
   204         /**
       
   205         * From MProfileEngineExtended2.
       
   206         */
       
   207         virtual void CommitChange2L( MProfileExtended2& aProfile );
       
   208         
       
   209         
       
   210         /**
       
   211         * From MProfileEngineExtended2.
       
   212         */
       
   213         virtual TInt MasterVolumeL() const;
       
   214         
       
   215         /**
       
   216         * From MProfileEngineExtended2.
       
   217         */
       
   218         virtual void SetMasterVolumeL( TInt aMasterVolume );
       
   219         
       
   220         /**
       
   221         * From MProfileEngineExtended2.
       
   222         */
       
   223         virtual TBool MasterVibraL() const;
       
   224         
       
   225         /**
       
   226         * From MProfileEngineExtended2.
       
   227         */
       
   228         virtual void SetMasterVibraL( TBool aMasterVibra );
       
   229         
       
   230         /**
       
   231         * From MProfileEngineExtended2.
       
   232         */
       
   233         virtual TBool SilenceModeL() const;
       
   234         
       
   235         /**
       
   236         * From MProfileEngineExtended2.
       
   237         */
       
   238         virtual void SetSilenceModeL( TBool aSilenceMode );
   192 
   239 
   193     protected:  // New functions
   240     protected:  // New functions
   194 
   241 
   195         /**
   242         /**
   196         * Reads the resource with the given id from Profiles Engine resource
   243         * Reads the resource with the given id from Profiles Engine resource
   227         * @since 2.8
   274         * @since 2.8
   228         * @param aProfile Profile
   275         * @param aProfile Profile
   229         * @param aSetId sets the id of the active profile to Central Repository
   276         * @param aSetId sets the id of the active profile to Central Repository
   230         * only if this is ETrue
   277         * only if this is ETrue
   231         */
   278         */
   232         void UpdateActiveProfileSettingsL( MProfile& aProfile,
   279         void UpdateActiveProfileSettingsL( MProfileExtended2& aProfile,
   233                                            TBool aSetId = EFalse );
   280                                            TBool aSetId = EFalse );
   234 
   281 
   235         /**
   282         /**
   236          * Updates the alert for groups shared data value.
   283          * Updates the alert for groups shared data value.
   237          * @since 2.6
   284          * @since 2.6