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 sender stub. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAUIMESSAGESENDER_H |
|
20 #define CAUIMESSAGESENDER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <msgarrays.h> // cuidnamearray |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * CaUIMessageSender implementation. |
|
30 * |
|
31 * @lib CaUiEngine.lib |
|
32 * @since 3.1 |
|
33 */ |
|
34 class CCaUiMessageSender : |
|
35 public CBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 ~CCaUiMessageSender(); |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * @return an instance of CCaUiMessageSender. |
|
47 */ |
|
48 static CCaUiMessageSender* NewL(); |
|
49 |
|
50 public: // New functions |
|
51 |
|
52 /** |
|
53 * Create new message by given Id. The message editor will always |
|
54 * be lauched stand alone. |
|
55 * @param aMessageType mtmUid indicate the message type |
|
56 * aRealAddress address list to send message |
|
57 */ |
|
58 void CreateNewMessageL( TInt aMessageType, |
|
59 MDesC16Array* aRealAddress, |
|
60 MDesC16Array* aAliases, |
|
61 CRichText* aRichText ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ constructor. |
|
67 * |
|
68 * @param aIndex After the query is dismissed, the index will hold |
|
69 * the value of selected item. |
|
70 */ |
|
71 CCaUiMessageSender( ); |
|
72 |
|
73 /** |
|
74 * Create SendUi |
|
75 */ |
|
76 void CreateSendUiL(); |
|
77 |
|
78 /** |
|
79 * Get message types from mtm registry |
|
80 * |
|
81 * @param aMsgTypes array of UIDs (MTM types) |
|
82 * |
|
83 */ |
|
84 void UpdateMessageTypesArrayL( CUidNameArray* aMsgTypes ); |
|
85 |
|
86 /** |
|
87 * Check if mail box is defined |
|
88 */ |
|
89 TBool IsMailboxDefinedL(); |
|
90 |
|
91 /** |
|
92 * Create connection to message service |
|
93 */ |
|
94 void CreateMessageServiceConnectionL(); |
|
95 |
|
96 private: |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CAUIMESSAGESENDER_H |
|
101 |
|
102 // End of File |
|