--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/omadrm/drmengine/drmbackup/inc/DRMBackupObserver.h Thu Dec 17 08:52:27 2009 +0200
@@ -0,0 +1,122 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: observe system idle event
+*
+*/
+
+
+
+#ifndef DRMBACKUPOBSERVER_H
+#define DRMBACKUPOBSERVER_H
+
+// INCLUDES
+#include <e32property.h>
+// CONSTANTS
+// MACROS
+// DATA TYPES
+// FUNCTION PROTOTYPES
+// FORWARD DECLARATIONS
+class CDRMRightsServer;
+
+
+// CLASS DECLARATION
+
+/**
+* End time based rights storage class
+*
+* @lib rightsserver.exe
+* @since Series60 2.6
+*/
+class CDRMBackupObserver : public CActive
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CDRMBackupObserver* NewL(CDRMRightsServer& aServer);
+
+ /**
+ * Destructor.
+ */
+ virtual ~CDRMBackupObserver();
+
+
+ public: // New functions
+ /**
+ * StartL starts the system agent and listen to the event
+ * @since Series60 3.0
+ * @param
+ * @return
+ */
+ void Start();
+ public: // Functions from base classes
+ protected: // New functions
+
+ /**
+ * From CActive
+ * @since Series60 3.0
+ */
+ void RunL();
+
+ /**
+ * From CActive
+ * @since Series60 3.0
+ */
+ void DoCancel();
+
+ /**
+ * From CActive
+ */
+ TInt RunError(TInt aError);
+
+
+ protected: // Functions from base classes
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CDRMBackupObserver( CDRMRightsServer& aServer );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ // Prohibit copy constructor if not deriving from CBase.
+ CDRMBackupObserver( const CDRMBackupObserver& );
+ // Prohibit assigment operator if not deriving from CBase.
+ CDRMBackupObserver& operator=( const CDRMBackupObserver& );
+
+
+
+
+ public: // Data
+ protected: // Data
+ private: // Data
+ // helper server reference
+ CDRMRightsServer& iServer;
+ // For getting notify on idle screen available event.
+ RProperty iProperty;
+ public: // Friend classes
+ protected: // Friend classes
+ private: // Friend classes
+
+
+ };
+
+#endif // IDLEOBSERVER_H
+
+// End of File