|
1 /* |
|
2 * Copyright (c) 2007-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: ESMR ui factory class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CESMRUIFACTORY_H |
|
19 #define CESMRUIFACTORY_H |
|
20 |
|
21 #include <e32base.h> |
|
22 //<cmail> |
|
23 #include "mesmruifactory.h" |
|
24 //</cmail> |
|
25 |
|
26 // FORWARD DECLARATIONS: |
|
27 class CEikonEnv; |
|
28 |
|
29 /** |
|
30 * UI Factory implementation. |
|
31 * |
|
32 * @see mesmruifactory.h |
|
33 * @lib esmrgui.lib |
|
34 */ |
|
35 NONSHARABLE_CLASS ( CESMRUiFactory ) : |
|
36 public CBase, |
|
37 public MESMRUiFactory |
|
38 { |
|
39 public: // Construction and destruction |
|
40 /** |
|
41 * Two-phased constructor. Creates and initialzes new CESMRUiFactory |
|
42 * object. Ownership is transferred to caller. |
|
43 * |
|
44 * @return Pointer to CESMRUiFactory object. |
|
45 */ |
|
46 IMPORT_C static CESMRUiFactory * NewL(); |
|
47 |
|
48 /** |
|
49 * C++ destructor |
|
50 */ |
|
51 IMPORT_C ~CESMRUiFactory (); |
|
52 |
|
53 public: // From MESMRUiFactory |
|
54 IMPORT_C MESMRUiBase* CreateUIL( |
|
55 CESMRPolicy* aPolicy, |
|
56 MESMRCalEntry& aEntry, |
|
57 MAgnEntryUiCallback& aCallback ); |
|
58 |
|
59 private: // Implementation |
|
60 CESMRUiFactory(); |
|
61 void ConstructL(); |
|
62 void LoadResourceFileL(CEikonEnv* aEikEnv, |
|
63 const TDesC& aFilename, |
|
64 TInt& aResourceOffset); |
|
65 private: |
|
66 /// Own: Resource offset, stored for later deletion |
|
67 TInt iResourceOffset; |
|
68 }; |
|
69 |
|
70 #endif // CESMRUIFACTORY_H |
|
71 |
|
72 // EOF |
|
73 |