|
1 /* |
|
2 * Copyright (c) 2008 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: MBUtils ECOM definition |
|
15 * |
|
16 */ |
|
17 #ifndef C_MRMBUTILSEXTENSION_H |
|
18 #define C_MRMBUTILSEXTENSION_H |
|
19 |
|
20 class CFSMailClient; |
|
21 class MMRMBUtilsSettings; |
|
22 class CMRMBUtilsSettings; |
|
23 class CMRMBUtilsMailboxListener; |
|
24 |
|
25 #include <cmrmbutilsmbinfohandler.h> |
|
26 |
|
27 /** |
|
28 * CMRMbUtilsExtensionImpl implements CMRMBUtilsMBInfoHandler / |
|
29 * MMRMBUtilsMBInfoHandler ECOM interface. |
|
30 */ |
|
31 class CMRMbUtilsExtensionImpl : |
|
32 public CMRMBUtilsMBInfoHandler |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Creates and initializes new CMRMbUtilsExtensionImpl object. |
|
37 * Ownership is transferred to caller. |
|
38 * Passed parameter is assumed to be reference to MMRMailboxUtilsObserver |
|
39 * object, |
|
40 * @param aMRMailboxObserver Reference to aMRMailboxObserver object |
|
41 */ |
|
42 static CMRMbUtilsExtensionImpl* NewL( |
|
43 TAny* aMRMailboxObserver ); |
|
44 |
|
45 /** |
|
46 * C++ destructor |
|
47 */ |
|
48 ~CMRMbUtilsExtensionImpl(); |
|
49 |
|
50 public: // From MMRMBUtilsMBInfoHandler |
|
51 MMRMBUtilsSettings* SettingsMgr(); |
|
52 const RPointerArray<CMRMailBoxInfo>& MRMailBoxes() const; |
|
53 const CMRMailBoxInfo* MRMailBoxInfoL( |
|
54 TInt aEntryId ) const; |
|
55 void ListMRMailBoxesL( |
|
56 RArray<CMRMailboxUtils::TMailboxInfo>& aMailBoxes ); |
|
57 TAny* ExtensionL( TUid aExtensionUid ); |
|
58 |
|
59 private: // Implementation |
|
60 CMRMbUtilsExtensionImpl( |
|
61 MMRMailboxUtilsObserver& aObserver ); |
|
62 void ConstructL(); |
|
63 |
|
64 private: |
|
65 /// Own: Pointer to mailclient object |
|
66 CFSMailClient* iMailClient; |
|
67 /// Own: List of MR capable CMail mailboxes |
|
68 RPointerArray<CMRMailBoxInfo> iMailboxes; |
|
69 /// Own: Pointer to mailbox listener object |
|
70 CMRMBUtilsMailboxListener* iMailboxListener; |
|
71 /// Own: Pointer to settings item |
|
72 CMRMBUtilsSettings* iSettings; |
|
73 /// Ref: Reference to mailbox utilities observer |
|
74 MMRMailboxUtilsObserver& iMRMailboxObserver; |
|
75 }; |
|
76 |
|
77 #endif // C_MRMBUTILSEXTENSION_H |
|
78 |
|
79 // EOF |