homescreenpluginsrv/inc/hspsdefinitionrepository.h
branchRCL_3
changeset 74 edd621764147
parent 18 bd874ee5e5e2
equal deleted inserted replaced
64:b276298d5729 74:edd621764147
    24 //  INCLUDES
    24 //  INCLUDES
    25 #include <f32file.h>
    25 #include <f32file.h>
    26 #include <badesca.h>
    26 #include <badesca.h>
    27 #include <s32mem.h>
    27 #include <s32mem.h>
    28 #include <fbs.h>
    28 #include <fbs.h>
       
    29 #include <e32property.h>
    29 
    30 
    30 #include "hspsresource.h"
    31 #include "hspsresource.h"
    31 
    32 
       
    33 class CRepository;
    32 #ifdef HSPS_LOG_ACTIVE
    34 #ifdef HSPS_LOG_ACTIVE
    33 class ChspsLogBus;
    35 class ChspsLogBus;
    34 #endif
    36 #endif
       
    37 
       
    38 
       
    39 /** 
       
    40 * Publish & Subscribe functionality for controlling the ODT copies.
       
    41 *
       
    42 * IPC clients, such as such as sapi_homescreenplugin, should update any ChspsODT based 
       
    43 * runtime copies when the active application configuration is updated. 
       
    44 * Updated versions are indicated by an increment in the associated RProperty key.
       
    45 **/
       
    46 const TUid KPropertyHspsCat = {0x200159C0};
       
    47 const TUint KPropertyAI3Key = {0x102750F0}; // Homescreen
       
    48 const TUint KPropertyMTKey = {0x20000FB1}; // EUNIT MT
       
    49 const TInt KPropertyKeyDefault = 1;
       
    50 
    35 
    51 
    36 /**
    52 /**
    37 *   ThspsRepositoryEvent.
    53 *   ThspsRepositoryEvent.
    38 *   Events used in ThspsRepositoryInfo.
    54 *   Events used in ThspsRepositoryInfo.
    39 **/
    55 **/
   168         /**
   184         /**
   169         * Two-phased constructor.
   185         * Two-phased constructor.
   170         * 
   186         * 
   171         * @since S60 5.0
   187         * @since S60 5.0
   172         */
   188         */
   173         IMPORT_C static ChspsDefinitionRepository* NewL();
   189         IMPORT_C static ChspsDefinitionRepository* NewL(
       
   190                 CRepository& aCentralRepository );
   174         
   191         
   175         /**
   192         /**
   176         * Destructor.
   193         * Destructor.
   177         */
   194         */
   178         virtual ~ChspsDefinitionRepository();
   195         virtual ~ChspsDefinitionRepository();
   433      private:
   450      private:
   434 
   451 
   435         /**
   452         /**
   436         * C++ default constructor.
   453         * C++ default constructor.
   437         */
   454         */
   438         ChspsDefinitionRepository();
   455         ChspsDefinitionRepository( CRepository& aCentralRepository );
   439 
   456 
   440         /**
   457         /**
   441         * By default Symbian 2nd phase constructor is private.
   458         * By default Symbian 2nd phase constructor is private.
   442         */
   459         */
   443         void ConstructL();
   460         void ConstructL();
       
   461         
       
   462         void SetupPropertiesL( const TUint aKey );
   444         
   463         
   445         void SelectFilesFromPathL( CDesCArraySeg& aFileList, const TDesC& aPath, TEntryKey aSortFlag, const TDesC& aFileExtension );
   464         void SelectFilesFromPathL( CDesCArraySeg& aFileList, const TDesC& aPath, TEntryKey aSortFlag, const TDesC& aFileExtension );
   446 
   465 
   447         void GetPathL( const ChspsODT& aODT, ThspsResourceType aResourceType );
   466         void GetPathL( const ChspsODT& aODT, ThspsResourceType aResourceType );
   448                 
   467                 
   493         ChspsLogBus* iLogBus;
   512         ChspsLogBus* iLogBus;
   494 #endif
   513 #endif
   495        
   514        
   496         // Cached copy of last retrieved ODT.
   515         // Cached copy of last retrieved ODT.
   497         ChspsODT* iCacheLastODT;        
   516         ChspsODT* iCacheLastODT;        
       
   517         
       
   518         // For indicating ODT updates
       
   519         RProperty iProperty;
       
   520         
       
   521         // Reference to central repository
       
   522         CRepository& iCentralRepository;
   498     };
   523     };
   499 
   524 
   500 #endif      // C_hspsDEFINITIONREPOSITORY_H   
   525 #endif      // C_hspsDEFINITIONREPOSITORY_H   
   501             
   526             
   502 // End of File
   527 // End of File