diff -r e16d72588c28 -r 8a03a285ab14 omadrm/drmengine/drmclock/Inc/DRMClock.h --- a/omadrm/drmengine/drmclock/Inc/DRMClock.h Fri Mar 12 15:43:46 2010 +0200 +++ b/omadrm/drmengine/drmclock/Inc/DRMClock.h Mon Mar 15 12:41:43 2010 +0200 @@ -26,7 +26,7 @@ #include // Type definitions #include #include -#include +#include #include // 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