controlpanel/tsrc/unit/pluginfortest/thirdpluginfortest/src/thirdpluginfortest.cpp
author hgs
Thu, 02 Sep 2010 17:14:05 +0800
changeset 55 4c15d9aa2384
child 64 5136fef23c4b
permissions -rw-r--r--
201035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55
hgs
parents:
diff changeset
     1
hgs
parents:
diff changeset
     2
hgs
parents:
diff changeset
     3
#include "thirdpluginfortest.h"
hgs
parents:
diff changeset
     4
#include "thirdpluginviewfortest.h"
hgs
parents:
diff changeset
     5
#include <cpsettingformentryitemdataimpl.h>
hgs
parents:
diff changeset
     6
hgs
parents:
diff changeset
     7
ThirdPluginForTest::ThirdPluginForTest()
hgs
parents:
diff changeset
     8
{
hgs
parents:
diff changeset
     9
}
hgs
parents:
diff changeset
    10
hgs
parents:
diff changeset
    11
ThirdPluginForTest::~ThirdPluginForTest()
hgs
parents:
diff changeset
    12
{
hgs
parents:
diff changeset
    13
}
hgs
parents:
diff changeset
    14
QList<CpSettingFormItemData*> ThirdPluginForTest::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
hgs
parents:
diff changeset
    15
{
hgs
parents:
diff changeset
    16
    return QList<CpSettingFormItemData*>() 
hgs
parents:
diff changeset
    17
            << new CpSettingFormEntryItemDataImpl<ThirdPluginViewForTest>(
hgs
parents:
diff changeset
    18
               itemDataHelper,
hgs
parents:
diff changeset
    19
               tr("The plugin for test"), 
hgs
parents:
diff changeset
    20
               tr("TestPlugin."));
hgs
parents:
diff changeset
    21
}
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
CpBaseSettingView *ThirdPluginForTest::createSettingView(const QVariant &hint) const
hgs
parents:
diff changeset
    24
{
hgs
parents:
diff changeset
    25
    return 0;
hgs
parents:
diff changeset
    26
}
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
Q_EXPORT_PLUGIN2(ThirdPluginForTest, ThirdPluginForTest);