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 Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $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 Trolltech Trademarks
Qt Extended 4.4.3