|
1 /* |
|
2 * Copyright (c) 2004-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: Message containing text |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCATEXTMESSAGE_H |
|
20 #define CCATEXTMESSAGE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "CCAMessageBase.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Message containing text |
|
31 * |
|
32 * @lib CAEngine.dll |
|
33 * @since 3.0 |
|
34 */ |
|
35 class CCATextMessage : public CCAMessageBase |
|
36 { |
|
37 |
|
38 public: // Construction |
|
39 |
|
40 /** |
|
41 * Construction |
|
42 * @return Pointer to new created instance of CCATextMessage |
|
43 */ |
|
44 static CCATextMessage* NewL( TInt aOpCode, |
|
45 const TDesC& aSender, |
|
46 const TDesC& aRecipient, |
|
47 const MDesCArray* aRecipients, |
|
48 const MDesCArray* aScreenNames, |
|
49 const TDesC& aData ); |
|
50 |
|
51 |
|
52 /** |
|
53 * Construction. This is only skeleton creation. Used with internalize |
|
54 * @return Pointer to new created instance of CCATextMessage |
|
55 */ |
|
56 static CCATextMessage* NewL(); |
|
57 |
|
58 |
|
59 /** |
|
60 * Construction |
|
61 * @return Pointer to new created instance of CCATextMessage |
|
62 */ |
|
63 static CCATextMessage* NewLC( TInt aOpCode, |
|
64 const TDesC& aSender, |
|
65 const TDesC& aRecipient, |
|
66 const MDesCArray* aRecipients, |
|
67 const MDesCArray* aScreenNames, |
|
68 const TDesC& aData ); |
|
69 |
|
70 /** |
|
71 * Destruction |
|
72 */ |
|
73 ~CCATextMessage(); |
|
74 |
|
75 private: // Construction |
|
76 |
|
77 /** |
|
78 * Constructor |
|
79 */ |
|
80 CCATextMessage(); |
|
81 |
|
82 /** |
|
83 * Constructor |
|
84 */ |
|
85 void ConstructL( const TDesC& aData ); |
|
86 |
|
87 private: // From MCAMessage |
|
88 |
|
89 /** |
|
90 * @see MCAMessage |
|
91 */ |
|
92 TInt SizeInBytes() const; |
|
93 |
|
94 /** |
|
95 * @see MCAMessage |
|
96 */ |
|
97 TContentType ContentType() const; |
|
98 |
|
99 public: // New methods |
|
100 |
|
101 /** |
|
102 * Set this message as failed. Change content to show failed status. |
|
103 */ |
|
104 void SetFailedL(); |
|
105 |
|
106 private: // Member variables |
|
107 |
|
108 const HBufC* iForwardPart; |
|
109 }; |
|
110 |
|
111 #endif // CCATEXTMESSAGE_H |
|
112 |
|
113 // End of File |