|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Datatype for the Metering Database Data Entry |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMMETERINGDBDATA_H |
|
20 #define DRMMETERINGDBDATA_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "DRMTypes.h" |
|
26 |
|
27 /** |
|
28 * CDrmMeteringDbData implements datatype for storing the metering data |
|
29 * of one entry in the Metering database. |
|
30 * |
|
31 * @lib RightsServer.dll |
|
32 * @since 3.2 |
|
33 */ |
|
34 |
|
35 NONSHARABLE_CLASS( CDrmMeteringDbData ) : public CBase |
|
36 { |
|
37 |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * NewLC |
|
42 * |
|
43 * Creates an empty instance of the CDrmMeteringDbData class and returns a pointer |
|
44 * to it. The function leaves the object into the cleanup stack |
|
45 * |
|
46 * @since 3.2 |
|
47 * @return Functional CDrmMeteringDbData object, Function leaves if an error |
|
48 * occurs. |
|
49 */ |
|
50 static CDrmMeteringDbData* NewLC(); |
|
51 |
|
52 /** |
|
53 * NewL |
|
54 * |
|
55 * Creates an empty instance of the CDrmMeteringDbData class and returns a pointer |
|
56 * to it. |
|
57 * |
|
58 * @since 3.2 |
|
59 * @return Functional CDrmMeteringData object, Function leaves if an error |
|
60 * occurs. |
|
61 */ |
|
62 static CDrmMeteringDbData* NewL(); |
|
63 |
|
64 /** |
|
65 * Destructor |
|
66 * |
|
67 * @since 3.2 |
|
68 * |
|
69 */ |
|
70 virtual ~CDrmMeteringDbData(); |
|
71 |
|
72 private: |
|
73 /** |
|
74 * Default Constructor - First phase. |
|
75 * |
|
76 * @since 3.2 |
|
77 * |
|
78 */ |
|
79 CDrmMeteringDbData(); |
|
80 |
|
81 /** |
|
82 * ConstructL |
|
83 * |
|
84 * Second phase constructor - Empty |
|
85 * |
|
86 * @since 3.2 |
|
87 * |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 /** |
|
92 * Assignment operator - Prevented |
|
93 * |
|
94 * @since 3.2 |
|
95 * |
|
96 */ |
|
97 CDrmMeteringDbData& operator =( const CDrmMeteringDbData& ); |
|
98 |
|
99 /** |
|
100 * Copy constructor - Prevented |
|
101 * |
|
102 * @since 3.2 |
|
103 * |
|
104 */ |
|
105 CDrmMeteringDbData( const CDrmMeteringDbData& ); |
|
106 |
|
107 public: // Public data |
|
108 |
|
109 HBufC8* iContentId; |
|
110 TBuf8<KRiIdSize> iRiId; |
|
111 TUint32 iCount; |
|
112 TTimeIntervalSeconds iAccumulatedTime; |
|
113 ContentAccess::TIntent iPermission; |
|
114 HBufC8* iParentUid; |
|
115 |
|
116 private: // Internal Data |
|
117 }; |
|
118 #endif // DRMMETERINGDBDATA_H |
|
119 |
|
120 // End of File |