diff -r 000000000000 -r 95b198f216e5 omadrm/drmhelper/drmhelperserver/inc/ConfigObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omadrm/drmhelper/drmhelperserver/inc/ConfigObserver.h Thu Dec 17 08:52:27 2009 +0200 @@ -0,0 +1,118 @@ +/* +* 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 CONFIGOBSERVER_H +#define CONFIGOBSERVER_H + +// INCLUDES +// CONSTANTS +// MACROS +// DATA TYPES +// FUNCTION PROTOTYPES +// FORWARD DECLARATIONS +class CDRMHelperServer; +class CRepository; + + +// CLASS DECLARATION + +/** +* End time based rights storage class +* +* +* @lib DRMHelperServer.lib +* @since Series60 2.6 +*/ +class CConfigObserver : public CActive + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CConfigObserver* NewL(CDRMHelperServer& aServer); + + /** + * Destructor. + */ + virtual ~CConfigObserver(); + + + public: // New functions + /** + * StartL starts the system agent and listen to the event + * @since Series60 2.6 + * @param + * @return + */ + void StartL(); + public: // Functions from base classes + protected: // New functions + + /** + * From CActive + * @since Series60 2.6 + */ + void RunL(); + + /** + * From CActive + * @since Series60 2.6 + */ + void DoCancel(); + + + protected: // Functions from base classes + private: + + /** + * C++ default constructor. + */ + CConfigObserver( CDRMHelperServer& aServer ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + CConfigObserver( const CConfigObserver& ); + // Prohibit assigment operator if not deriving from CBase. + CConfigObserver& operator=( const CConfigObserver& ); + + + + + public: // Data + protected: // Data + private: // Data + // helper server reference + CDRMHelperServer& iServer; + // For getting notify on idle screen available event. + CRepository* iRepository; + public: // Friend classes + protected: // Friend classes + private: // Friend classes + + + }; + +#endif // CONFIGOBSERVER_H + +// End of File