skins/AknSkins/srvinc/AknsSrvSettings.h
branchRCL_3
changeset 25 9f95a5546443
parent 24 e4e3998ddda2
equal deleted inserted replaced
24:e4e3998ddda2 25:9f95a5546443
    62 // CLASS DECLARATIONS
    62 // CLASS DECLARATIONS
    63 
    63 
    64 class MAknsSrvSettingObserver
    64 class MAknsSrvSettingObserver
    65     {
    65     {
    66     public:
    66     public:
    67         virtual void NotifyBackupOperationEnd() =0;
    67         virtual void NotifyBackupOperationEndL() =0;
    68         virtual void NotifyLayoutChange(TBool aClearScalable = EFalse) =0;
    68         virtual void NotifyLayoutChange(TBool aClearScalable = EFalse) =0;
    69         virtual void NofifySkinChange() =0;
    69         virtual void NofifySkinChange() =0;
    70         virtual void NotifyIdleBackgroundChange() =0;
    70         virtual void NotifyIdleBackgroundChange() =0;
    71         virtual void NotifyDRMChange() =0;
    71         virtual void NotifyDRMChange() =0;
    72         virtual void NotifyUSBAttach() = 0;
    72         virtual void NotifyUSBAttach() = 0;
    73         virtual void NotifyUSBRemoval() = 0;
    73         virtual void NotifyUSBRemovalL() = 0;
    74         virtual void NotifySlideSetTimeoutChange() = 0;
    74         virtual void NotifySlideSetTimeoutChange() = 0;
    75         virtual void NotifySlideSetTypeChange() = 0;
    75         virtual void NotifySlideSetTypeChange() = 0;
    76         virtual void NotifyWallpaperTypeChange() = 0;
    76         virtual void NotifyWallpaperTypeChangeL() = 0;
    77         // Observer interface for screensaver state changes.
    77         // Observer interface for screensaver state changes.
    78         virtual void NotifyScreenSaverChange() = 0;
    78         virtual void NotifyScreenSaverChange() = 0;
    79         virtual void NotifyTransitionFxChange() = 0;
    79         virtual void NotifyTransitionFxChange() = 0;
    80         virtual void NotifyDriveChange( const TInt& aDrive, const TBool& aMediaNotPresent ) =0;
    80         virtual void NotifyDriveChange( const TInt& aDrive, const TBool& aMediaNotPresent ) =0;
    81         virtual void NotifyBackupOperationBegin() =0;
    81         virtual void NotifyBackupOperationBegin() =0;
    92             MAknsSrvSettingObserver* aObserver,
    92             MAknsSrvSettingObserver* aObserver,
    93             RFs& aFileSystemSession );
    93             RFs& aFileSystemSession );
    94 
    94 
    95 
    95 
    96     public: // CenRep callbacks
    96     public: // CenRep callbacks
    97         static TInt LayoutCallBack(TAny* aPtr);
    97         static TInt LayoutCallBackL(TAny* aPtr);
    98         static TInt SkinsRepositoryCallBack(TAny* aPtr);
    98         static TInt SkinsRepositoryCallBackL(TAny* aPtr);
    99         static TInt DRMRepositoryCallBack(TAny* aPtr);
    99         static TInt DRMRepositoryCallBackL(TAny* aPtr);
   100         static TInt LayoutSwitchCallBack(TAny* aPtr);
   100         static TInt LayoutSwitchCallBack(TAny* aPtr);
   101         static TInt USBCallBack(TAny* aPtr);
   101         static TInt USBCallBackL(TAny* aPtr);
   102         static TInt ThemesRepositoryCallBack(TAny* aPtr);
   102         static TInt ThemesRepositoryCallBackL(TAny* aPtr);
   103         // Callback for screensaver state changes.
   103         // Callback for screensaver state changes.
   104         static TInt SSCallBack( TAny* aPtr );
   104         static TInt SSCallBackL( TAny* aPtr );
   105 
   105 
   106     public: // From MBackupOperationObserver
   106     public: // From MBackupOperationObserver
   107         void HandleBackupOperationEventL(
   107         void HandleBackupOperationEventL(
   108             const TBackupOperationAttributes& aBackupOperationAttributes);
   108             const TBackupOperationAttributes& aBackupOperationAttributes);
   109 
   109 
   124 
   124 
   125         void WriteAllToDefault(TBool aExcludeWP);
   125         void WriteAllToDefault(TBool aExcludeWP);
   126         void WriteSkinToDefault();
   126         void WriteSkinToDefault();
   127         void WriteIdleBackgroundToDefault();
   127         void WriteIdleBackgroundToDefault();
   128         void WriteSkinSettings(const TAknsPkgID aPid, TBool aMMC);
   128         void WriteSkinSettings(const TAknsPkgID aPid, TBool aMMC);
       
   129         void WriteWallpaperType(TInt aType);
       
   130         void WriteWallpaperPath(const TDesC& aPath);
   129 
   131 
   130         TInt ReadAHMirroringActive();
   132         TInt ReadAHMirroringActive();
   131         TInt ReadActiveSkinPID();
   133         TInt ReadActiveSkinPID();
   132 
   134 
   133         TInt ReadIdleBackgroundFile( TPath& aPath );
   135         TInt ReadIdleBackgroundFile( TPath& aPath );
   167 
   169 
   168         // Get a reference to drive master.
   170         // Get a reference to drive master.
   169         CAknsSrvDriveMaster* GetDriveMaster();
   171         CAknsSrvDriveMaster* GetDriveMaster();
   170 
   172 
   171     protected: // New methods
   173     protected: // New methods
   172         void HandlePropertyChange( const TAknsSrvSettingsProperty aProperty );
   174         void HandlePropertyChangeL( const TAknsSrvSettingsProperty aProperty );
   173 
   175 
   174     private:
   176     private:
   175 
   177 
   176         /**
   178         /**
   177         * Reads default skin ID from repository and sets it to iDefaultSkinPID.
   179         * Reads default skin ID from repository and sets it to iDefaultSkinPID.