omadrm/drmengine/server/inc/DRMRightsServer.h
branchRCL_3
changeset 55 ad2863178d17
parent 18 8a03a285ab14
child 49 69d8e75812b7
equal deleted inserted replaced
41:29f3cf766061 55:ad2863178d17
    38 class CDRMXOma;
    38 class CDRMXOma;
    39 class CDRMBackupObserver;
    39 class CDRMBackupObserver;
    40 class CDRMBackup;
    40 class CDRMBackup;
    41 class RMobilePhone;
    41 class RMobilePhone;
    42 
    42 
    43 // CLASS DECLARATION
    43 // CLASS DECLARATIONS
       
    44 
       
    45 // Data Class:
       
    46 NONSHARABLE_CLASS( CUsageUrl ) : public CBase
       
    47     {
       
    48     public:
       
    49         CUsageUrl();
       
    50         virtual ~CUsageUrl();   
       
    51                 
       
    52     public: // Data    
       
    53         HBufC8* iUrl;
       
    54         TInt    iRefCounter;        
       
    55     };     
       
    56 
    44 
    57 
    45 /**
    58 /**
    46 *  This class implements the DRM5 Rights Server functionality.
    59 *  This class implements the DRM5 Rights Server functionality.
    47 *
    60 *
    48 *  @lib RightsServer.exe
    61 *  @lib RightsServer.exe
    49 *  @since S60Rel2.5
    62 *  @since S60Rel2.5
    50 */
    63 */
    51 NONSHARABLE_CLASS( CDRMRightsServer ) : public CServer2, public MWatcherObserver
    64 NONSHARABLE_CLASS( CDRMRightsServer ) : public CServer2, public MWatcherObserver
    52     {
    65     {    
    53     public:  // Constructors and destructor
    66     public:  // Constructors and destructor
    54 
    67 
    55         /**
    68         /**
    56          * Two-phased constructor.
    69          * Two-phased constructor.
    57          * @since S60Rel2.5
    70          * @since S60Rel2.5
   159         *
   172         *
   160         * @since 3.0
   173         * @since 3.0
   161         * @param aContentId content ID to add
   174         * @param aContentId content ID to add
   162         */
   175         */
   163         void AddActiveCountConstraintL( const TDesC8& aContentId );
   176         void AddActiveCountConstraintL( const TDesC8& aContentId );
       
   177 
       
   178 
       
   179         /**
       
   180         * Checks if a content ID is in the list of currently consumed contents
       
   181         *
       
   182         * @since 5.2
       
   183         * @param aContentId content ID to search for
       
   184         * @return Index or the Url if the content ID is in the list
       
   185         *         KErrNotFound if the content ID is not in the list
       
   186         */
       
   187         TInt IsAccessingUrl( const TDesC8& aContentId );
       
   188 
       
   189         /**
       
   190         * Removes a content ID from the list of currently consumed contents
       
   191         *
       
   192         * @since 5.2
       
   193         * @param aContentId content ID to remove
       
   194         */
       
   195         void RemoveAccessingUrl( const TDesC8& aContentId );
       
   196 
       
   197         /**
       
   198         * Adds a content ID to the list of currently consumed contents
       
   199         *
       
   200         * @since 5.2
       
   201         * @param aContentId content ID to add
       
   202         */
       
   203         void AddAccessingUrlL( const TDesC8& aContentId );
       
   204 
   164 
   205 
   165         /**
   206         /**
   166         * Import rights objects on startup
   207         * Import rights objects on startup
   167         *
   208         *
   168         * @since 3.0
   209         * @since 3.0
   273         RDRMReplayCache iCache;
   314         RDRMReplayCache iCache;
   274         RDrmMeteringDb iMeteringDb;
   315         RDrmMeteringDb iMeteringDb;
   275         RDRMClockClient iClock;
   316         RDRMClockClient iClock;
   276         RPointerArray<CDRMXOma>* iXOmaHeaders;
   317         RPointerArray<CDRMXOma>* iXOmaHeaders;
   277         RPointerArray<HBufC8> iActiveCountConstraints;
   318         RPointerArray<HBufC8> iActiveCountConstraints;
       
   319         RPointerArray<class CUsageUrl> iActiveUrls;
   278 
   320 
   279         HBufC* iIMEI;
   321         HBufC* iIMEI;
   280 
   322 
   281         // Backup Observer
   323         // Backup Observer
   282         CDRMBackupObserver* iBackupObserver;
   324         CDRMBackupObserver* iBackupObserver;
   305 
   347 
   306     private:    // Friend classes
   348     private:    // Friend classes
   307 
   349 
   308 };
   350 };
   309 
   351 
       
   352 
   310 #endif      // CDRMRIGHTSSERVER_H
   353 #endif      // CDRMRIGHTSSERVER_H
   311 
   354 
   312 // End of File
   355 // End of File