|
1 /* |
|
2 * Copyright (c) 2007-2007 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: CCenRepSourcePlugIn class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_CENREPSOURCEPLUGIN_H |
|
21 #define C_CENREPSOURCEPLUGIN_H |
|
22 |
|
23 #include <cfcontextsourceplugin.h> |
|
24 |
|
25 class CCenRepHandler; |
|
26 |
|
27 /** |
|
28 * CenRepSource plugin. |
|
29 * |
|
30 * @lib CenRepSourcePlugIn.dll |
|
31 * @since S60 5.0 |
|
32 */ |
|
33 |
|
34 NONSHARABLE_CLASS( CCenRepSourcePlugIn ) : public CCFContextSourcePlugIn |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructors. |
|
41 * |
|
42 * @since S60 5.0 |
|
43 * @param aParams Context source plug-in construction parameters |
|
44 */ |
|
45 static CCenRepSourcePlugIn* NewL( TContextSourceInitParams* aParams ); |
|
46 |
|
47 static CCenRepSourcePlugIn* NewLC( TContextSourceInitParams* aParams ); |
|
48 |
|
49 virtual ~CCenRepSourcePlugIn(); |
|
50 |
|
51 protected: |
|
52 |
|
53 private: |
|
54 |
|
55 // Subscribes for specified contexts |
|
56 void SubscribeL(); |
|
57 |
|
58 CCenRepSourcePlugIn( TContextSourceInitParams* aParams ); |
|
59 |
|
60 // From base classes |
|
61 |
|
62 // @see CCFContextSourcePlugIn |
|
63 void HandleSettingL( CCFContextSourceSettingArray* aSettingList ); |
|
64 |
|
65 // @see CCFContextSourcePlugIn |
|
66 void DefineContextsL(); |
|
67 |
|
68 // @see CCFContextSourcePlugIn |
|
69 void InitializeL(); |
|
70 |
|
71 public: // Data |
|
72 |
|
73 protected: // Data |
|
74 |
|
75 private: // Data |
|
76 |
|
77 // Own: Array of CenRepHandler objects |
|
78 RPointerArray<CCenRepHandler> iCenRepHandlerArray; |
|
79 |
|
80 // Own: CenRep source settings |
|
81 CCFContextSourceSettingArray* iSettings; |
|
82 }; |
|
83 |
|
84 #endif // C_CENREPSOURCEPLUGIN_H |