commondrm/drmutility/inc/DrmAutomatedUsageImpl.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <f32file.h>
    23 #include <f32file.h>
    24 #include <caf/caftypes.h>
    24 #include <caf/caftypes.h>
    25 #include <caf/data.h>
    25 #include <caf/data.h>
    26 #include <drmrightsclient.h>
    26 #include <DRMRightsClient.h>
    27 #include <drmautomatedusage.h>
    27 #include <drmautomatedusage.h>
    28 #include <drmautomatedusageobserver.h>
    28 #include <drmautomatedusageobserver.h>
    29 
    29 
    30 #include "rdrmhelperclient.h"
    30 #include "rdrmhelperclient.h"
    31 #include "drmqueue.h"
    31 #include "DrmQueue.h"
    32 
    32 
    33 //forward declarations
    33 //forward declarations
    34 class CDRMConstraint;
    34 class CDRMConstraint;
    35 
    35 
    36 namespace DRM
    36 namespace DRM
   605 
   605 
   606     /**
   606     /**
   607     * From CActive Called if RunL leaves
   607     * From CActive Called if RunL leaves
   608     */
   608     */
   609     TInt RunError( TInt aError );
   609     TInt RunError( TInt aError );
   610 	    
   610 
   611 
   611 
   612 private: // Member functions
   612 private: // Member functions
   613 
   613 
   614     CDrmAutomatedUsageImpl( CCoeEnv* aCoeEnv,
   614     CDrmAutomatedUsageImpl( CCoeEnv* aCoeEnv,
   615                             CDrmUtility* aDrmUtility );
   615                             CDrmUtility* aDrmUtility );
   616 
   616 
   617     void ConstructL();
   617     void ConstructL();
   618     
   618 
   619     void Activate( TRequestStatus*& aStatus );
   619     void Activate( TRequestStatus*& aStatus );
   620 
   620 
   621     // Checks whether there exists suitable oma RO for automated use
   621     // Checks whether there exists suitable oma RO for automated use
   622     TBool DoCanSetAutomatedL(
   622     TBool DoCanSetAutomatedL(
   623         const TDesC8& aUniqueId8,
   623         const TDesC8& aUniqueId8,
   659     CDrmQueue< CDrmAutomatedUsageData >* iDrmQueue;
   659     CDrmQueue< CDrmAutomatedUsageData >* iDrmQueue;
   660 
   660 
   661     // own
   661     // own
   662     CDrmUtilityUI* iDrmUtilityUi;
   662     CDrmUtilityUI* iDrmUtilityUi;
   663 
   663 
   664 	 // Async observer and current operation id for async operations
   664      // Async observer and current operation id for async operations
   665 	 // not own
   665      // not own
   666     MDrmAsyncObserver* iObserver;
   666     MDrmAsyncObserver* iObserver;
   667 	 // not own
   667      // not own
   668     TInt iOperationId;
   668     TInt iOperationId;
   669     };
   669     };
   670 }
   670 }
   671 
   671 
   672 #endif // CDrmAutomatedUsageImpl_H
   672 #endif // CDrmAutomatedUsageImpl_H