commondrm/drmrightsmanagerui/inc/DRMRightsMgrAppUi.h
branchRCL_3
changeset 15 04da681812a9
parent 12 8a03a285ab14
child 20 29f3cf766061
equal deleted inserted replaced
14:8cdda00a45da 15:04da681812a9
    23 // INCLUDES
    23 // INCLUDES
    24 #include <aknViewAppUi.h>
    24 #include <aknViewAppUi.h>
    25 #include <AknProgressDialog.h>
    25 #include <AknProgressDialog.h>
    26 #include <apparc.h>
    26 #include <apparc.h>
    27 #include <DRMRightsClient.h>
    27 #include <DRMRightsClient.h>
    28 
    28 #include <drmconstraint.h>
       
    29 
       
    30 #include "drmclockclient.h"
    29 #include "DrmViewItems.h"
    31 #include "DrmViewItems.h"
    30 
    32 
    31 #include "DRMRightsManager.hrh"
    33 #include "DRMRightsManager.hrh"
    32 
    34 
    33 
    35 
   171         *                               can be used for using the content
   173         *                               can be used for using the content
   172         */
   174         */
   173         void CheckIndividualConstraint( const TDesC8& aContentURI,
   175         void CheckIndividualConstraint( const TDesC8& aContentURI,
   174                                         TBool& aIndividualConstraint,
   176                                         TBool& aIndividualConstraint,
   175                                         TBool& aUsageAllowed );
   177                                         TBool& aUsageAllowed );
   176 
   178         
   177 
   179         /**
   178 
   180         * Checks the composition of best rights to be shown in the details view.
       
   181         * Leaves with KErrNotFound if no rights are found.
       
   182         * @param aContentURI            ContentURI for object to be opened when
       
   183         *                               application is launched
       
   184         * @param aRights                Pointer to instance of CDRMRights for
       
   185         *                               storing the rights                                                            
       
   186         */                               
       
   187         void FindBestCompositionRightsL( const TDesC8& aContentURI,
       
   188                                          CDRMRights*& aRights ); 
       
   189 
       
   190         /**
       
   191         * Compares the permissions in the the permission list one by one and 
       
   192         * constraint by constraint and stores the best constraint to the given 
       
   193         * composition permission. The function should be called only for a list of 
       
   194         * valid permissions. Puts the composition permission to cleanup stack. 
       
   195         * @param aCompositionPermission Permission which includes a composition of best 
       
   196         *                               constraints (or full rights information) from 
       
   197         *                               the given permission list.                                 
       
   198         * @param aPermissionList        List which includes permissions to be checked
       
   199         *                               constraint by constraint in order to create the
       
   200         *                               best composition permission.                                                                                          
       
   201         */                  
       
   202         void CheckBetterPermissionsAndStoreCompositionLC( 
       
   203                 CDRMPermission*& aCompositionPermission,
       
   204                 RPointerArray<CDRMPermission>& aList );
       
   205         /**
       
   206         * Compares two permissions, and returns ETrue if aNewOne is more suitable
       
   207         * for the usage. Assumes both are valid, i.e. not expired.
       
   208         * @param aNewOne                New constraint to be compared to the old one                             
       
   209         * @param aOldOne                Old constraint to be compared to the new one 
       
   210         */
       
   211         TBool BetterPermission( const CDRMConstraint& aNewOne,
       
   212                                 const CDRMConstraint& aOldOne );
       
   213                                                     
   179     public: // New functions
   214     public: // New functions
   180         /**
   215         /**
   181         * @param aContentURI    ContentURI for object to be opened when
   216         * @param aContentURI    ContentURI for object to be opened when
   182         *                       application is launched embedded
   217         *                       application is launched embedded
   183         * @param aLocalID       LocalID for object to be opened when
   218         * @param aLocalID       LocalID for object to be opened when
   388 
   423 
   389         // The details view has been opened once. This information is used to
   424         // The details view has been opened once. This information is used to
   390         // update the details view when returning to details view from another
   425         // update the details view when returning to details view from another
   391         // application
   426         // application
   392         TBool iForegroundHasBeenActive;
   427         TBool iForegroundHasBeenActive;
   393 
   428         
       
   429         // Drm clock client
       
   430         RDRMClockClient iClockClient;
       
   431         
   394     };
   432     };
   395 
   433 
   396 // Include inline functions
   434 // Include inline functions
   397 #include "DRMRightsMgrAppUi.inl"
   435 #include "DRMRightsMgrAppUi.inl"
   398 
   436