|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef TMCECSRECEIVEITEM_H |
|
22 #define TMCECSRECEIVEITEM_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "mceclientserver.h" |
|
27 |
|
28 /** |
|
29 * MCE CS server receive item for asyncronous events. |
|
30 * |
|
31 * @lib |
|
32 * @since |
|
33 */ |
|
34 class TMceCSReceiveItem |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 * @param aIds, message ids. |
|
41 * @param aContext, message context. |
|
42 * @param aContent, message content. |
|
43 * @param aError, error code. |
|
44 */ |
|
45 TMceCSReceiveItem (const TMceIds& aIds, |
|
46 HBufC8* aContext, |
|
47 HBufC8* aContent, |
|
48 TInt aError=KErrNone); |
|
49 |
|
50 /** |
|
51 * Constructor. |
|
52 * @param aIds, message ids. |
|
53 * @param aError, error code. |
|
54 */ |
|
55 TMceCSReceiveItem (const TMceIds& aIds, TInt aError); |
|
56 |
|
57 public: // New |
|
58 |
|
59 /** |
|
60 * Gets context of the message. |
|
61 * @return content. |
|
62 */ |
|
63 HBufC8* Context (); |
|
64 |
|
65 /** |
|
66 * Gets content of the message. |
|
67 * @return content. |
|
68 */ |
|
69 HBufC8* Content (); |
|
70 |
|
71 /** |
|
72 * Gets ids of the message. |
|
73 * @return ids. |
|
74 */ |
|
75 const TMceIds& Ids () const; |
|
76 |
|
77 /** |
|
78 * Gets error code of the message. |
|
79 * @return error code. |
|
80 */ |
|
81 TInt Error() const; |
|
82 |
|
83 /** |
|
84 * Gets the sizes of buffers. |
|
85 * @return sizes of buffers. |
|
86 */ |
|
87 TMceMessageBufSizes BufSizes () const; |
|
88 |
|
89 private: |
|
90 |
|
91 TMceCSReceiveItem (); |
|
92 |
|
93 // data |
|
94 TMceIds iIds; |
|
95 HBufC8* iContext; |
|
96 HBufC8* iContent; |
|
97 TInt iError; |
|
98 }; |
|
99 |
|
100 #endif |
|
101 |
|
102 // End of File |