|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: Declaration of CPushMtmUiOperation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PUSHMTMUIOPERATION_H |
|
21 #define PUSHMTMUIOPERATION_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include "PushMtmOperation.h" |
|
26 #include <e32std.h> |
|
27 #include <ConeResLoader.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 class CCoeEnv; |
|
32 class CPushMtmUtil; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Base class for UI operations. It extends CPushMtmOperation with |
|
38 * AssureResourceL(). |
|
39 */ |
|
40 class CPushMtmUiOperation : public CPushMtmOperation |
|
41 { |
|
42 protected: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Constructor. |
|
46 * @param aSession Message Server Session to be used by this operation. |
|
47 * @param aId Id of entry to operate on. |
|
48 * @param aObserverStatus Observer's status. |
|
49 */ |
|
50 CPushMtmUiOperation( CMsvSession& aSession, |
|
51 TMsvId aId, |
|
52 TRequestStatus& aObserverStatus ); |
|
53 |
|
54 /** |
|
55 * Symbian OS constructor. Derived classes must call this! |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CPushMtmUiOperation(); |
|
63 |
|
64 protected: // New functions |
|
65 |
|
66 /** |
|
67 * Add the resource file to the Cone. |
|
68 * Must be called before using a resource from this file to ensure that |
|
69 * the resource file is loaded. Only one file can be loaded that is |
|
70 * closed only in the destructor. |
|
71 * @param aResourceFile Resource file name to be loaded. |
|
72 * @return None. |
|
73 */ |
|
74 void AssureResourceL( const TDesC& aResourceFile ); |
|
75 |
|
76 /** |
|
77 * Show a global error note using CErrorUI. |
|
78 * @param aError Error code. |
|
79 * @return None. |
|
80 */ |
|
81 void ShowGlobalErrorNoteL( TInt aError ) const; |
|
82 |
|
83 protected: // Data members |
|
84 |
|
85 CCoeEnv& iCoeEnv; |
|
86 CPushMtmUtil* iMtmUtil; ///< Utility. Has. |
|
87 RConeResourceLoader iResourceLoader; ///< Resource loader. |
|
88 TBool iResourceOpened; ///< Indicate if the resource is opened. |
|
89 }; |
|
90 |
|
91 #endif // PUSHMTMUIOPERATION_H |
|
92 |
|
93 // End of file. |
|
94 |