1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// dlgStep.h - Job property
//
//////////////////////////////////////////////////////////////////////////
#ifndef __DLG_STEPPROP
#define __DLG_STEPPROP
#include "dlg/dlgProperty.h"
class pgaStep;
class pgaJob;
class dlgStep : public dlgAgentProperty
{
public:
dlgStep(pgaFactory *factory, frmMain *frame, pgaStep *s, pgaJob *j);
void CheckChange();
int Go(bool modal);
wxString GetUpdateSql();
wxString GetInsertSql();
wxString GetComment();
pgObject *CreateObject(pgCollection *collection);
pgObject *GetObject();
void SetObject(pgObject *obj)
{
step = (pgaStep *)obj;
}
void SetJobId(long id)
{
jobId = id;
}
wxString GetHelpPage(bool forCreate) const
{
return wxT("pgagent-steps");
}
private:
void OnSelRemoteConn(wxCommandEvent &ev);
void OnSelLocalConn(wxCommandEvent &ev);
void OnSelectDatabase(wxCommandEvent &ev);
virtual bool IsUpToDate();
long jobId;
ctlSQLBox *sqlBox;
pgaStep *step;
pgaJob *job;
bool hasConnStrSupport;
DECLARE_EVENT_TABLE()
};
#endif
|