Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

exampletask.h Example File
server/plugins/exampletask/exampletask.h

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Commercial Package.
    **
    ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #ifndef EXAMPLETASK_H
    #define EXAMPLETASK_H

    #include <ServerTaskPlugin>

    class ExampleTaskPlugin : public ServerTaskPlugin
    {
        Q_OBJECT
    public:
        ExampleTaskPlugin( QObject* parent = 0 );
        virtual ~ExampleTaskPlugin();

        //name of task
        QByteArray name() const;

        //initialises task
        QObject* initTask( void* createArg = 0 ) const;

        //returns true if started in demand
        bool demand() const;
    };

    #endif


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3