omadrm/drmhelper/drmhelperserver/inc/ConfigObserver.h
author Pat Downey <patd@symbian.org>
Fri, 12 Feb 2010 14:30:27 +0000
changeset 9 ce0d1c675e43
parent 0 95b198f216e5
permissions -rw-r--r--
Minor update.

/*
* 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