1 /* |
|
2 * Copyright (c) 2005 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: CXcapCacheIndexTableEntry |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPCACHEINDEXTABLEENTRY_H__ |
|
22 #define __XCAPCACHEINDEXTABLEENTRY_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include "CommonDefines.h" |
|
27 |
|
28 //CONSTANTS |
|
29 |
|
30 //FORWARD DECLARATIONs |
|
31 |
|
32 // CLASS DECLARATION |
|
33 NONSHARABLE_CLASS( CXcapCacheIndexTableEntry ) : public CBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Returns the MIME type of the messages |
|
39 * @return TPtrC8 The MIME type of the messages |
|
40 */ |
|
41 static CXcapCacheIndexTableEntry* NewL( const TInt aEntryIndex, |
|
42 const TDesC8& aRootUri, |
|
43 const TDesC& aDocumentUri ); |
|
44 |
|
45 /** |
|
46 * Returns the MIME type of the messages |
|
47 * @return TPtrC8 The MIME type of the messages |
|
48 */ |
|
49 static CXcapCacheIndexTableEntry* NewL( const TInt aEntryIndex, |
|
50 const TDesC8& aRootUri, |
|
51 const TDesC8& aDocumentUri ); |
|
52 |
|
53 /** |
|
54 * Returns the MIME type of the messages |
|
55 * @return TPtrC8 The MIME type of the messages |
|
56 */ |
|
57 static CXcapCacheIndexTableEntry* NewL( const TDesC8& aRootUri, |
|
58 const TDesC& aDocumentUri ); |
|
59 |
|
60 /** |
|
61 * Returns the MIME type of the messages |
|
62 * @return TPtrC8 The MIME type of the messages |
|
63 */ |
|
64 TPtrC8 RootUri() const; |
|
65 |
|
66 /** |
|
67 * Returns the MIME type of the messages |
|
68 * @return TPtrC8 The MIME type of the messages |
|
69 */ |
|
70 TPtrC8 DocumentUri() const; |
|
71 |
|
72 /** |
|
73 * Returns the MIME type of the messages |
|
74 * @return TPtrC8 The MIME type of the messages |
|
75 */ |
|
76 void Increase(); |
|
77 |
|
78 /** |
|
79 * Returns the MIME type of the messages |
|
80 * @return TPtrC8 The MIME type of the messages |
|
81 */ |
|
82 void Decrease(); |
|
83 |
|
84 /** |
|
85 * Returns the MIME type of the messages |
|
86 * @return TPtrC8 The MIME type of the messages |
|
87 */ |
|
88 TBool operator==( const CXcapCacheIndexTableEntry& aEntry ) const; |
|
89 |
|
90 /** |
|
91 * Returns the MIME type of the messages |
|
92 * @return TPtrC8 The MIME type of the messages |
|
93 */ |
|
94 TInt Index() const; |
|
95 |
|
96 /** |
|
97 * Returns the MIME type of the messages |
|
98 * @return TPtrC8 The MIME type of the messages |
|
99 */ |
|
100 ~CXcapCacheIndexTableEntry(); |
|
101 |
|
102 private: |
|
103 |
|
104 /** |
|
105 * Returns the MIME type of the messages |
|
106 * @return TPtrC8 The MIME type of the messages |
|
107 */ |
|
108 CXcapCacheIndexTableEntry(); |
|
109 |
|
110 /** |
|
111 * Returns the MIME type of the messages |
|
112 * @return TPtrC8 The MIME type of the messages |
|
113 */ |
|
114 void ConstructL( const TDesC8& aRootUri, |
|
115 const TDesC& aDocumentUri ); |
|
116 |
|
117 /** |
|
118 * Returns the MIME type of the messages |
|
119 * @return TPtrC8 The MIME type of the messages |
|
120 */ |
|
121 void ConstructL( const TDesC8& aRootUri, |
|
122 const TDesC8& aDocumentUri ); |
|
123 |
|
124 /** |
|
125 * Returns the MIME type of the messages |
|
126 * @return TPtrC8 The MIME type of the messages |
|
127 */ |
|
128 CXcapCacheIndexTableEntry( const TInt aEntryIndex ); |
|
129 |
|
130 private: // Data |
|
131 |
|
132 TInt iEntryIndex; |
|
133 HBufC8* iRootUri; |
|
134 HBufC8* iDocumentUri; |
|
135 }; |
|
136 |
|
137 #endif |
|
138 |
|
139 // End of File |
|