calendarui/calenplugins/calensettingsplugin/src/calensettingsplugin.cpp
changeset 18 c198609911f9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarui/calenplugins/calensettingsplugin/src/calensettingsplugin.cpp	Fri Apr 16 14:57:40 2010 +0300
@@ -0,0 +1,49 @@
+/*
+* Copyright (c) 2009 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: 
+ *
+*/
+
+#include <cpsettingformentryitemdataimpl.h>
+
+#include "calensettingsplugin.h"
+#include "calendarsettingsview.h"
+#include <cpitemdatahelper.h>
+
+
+CalenSettingsPlugin::CalenSettingsPlugin()
+{
+}
+
+CalenSettingsPlugin::~CalenSettingsPlugin()
+{
+}
+
+int CalenSettingsPlugin::uid() const
+{
+	// TODO: get a uid and replace it.
+    return 0x20029F7F;
+}
+
+CpSettingFormItemData *CalenSettingsPlugin::createSettingFormItemData(CpItemDataHelper& itemDataHelper) const
+{
+    //CpItemDataHelper* pHelper = new CpItemDataHelper();
+	
+	// For now dummyicon
+    HbIcon* icon = new HbIcon();
+    return new CpSettingFormEntryItemDataImpl<CalendarSettingsView>(itemDataHelper, QString("Calendar application"),
+                                          QString("Calendar settings plugin"), *icon);
+}
+
+Q_EXPORT_PLUGIN2(CalenSettingsPlugin, CalenSettingsPlugin)