omadrm/drmengine/server/inc/DRMDbSession.inl
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "DRMConstraint.h"
    21 #include "DrmConstraint.h"
    22 #include "DRMRightsServer.h"
    22 #include "DRMRightsServer.h"
    23 
    23 
    24 // ============================= LOCAL FUNCTIONS ===============================
    24 // ============================= LOCAL FUNCTIONS ===============================
    25 
    25 
    26 // ============================ MEMBER FUNCTIONS ===============================
    26 // ============================ MEMBER FUNCTIONS ===============================
    27 inline TBool CDRMDbSession::Invalid( const CDRMConstraint& aConstraint )
    27 inline TBool CDRMDbSession::Invalid( const CDRMConstraint& aConstraint )
    28     {
    28     {
    29     if ( ( ( aConstraint.iActiveConstraints & EConstraintCounter ) &&
    29     if ( ( ( aConstraint.iActiveConstraints & EConstraintCounter ) &&
    30            ( aConstraint.iCounter < 1 ) ) ||
    30            ( aConstraint.iCounter < 1 ) ) ||
    31          ( ( aConstraint.iActiveConstraints & 
    31          ( ( aConstraint.iActiveConstraints &
    32              EConstraintInterval ) &&
    32              EConstraintInterval ) &&
    33            ( aConstraint.iIntervalStart != Time::NullTTime() ) ) )
    33            ( aConstraint.iIntervalStart != Time::NullTTime() ) ) )
    34         {
    34         {
    35         return ETrue;
    35         return ETrue;
    36         }
    36         }
    37 
    37 
    38     return EFalse;
    38     return EFalse;
    39     }
    39     }
    40     
    40 
    41 // -----------------------------------------------------------------------------
    41 // -----------------------------------------------------------------------------
    42 // CDRMDbSession::UpdateSecureTime
    42 // CDRMDbSession::UpdateSecureTime
    43 // Update secure time.
    43 // Update secure time.
    44 // -----------------------------------------------------------------------------
    44 // -----------------------------------------------------------------------------
    45 inline void CDRMDbSession::UpdateSecureTime()
    45 inline void CDRMDbSession::UpdateSecureTime()
    57     return *iContentId;
    57     return *iContentId;
    58     }
    58     }
    59 
    59 
    60 
    60 
    61 // ========================== OTHER EXPORTED FUNCTIONS =========================
    61 // ========================== OTHER EXPORTED FUNCTIONS =========================
    62 //  End of File  
    62 //  End of File