omadrm/drmengine/drmclock/Inc/DRMClock.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    24 #include <e32base.h>	// CBase
    24 #include <e32base.h>	// CBase
    25 #include <e32std.h>
    25 #include <e32std.h>
    26 #include <e32def.h>		// Type definitions
    26 #include <e32def.h>		// Type definitions
    27 #include <bacntf.h>
    27 #include <bacntf.h>
    28 #include <etelmm.h>
    28 #include <etelmm.h>
    29 #include <DrmTypes.h>
    29 #include <DRMTypes.h>
    30 #include <e32property.h>
    30 #include <e32property.h>
    31 
    31 
    32 // CONSTANTS
    32 // CONSTANTS
    33 
    33 
    34 // MACROS
    34 // MACROS
    38 // FUNCTION PROTOTYPES
    38 // FUNCTION PROTOTYPES
    39 
    39 
    40 // FORWARD DECLARATIONS
    40 // FORWARD DECLARATIONS
    41 class CDRMNitzObserver;
    41 class CDRMNitzObserver;
    42 class CDRMNotifier;
    42 class CDRMNotifier;
       
    43 class CGPSWatcher;
    43 
    44 
    44 // CLASS DECLARATION
    45 // CLASS DECLARATION
    45 
    46 
    46 /**
    47 /**
    47 *  CDRMClock implements the drm clock required by DRM Engine
    48 *  CDRMClock implements the drm clock required by DRM Engine
    49 *  @lib unipertar.exe
    50 *  @lib unipertar.exe
    50 *  @since 2.8
    51 *  @since 2.8
    51 */
    52 */
    52 NONSHARABLE_CLASS( CDRMClock )
    53 NONSHARABLE_CLASS( CDRMClock )
    53     {
    54     {
       
    55     public:
       
    56         // Notifications:        
       
    57         enum 
       
    58             {
       
    59             ENotifyNone = 0,    
       
    60             ENotifyGPSTimeReceived = 1    
       
    61             };    
       
    62     
    54     public:
    63     public:
    55 
    64 
    56         /**
    65         /**
    57         * NewLC
    66         * NewLC
    58         *
    67         *
   104         * @return none, Function leaves with Symbian OS error code if an
   113         * @return none, Function leaves with Symbian OS error code if an
   105         *         error occurs
   114         *         error occurs
   106         */
   115         */
   107         void ResetSecureTimeL( const TTime& aSecureTime, const TInt& aTimeZone );
   116         void ResetSecureTimeL( const TTime& aSecureTime, const TInt& aTimeZone );
   108         
   117         
       
   118         
       
   119         /**
       
   120         * Notify
       
   121         *
       
   122         * Notifies about an event to the DRM Clock
       
   123         *
       
   124         * @since 9.2
       
   125         * @param Message The notification event   
       
   126         *
       
   127         */
       
   128         void Notify( TInt aMessage );
       
   129         
   109     protected:    
   130     protected:    
   110     private:
   131     private:
   111         /**
   132         /**
   112         * Default Constructor - First phase
   133         * Default Constructor - First phase
   113         */
   134         */
   138         
   159         
   139         // Nitz information handles      
   160         // Nitz information handles      
   140         RTelServer iEtelServer;
   161         RTelServer iEtelServer;
   141         RMobilePhone iPhone;
   162         RMobilePhone iPhone;
   142         CDRMNitzObserver* iObserver;
   163         CDRMNitzObserver* iObserver;
       
   164         
       
   165         // GPS watcher component, updates DRM time from GPS if available
       
   166         CGPSWatcher* iGpsWatcher;
   143     };
   167     };
   144 #endif      // DRMCLOCK_H   
   168 #endif      // DRMCLOCK_H   
   145             
   169             
   146 // End of File
   170 // End of File