47 lines
601 B
C++
47 lines
601 B
C++
#ifndef ECORE_JOB_H
|
|
#define ECORE_JOB_H
|
|
|
|
/* EFL */
|
|
#include <Ecore.h>
|
|
|
|
#include <sigc++/sigc++.h>
|
|
|
|
namespace Ecorexx {
|
|
|
|
class Job
|
|
{
|
|
public:
|
|
/*!
|
|
* Add a job to the event queue.
|
|
*/
|
|
Job ();
|
|
|
|
/*!
|
|
* Delete a queued job that has not yet been executed.
|
|
*/
|
|
virtual ~Job ();
|
|
|
|
/*!
|
|
* Starts the job
|
|
*/
|
|
void start ();
|
|
|
|
/*!
|
|
* Cancels the job if not yet runned
|
|
*/
|
|
void cancel ();
|
|
|
|
sigc::signal <void> signalCall;
|
|
|
|
private:
|
|
static void callback (void *data);
|
|
|
|
private:
|
|
Ecore_Job *mJob;
|
|
bool mCalled;
|
|
};
|
|
|
|
} // end namespace Ecorexx
|
|
|
|
#endif // ECORE_JOB_H
|