|
1 /* |
|
2 * Copyright (c) 1997-1999 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if !defined(__EIKCTLIB_H__) |
|
20 #define __EIKCTLIB_H__ |
|
21 |
|
22 #if !defined(__F32FILE_H__) |
|
23 #include <f32file.h> |
|
24 #endif |
|
25 |
|
26 #if !defined(__E32BASE_H__) |
|
27 #include <e32base.h> |
|
28 #endif |
|
29 |
|
30 #if !defined(__EIKLIBRY_H__) |
|
31 #include <eiklibry.h> |
|
32 #endif |
|
33 |
|
34 #if !defined(__EIKBGFTY_H__) |
|
35 #include <eikbgfty.h> |
|
36 #endif |
|
37 |
|
38 /** |
|
39 * The CEikCtlLibrary class proovides static functions called by CEikDllInitializer; setting EikCtl |
|
40 * library resources in Cone and giving access to its controls via ControlFactoryFuncArray() in EikonEnv |
|
41 * |
|
42 * @internal |
|
43 */ |
|
44 class CEikCtlLibrary : public CBase |
|
45 { |
|
46 public: |
|
47 /** |
|
48 * ResourceFile() returns name of the resource file eikctl.rsc |
|
49 */ |
|
50 IMPORT_C static TFileName ResourceFile(); |
|
51 /** |
|
52 * ControlFactory provides ability to create controls by id number. |
|
53 */ |
|
54 IMPORT_C static TCreateByTypeFunction ControlFactory(); |
|
55 /** |
|
56 * Dll initialization routine |
|
57 */ |
|
58 IMPORT_C static void InitializeL(); |
|
59 /** |
|
60 * Factory to create buttongroups |
|
61 */ |
|
62 IMPORT_C static TCreateButtonGroupByTypeFunction ButtonGroupFactory(); |
|
63 public: |
|
64 static SEikControlInfo CreateByTypeL(TInt aControlId); |
|
65 static MEikButtonGroup* CreateButtonGroupByTypeL(TInt aButtonGroupType,EikButtonGroupFactory::TCreationData& aCreationData,TBool& aAddToButtonGroupStack); |
|
66 private: |
|
67 CEikCtlLibrary(); |
|
68 }; |
|
69 |
|
70 #endif |