exampletask.cpp Example File
server/plugins/exampletask/exampletask.cpp
#include "exampletask.h"
#include <qtopiaglobal.h>
#include <QDebug>
class ExampleTask: public QObject
{
public:
ExampleTask( QObject* parent = 0 ) : QObject(parent)
{
}
~ExampleTask()
{
}
};
ExampleTaskPlugin::ExampleTaskPlugin(QObject* parent)
: ServerTaskPlugin( parent )
{
}
ExampleTaskPlugin::~ExampleTaskPlugin()
{
}
QByteArray ExampleTaskPlugin::name() const
{
return QByteArray("ExampleTask");
}
QObject* ExampleTaskPlugin::initTask(void* createArg ) const
{
Q_UNUSED( createArg );
return new ExampleTask();
}
bool ExampleTaskPlugin::demand() const
{
return true;
}
QTOPIA_EXPORT_PLUGIN( ExampleTaskPlugin )
Copyright © 2009 Nokia |
Trademarks |
Qt Extended 4.4.3 |