--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contextframework/cfwplugins/cenrepsourceplugin/inc/cenrepsourceplugin.h Tue Feb 02 10:12:00 2010 +0200
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: CCenRepSourcePlugIn class declaration.
+*
+*/
+
+
+
+#ifndef C_CENREPSOURCEPLUGIN_H
+#define C_CENREPSOURCEPLUGIN_H
+
+#include <cfcontextsourceplugin.h>
+
+class CCenRepHandler;
+
+/**
+ * CenRepSource plugin.
+ *
+ * @lib CenRepSourcePlugIn.dll
+ * @since S60 5.0
+ */
+
+NONSHARABLE_CLASS( CCenRepSourcePlugIn ) : public CCFContextSourcePlugIn
+ {
+
+public:
+
+ /**
+ * Two-phased constructors.
+ *
+ * @since S60 5.0
+ * @param aParams Context source plug-in construction parameters
+ */
+ static CCenRepSourcePlugIn* NewL( TContextSourceInitParams* aParams );
+
+ static CCenRepSourcePlugIn* NewLC( TContextSourceInitParams* aParams );
+
+ virtual ~CCenRepSourcePlugIn();
+
+protected:
+
+private:
+
+ // Subscribes for specified contexts
+ void SubscribeL();
+
+ CCenRepSourcePlugIn( TContextSourceInitParams* aParams );
+
+// From base classes
+
+ // @see CCFContextSourcePlugIn
+ void HandleSettingL( CCFContextSourceSettingArray* aSettingList );
+
+ // @see CCFContextSourcePlugIn
+ void DefineContextsL();
+
+ // @see CCFContextSourcePlugIn
+ void InitializeL();
+
+public: // Data
+
+protected: // Data
+
+private: // Data
+
+ // Own: Array of CenRepHandler objects
+ RPointerArray<CCenRepHandler> iCenRepHandlerArray;
+
+ // Own: CenRep source settings
+ CCFContextSourceSettingArray* iSettings;
+ };
+
+#endif // C_CENREPSOURCEPLUGIN_H