equal
deleted
inserted
replaced
55 class RWriteStream; |
55 class RWriteStream; |
56 class CLogFile; |
56 class CLogFile; |
57 class CDRMRightsCleaner; |
57 class CDRMRightsCleaner; |
58 class CDRMRightsServer; |
58 class CDRMRightsServer; |
59 class CDcfRep; |
59 class CDcfRep; |
|
60 class CDRMRightsServer; |
60 |
61 |
61 // FUNCTION PROTOTYPES |
62 // FUNCTION PROTOTYPES |
62 |
63 |
63 // CLASS DECLARATION |
64 // CLASS DECLARATION |
64 |
65 |
89 * occurs. |
90 * occurs. |
90 */ |
91 */ |
91 static CDRMRightsDB* NewLC( RFs& aFs, |
92 static CDRMRightsDB* NewLC( RFs& aFs, |
92 const TDesC& aDatabasePath, |
93 const TDesC& aDatabasePath, |
93 const TDesC8& aKey, |
94 const TDesC8& aKey, |
94 const TDesC& aImei ); |
95 const TDesC& aImei, |
|
96 CDRMRightsServer* aServer ); |
95 |
97 |
96 /** |
98 /** |
97 * NewL |
99 * NewL |
98 * |
100 * |
99 * Creates an instance of the CDRMRightDB class and returns a pointer |
101 * Creates an instance of the CDRMRightDB class and returns a pointer |
108 * occurs. |
110 * occurs. |
109 */ |
111 */ |
110 static CDRMRightsDB* NewL( RFs& aFs, |
112 static CDRMRightsDB* NewL( RFs& aFs, |
111 const TDesC& aDatabasePath, |
113 const TDesC& aDatabasePath, |
112 const TDesC8& aKey, |
114 const TDesC8& aKey, |
113 const TDesC& aImei ); |
115 const TDesC& aImei, |
|
116 CDRMRightsServer* aServer ); |
114 |
117 |
115 /** |
118 /** |
116 * Destructor |
119 * Destructor |
117 */ |
120 */ |
118 virtual ~CDRMRightsDB(); |
121 virtual ~CDRMRightsDB(); |
325 * @return CDRMRightsCleaner object which is used to control the |
328 * @return CDRMRightsCleaner object which is used to control the |
326 * expired permissions deletion process |
329 * expired permissions deletion process |
327 */ |
330 */ |
328 CDRMRightsCleaner* DeleteExpiredPermissionsL( const TTime& aTime, |
331 CDRMRightsCleaner* DeleteExpiredPermissionsL( const TTime& aTime, |
329 TRequestStatus& aStatus ); |
332 TRequestStatus& aStatus ); |
|
333 |
330 |
334 |
331 /** |
335 /** |
332 * NameContentL |
336 * NameContentL |
333 * |
337 * |
334 * Give a name to the content, if the name is empty the content name |
338 * Give a name to the content, if the name is empty the content name |
367 * @return TBool : ETrue if the file can be deleted |
371 * @return TBool : ETrue if the file can be deleted |
368 * EFalse if the file can't be deleted |
372 * EFalse if the file can't be deleted |
369 */ |
373 */ |
370 TBool DeleteExpiredL( const TFileName& aFileName, |
374 TBool DeleteExpiredL( const TFileName& aFileName, |
371 const TTime& aTime ); |
375 const TTime& aTime ); |
|
376 |
|
377 /** |
|
378 * DeleteExpiredL |
|
379 * |
|
380 * Delete expired from the current file store |
|
381 * |
|
382 * @since 3.0 |
|
383 * @param aFileName : name of the permission file store |
|
384 * @param aTime : current time. |
|
385 * @return TBool : ETrue if the file can be deleted |
|
386 * EFalse if the file can't be deleted |
|
387 */ |
|
388 TBool DeleteExpiredL( const TFileName& aFileName, |
|
389 const TTime& aTime, |
|
390 const TDesC8& aContentId ); |
372 |
391 |
373 /** |
392 /** |
374 * GetUdtDataL |
393 * GetUdtDataL |
375 * |
394 * |
376 * Gets the udt data from a restore file if it exists |
395 * Gets the udt data from a restore file if it exists |
505 CDRMRightsDB(); |
524 CDRMRightsDB(); |
506 |
525 |
507 /** |
526 /** |
508 * Default Constructor - First phase. |
527 * Default Constructor - First phase. |
509 */ |
528 */ |
510 CDRMRightsDB( RFs& aFs ); |
529 CDRMRightsDB( RFs& aFs, CDRMRightsServer* aServer ); |
511 |
530 |
512 /** |
531 /** |
513 * ConstructL |
532 * ConstructL |
514 * |
533 * |
515 * Second phase constructor |
534 * Second phase constructor |
673 // device serial number (used for UDT) |
692 // device serial number (used for UDT) |
674 HBufC* iImei; |
693 HBufC* iImei; |
675 |
694 |
676 // Time stamp of the last update operation |
695 // Time stamp of the last update operation |
677 TTime iLastUpdate; |
696 TTime iLastUpdate; |
|
697 |
|
698 CDRMRightsServer* iRightsServer; |
678 }; |
699 }; |
679 |
700 |
680 #endif // DRMRIGHTSDB_H |
701 #endif // DRMRIGHTSDB_H |
681 |
702 |
682 // End of File |
703 // End of File |