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() |