omadrm/drmengine/drmclock/Inc/DRMClock.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
--- a/omadrm/drmengine/drmclock/Inc/DRMClock.h	Tue Feb 02 00:21:44 2010 +0200
+++ b/omadrm/drmengine/drmclock/Inc/DRMClock.h	Fri Apr 16 15:14:55 2010 +0300
@@ -26,7 +26,7 @@
 #include <e32def.h>		// Type definitions
 #include <bacntf.h>
 #include <etelmm.h>
-#include <DrmTypes.h>
+#include <DRMTypes.h>
 #include <e32property.h>
 
 // CONSTANTS
@@ -40,6 +40,7 @@
 // FORWARD DECLARATIONS
 class CDRMNitzObserver;
 class CDRMNotifier;
+class CGPSWatcher;
 
 // CLASS DECLARATION
 
@@ -52,6 +53,14 @@
 NONSHARABLE_CLASS( CDRMClock )
     {
     public:
+        // Notifications:        
+        enum 
+            {
+            ENotifyNone = 0,    
+            ENotifyGPSTimeReceived = 1    
+            };    
+    
+    public:
 
         /**
         * NewLC
@@ -106,6 +115,18 @@
         */
         void ResetSecureTimeL( const TTime& aSecureTime, const TInt& aTimeZone );
         
+        
+        /**
+        * Notify
+        *
+        * Notifies about an event to the DRM Clock
+        *
+        * @since 9.2
+        * @param Message The notification event   
+        *
+        */
+        void Notify( TInt aMessage );
+        
     protected:    
     private:
         /**
@@ -140,6 +161,9 @@
         RTelServer iEtelServer;
         RMobilePhone iPhone;
         CDRMNitzObserver* iObserver;
+        
+        // GPS watcher component, updates DRM time from GPS if available
+        CGPSWatcher* iGpsWatcher;
     };
 #endif      // DRMCLOCK_H