omadrm/drmengine/drmbackup/inc/DRMBackupObserver.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  observe system idle event
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef DRMBACKUPOBSERVER_H
       
    21 #define DRMBACKUPOBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32property.h>
       
    25 // CONSTANTS
       
    26 // MACROS
       
    27 // DATA TYPES
       
    28 // FUNCTION PROTOTYPES
       
    29 // FORWARD DECLARATIONS
       
    30 class CDRMRightsServer;
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  End time based rights storage class
       
    37 *  
       
    38 *  @lib rightsserver.exe
       
    39 *  @since Series60 2.6
       
    40 */
       
    41 class CDRMBackupObserver : public CActive
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CDRMBackupObserver* NewL(CDRMRightsServer& aServer);
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CDRMBackupObserver();
       
    54 
       
    55 
       
    56     public: // New functions
       
    57         /**
       
    58         * StartL starts the system agent and listen to the event
       
    59         * @since Series60 3.0
       
    60         * @param
       
    61         * @return 
       
    62         */
       
    63         void Start();
       
    64     public: // Functions from base classes
       
    65     protected:  // New functions
       
    66         
       
    67         /**
       
    68         * From CActive
       
    69         * @since Series60 3.0
       
    70         */
       
    71         void RunL();
       
    72 
       
    73         /**
       
    74         * From CActive
       
    75         * @since Series60 3.0
       
    76         */
       
    77         void DoCancel();
       
    78         
       
    79         /**
       
    80         * From CActive
       
    81         */
       
    82         TInt RunError(TInt aError);
       
    83 
       
    84 
       
    85     protected:  // Functions from base classes
       
    86     private:
       
    87 
       
    88         /**
       
    89         * C++ default constructor.
       
    90         */
       
    91         CDRMBackupObserver( CDRMRightsServer& aServer );
       
    92 
       
    93         /**
       
    94         * By default Symbian 2nd phase constructor is private.
       
    95         */
       
    96         void ConstructL();
       
    97 
       
    98         // Prohibit copy constructor if not deriving from CBase.
       
    99         CDRMBackupObserver( const CDRMBackupObserver& );
       
   100         // Prohibit assigment operator if not deriving from CBase.
       
   101         CDRMBackupObserver& operator=( const CDRMBackupObserver& );
       
   102         
       
   103 
       
   104         
       
   105 
       
   106     public:     // Data
       
   107     protected:  // Data
       
   108     private:    // Data
       
   109         // helper server reference
       
   110         CDRMRightsServer& iServer;
       
   111         // For getting notify on idle screen available event.
       
   112         RProperty iProperty;
       
   113     public:     // Friend classes
       
   114     protected:  // Friend classes
       
   115     private:    // Friend classes
       
   116         
       
   117 
       
   118     };
       
   119 
       
   120 #endif      // IDLEOBSERVER_H   
       
   121             
       
   122 // End of File