|
1 /* |
|
2 * Copyright (c) 2004 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: This class wraps usage of CSendAppUi into one simple class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CATTENDEE_SENDER_H__ |
|
21 #define __CATTENDEE_SENDER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CSendUi; |
|
28 class CEikMenuPane; |
|
29 class MDesC16Array; |
|
30 class CMessageData; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * This class wraps usage of CSendAppUi into one simple class. |
|
36 * |
|
37 */ |
|
38 class CAttendeeSender : public CBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @return CAttendeeSender object |
|
45 */ |
|
46 static CAttendeeSender* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CAttendeeSender(); |
|
52 |
|
53 public: // New functions |
|
54 /** |
|
55 * Displays "Send" option if SendUI allows and if |
|
56 * there are some visible items in the list. |
|
57 * Note: this function requires that command EAttSendDummyCmd exists |
|
58 * in the menu pane, since it determines the position of "Send as...". |
|
59 * @param aMenuPane |
|
60 * @param aVisibleCount number of visible items in the list |
|
61 */ |
|
62 void DisplaySendMenuL( |
|
63 CEikMenuPane& aMenuPane, |
|
64 TInt aVisibleCount ) const; |
|
65 |
|
66 /** |
|
67 * Show send query |
|
68 * @param aSmsVisible, is sms item visible in query |
|
69 * @return TUid, SendUI service uid |
|
70 */ |
|
71 TUid ShowSendQueryL( const TBool aSmsVisible ) const; |
|
72 |
|
73 /** |
|
74 * It is done asynchronously but client doesn't observe it. |
|
75 * This class takes care of error handling etc. |
|
76 * @param aMessageData |
|
77 * @param aMtmUid, SendUI service uid |
|
78 */ |
|
79 void CreateAndSendL( TUid aMtmUid, CMessageData* aMessageData ); |
|
80 |
|
81 private: |
|
82 /** |
|
83 * C++ default constructor. |
|
84 * @return CAttendeeSender object |
|
85 */ |
|
86 CAttendeeSender(); |
|
87 |
|
88 /** |
|
89 * By default Symbian 2nd phase constructor is private. |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 private: // Data |
|
94 ///Own: send ui |
|
95 CSendUi* iSendUi; |
|
96 }; |
|
97 |
|
98 #endif // __CATTENDEE_SENDER_H__ |
|
99 |
|
100 // End of File |