|
1 /* |
|
2 * Copyright (c) 2008-2009 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: common params class shared between servicetab and conversationview |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TIMCVUIPARAMS_H |
|
20 #define TIMCVUIPARAMS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * constant to define the size of the contact link |
|
27 */ |
|
28 #define KMaxPackedContactLinkLength 300 |
|
29 #define KMaxLength 100 |
|
30 /** |
|
31 * Using TXmppMessages and TXmppErrors enum's |
|
32 */ |
|
33 const TUid KConversationViewAppUid = {0x20012425}; |
|
34 |
|
35 /** |
|
36 * Class for passing parameters to cv application. |
|
37 * |
|
38 * The objects of this class are wrapped into package buffer which is sent |
|
39 * from external process and handled in cv applications ProcessMessage() |
|
40 * |
|
41 * @since S60 v5.0 |
|
42 */ |
|
43 class TIMCVUiParams |
|
44 { |
|
45 public: // Data |
|
46 |
|
47 inline TIMCVUiParams() |
|
48 { |
|
49 iAppUid = 0; |
|
50 iViewUid = 0; |
|
51 iServiceId =0; |
|
52 iUpdate = EFalse; |
|
53 } |
|
54 |
|
55 /** |
|
56 * Buddy ID |
|
57 */ |
|
58 TBuf<KMaxLength> iBuddyId; |
|
59 |
|
60 /** |
|
61 * Buddy ID |
|
62 */ |
|
63 TBuf<KMaxLength> iBuddyName; |
|
64 |
|
65 /** |
|
66 * Using TXmppMessages and TXmppErrors enum's |
|
67 */ |
|
68 TInt iCommand; |
|
69 |
|
70 /** |
|
71 * Using system wide error codes |
|
72 */ |
|
73 TInt iErrorCode; |
|
74 |
|
75 /** |
|
76 * Calling application Uid |
|
77 */ |
|
78 TInt iAppUid; |
|
79 |
|
80 /** |
|
81 * Calling application's ViewUid |
|
82 */ |
|
83 TInt iViewUid; |
|
84 |
|
85 |
|
86 //service id; |
|
87 TUint32 iServiceId; |
|
88 |
|
89 //contact link |
|
90 TBuf8<KMaxPackedContactLinkLength> iContactLink; |
|
91 |
|
92 // bool varaible to differentiate if its update |
|
93 // of the display name or user id. |
|
94 TBool iUpdate; |
|
95 |
|
96 }; |
|
97 |
|
98 |
|
99 #endif // TIMCVUIPARAMS_H |
|
100 |
|
101 // End of File |