Source Code (Use browser search to find items of interest.)

Class Index

empath'EmpathJob (./kdepim/empath/lib/EmpathJob.h:47)

class EmpathJob : public QObject
#ifdef USE_QPTHREAD
    , public QpThread
#endif
{
    Q_OBJECT

    public:

        EmpathJob(ActionType t);

        virtual ~EmpathJob()
        {
            // Empty.
        }

        bool success() const { return success_; }

#ifdef USE_QPTHREAD
        virtual void Run() { run(); }
#endif
        virtual void run() = 0;

        EmpathJobID id() const { return id_; }

        bool finished() const { return finished_; }

    protected:

        EmpathJob();
        EmpathJob(const EmpathJob &);

        ActionType type() const { return type_; }
        void setSuccess(bool ok) { success_ = ok; }
        void setSuccessMap(EmpathSuccessMap map) { successMap_ = map; }

        virtual void _done() = 0;

        void setFinished() { finished_ = true; }

    private:

        static EmpathJobID ID_;

        EmpathJobID id_;
        ActionType type_;
        bool success_;
        EmpathSuccessMap successMap_;

        bool finished_;
};


empath'EmpathJob::EmpathJob() (./kdepim/empath/lib/EmpathJob.cpp:32)

EmpathJob::EmpathJob(ActionType t)
    :
    QObject(),
#ifdef USE_QPTHREAD
    QpThread(),
#endif
    id_(ID_++),
    type_(t),
    success_(false),
    finished_(false)
{
    // Empty.
}


empath'EmpathJob::EmpathJob() (./kdepim/empath/lib/EmpathJob.cpp:46)

EmpathJob::EmpathJob(const EmpathJob & other)
    :
    QObject(),
#ifdef USE_QPTHREAD
    QpThread(),
#endif
    id_(other.id_),
    type_(other.type_),
    success_(other.success_),
    successMap_(other.successMap_)
{
    // Empty.
}

// ------------------------------------------------------------------------