|
1 /* |
|
2 * Copyright (c) 2002-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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef IDWSF_CORRELATION_HEADER_H |
|
26 #define IDWSF_CORRELATION_HEADER_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <SenXmlElement.h> |
|
30 |
|
31 // CONSTANTS |
|
32 _LIT8(KCorrelationName, "Correlation"); |
|
33 _LIT8(KCorrelationQName, "sb:Correlation"); |
|
34 |
|
35 // CLASS DECLARATION // we could use internal element here (to optimize mem) |
|
36 class CIdWsfCorrelationHeader : public CSenXmlElement |
|
37 { |
|
38 public: // Constructors and destructors |
|
39 |
|
40 static CIdWsfCorrelationHeader* NewL( |
|
41 const TDesC8& aRefToMessageId = KNullDesC8); |
|
42 |
|
43 static CIdWsfCorrelationHeader* NewL(const RAttributeArray& aAttributes); |
|
44 |
|
45 virtual ~CIdWsfCorrelationHeader(); |
|
46 |
|
47 // New functions |
|
48 |
|
49 virtual TPtrC8 MessageId(); |
|
50 virtual TPtrC8 RefToMessageId(); |
|
51 virtual TPtrC8 Timestamp(); |
|
52 virtual void SetCorrelationL(const TDesC8& aRefToMessageId); |
|
53 |
|
54 protected: // Functions from base classes |
|
55 |
|
56 // From CBaseElement |
|
57 virtual void WriteAttrsToL(RWriteStream& aWriteStream); |
|
58 |
|
59 private: |
|
60 |
|
61 /** |
|
62 * C++ default constructor. |
|
63 */ |
|
64 CIdWsfCorrelationHeader(); |
|
65 |
|
66 /** |
|
67 * By default Symbian 2nd phase constructors are private. |
|
68 */ |
|
69 void ConstructL(const TDesC8& aRefToMessageId); |
|
70 void ConstructL(const RAttributeArray& aAttributes); |
|
71 |
|
72 private: // Data |
|
73 HBufC8* ipMessageId; // Owned |
|
74 HBufC8* ipRefToMessageId; // Owned |
|
75 HBufC8* ipTimestamp; // Owned |
|
76 }; |
|
77 |
|
78 #endif // IDWSF_CORRELATION_HEADER_H |
|
79 |
|
80 // End of File |