controlpanel/tsrc/unit/pluginfortest/secondpluginfortest/src/secondpluginfortest.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/controlpanel/tsrc/unit/pluginfortest/secondpluginfortest/src/secondpluginfortest.cpp Thu Sep 02 17:14:05 2010 +0800
@@ -0,0 +1,29 @@
+
+
+#include "secondpluginfortest.h"
+#include "secondpluginviewfortest.h"
+#include <cpsettingformentryitemdataimpl.h>
+
+SecondPluginForTest::SecondPluginForTest()
+{
+}
+
+SecondPluginForTest::~SecondPluginForTest()
+{
+}
+QList<CpSettingFormItemData*> SecondPluginForTest::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
+{
+ return QList<CpSettingFormItemData*>()
+ << new CpSettingFormEntryItemDataImpl<SecondPluginViewForTest>(
+ itemDataHelper,
+ tr("The plugin for test"),
+ tr("TestPlugin."));
+}
+
+CpBaseSettingView *SecondPluginForTest::createSettingView(const QVariant &hint) const
+{
+ SecondPluginViewForTest *pView = new SecondPluginViewForTest();
+ return pView;
+}
+
+Q_EXPORT_PLUGIN2(SecondPluginForTest, SecondPluginForTest);