|
1 /* |
|
2 * Copyright (c) 2007-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: CIAUpdaterIdentifier |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef IA_UPDATER_IDENTIFIER_H |
|
22 #define IA_UPDATER_IDENTIFIER_H |
|
23 |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <s32strm.h> |
|
27 #include <e32cmn.h> |
|
28 |
|
29 |
|
30 /** |
|
31 * |
|
32 */ |
|
33 class CIAUpdaterIdentifier : public CBase |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 IMPORT_C static CIAUpdaterIdentifier* NewL(); |
|
39 |
|
40 IMPORT_C static CIAUpdaterIdentifier* NewLC(); |
|
41 |
|
42 |
|
43 IMPORT_C virtual ~CIAUpdaterIdentifier(); |
|
44 |
|
45 |
|
46 IMPORT_C void Reset(); |
|
47 |
|
48 |
|
49 IMPORT_C const TDesC& Id() const; |
|
50 IMPORT_C void SetIdL( const TDesC& aId ); |
|
51 |
|
52 IMPORT_C const TDesC& Namespace() const; |
|
53 IMPORT_C void SetNamespaceL( const TDesC& aNamespace ); |
|
54 |
|
55 IMPORT_C const TUid& Uid() const; |
|
56 IMPORT_C void SetUid( const TUid& aUid ); |
|
57 IMPORT_C void SetUid( const TInt aUid ); |
|
58 |
|
59 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
60 |
|
61 IMPORT_C void ExternalizeL( RWriteStream& aStream ); |
|
62 |
|
63 |
|
64 private: |
|
65 |
|
66 // Prevent these if not implemented |
|
67 CIAUpdaterIdentifier( const CIAUpdaterIdentifier& aObject ); |
|
68 CIAUpdaterIdentifier& operator =( const CIAUpdaterIdentifier& aObject ); |
|
69 |
|
70 |
|
71 CIAUpdaterIdentifier(); |
|
72 |
|
73 void ConstructL(); |
|
74 |
|
75 |
|
76 private: // data |
|
77 |
|
78 HBufC* iId; |
|
79 HBufC* iNamespace; |
|
80 TUid iUid; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // IA_UPDATER_IDENTIFIER_H |
|
85 |