|
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: CDisplaySourcePlugin class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_DISPLAYSOURCEPLUGIN_H |
|
20 #define C_DISPLAYSOURCEPLUGIN_H |
|
21 |
|
22 #include <cfcontextsourceplugin.h> |
|
23 |
|
24 class CDisplayServiceBase; |
|
25 |
|
26 /** |
|
27 * Display source. |
|
28 * Display source interprets events related to display state to context objects. |
|
29 * |
|
30 * @lib - |
|
31 */ |
|
32 NONSHARABLE_CLASS( CDisplaySourcePlugIn ): public CCFContextSourcePlugIn |
|
33 { |
|
34 public: |
|
35 |
|
36 // Two phased constructors |
|
37 static CDisplaySourcePlugIn* NewL( TContextSourceInitParams* aParams ); |
|
38 static CDisplaySourcePlugIn* NewLC( TContextSourceInitParams* aParams ); |
|
39 |
|
40 // Destructor |
|
41 ~CDisplaySourcePlugIn(); |
|
42 |
|
43 private: // From base classes |
|
44 |
|
45 // @see CCFContextSourcePlugIn |
|
46 void HandleSettingL( CCFContextSourceSettingArray* aSettingList ); |
|
47 |
|
48 // @see CCFContextSourcePlugIn |
|
49 void DefineContextsL(); |
|
50 |
|
51 // @see CCFContextSourcePlugIn |
|
52 void InitializeL(); |
|
53 |
|
54 private: |
|
55 |
|
56 CDisplaySourcePlugIn( TContextSourceInitParams* aParams ); |
|
57 |
|
58 private: |
|
59 |
|
60 /** Display services */ |
|
61 RPointerArray<CDisplayServiceBase> iServices; |
|
62 }; |
|
63 |
|
64 #endif // C_DISPLAYSOURCEPLUGIN_H |