|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCDCONFIGURATIONPROTOCOLCOOKIEIMPL_H |
|
20 #define C_NCDCONFIGURATIONPROTOCOLCOOKIEIMPL_H |
|
21 |
|
22 #include "ncd_cp_cookie.h" |
|
23 #include "ncdstoragedataitem.h" |
|
24 |
|
25 class CNcdConfigurationProtocolCookie : public CBase, |
|
26 public MNcdConfigurationProtocolCookie, |
|
27 public MNcdStorageDataItem |
|
28 { |
|
29 public: |
|
30 |
|
31 static CNcdConfigurationProtocolCookie* NewL(); |
|
32 static CNcdConfigurationProtocolCookie* NewLC(); |
|
33 |
|
34 static CNcdConfigurationProtocolCookie* NewLC( |
|
35 const MNcdConfigurationProtocolCookie& aCookie ); |
|
36 |
|
37 virtual ~CNcdConfigurationProtocolCookie(); |
|
38 |
|
39 public: // From MNcdConfigurationProtocolCookie |
|
40 const TDesC& Key() const; |
|
41 const TDesC& Type() const; |
|
42 const TDesC& Scope() const; |
|
43 TInt ExpirationDelta() const; |
|
44 TInt ValueCount() const; |
|
45 const TDesC& Value( TInt aIndex ) const; |
|
46 const TDesC8& Sim() const; |
|
47 |
|
48 TTime ExpirationTime() const; |
|
49 |
|
50 public: |
|
51 |
|
52 static TBool Identity( |
|
53 const MNcdConfigurationProtocolCookie& aFirst, |
|
54 const MNcdConfigurationProtocolCookie& aSecond ); |
|
55 |
|
56 public: // From MNcdStorageDataItem |
|
57 |
|
58 void ExternalizeL( RWriteStream& aStream ); |
|
59 |
|
60 |
|
61 void InternalizeL( RReadStream& aStream ); |
|
62 |
|
63 |
|
64 private: |
|
65 CNcdConfigurationProtocolCookie(); |
|
66 |
|
67 void ConstructL(); |
|
68 void ConstructL( const MNcdConfigurationProtocolCookie & aCookie ); |
|
69 |
|
70 public: |
|
71 HBufC* iKey; |
|
72 HBufC* iType; |
|
73 HBufC* iScope; |
|
74 TInt iExpirationDelta; |
|
75 RPointerArray<HBufC> iValues; |
|
76 HBufC8* iSim; |
|
77 TTime iExpirationTime; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // C_NCDCONFIGURATIONPROTOCOLCOOKIEIMPL_H |