Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
@dpage dpage
58 lines (44 sloc) 0.835 kB
//////////////////////////////////////////////////////////////////////////
//
// pgAgent - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// job.h - agent job
//
//////////////////////////////////////////////////////////////////////////
#ifndef JOB_H
#define JOB_H
#include <wx/wx.h>
class Job
{
public:
Job(DBconn *conn, const wxString &jid);
~Job();
int Execute();
bool Runnable()
{
return status == wxT("r");
}
protected:
DBconn *threadConn;
wxString jobid, logid;
wxString status;
};
class JobThread : public wxThread
{
public:
JobThread(const wxString &jid);
~JobThread();
bool Runnable()
{
return runnable;
}
virtual void *Entry();
private:
wxString jobid;
bool runnable;
Job *job;
};
#endif // JOB_H
Jump to Line
Something went wrong with that request. Please try again.