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
|
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// frmBackupServer.h - Backup server dialogue
//
//////////////////////////////////////////////////////////////////////////
#ifndef FRMBACKUPSERVER_H
#define FRMBACKUPSERVER_H
#include "dlg/dlgClasses.h"
#include "utils/factory.h"
class frmMain;
class frmBackupServer : public ExternProcessDialog
{
public:
frmBackupServer(frmMain *form, pgObject *_object);
~frmBackupServer();
void Go();
wxString GetDisplayCmd(int step);
wxString GetCmd(int step);
private:
wxString GetHelpPage() const;
void OnChange(wxCommandEvent &ev);
void OnSelectFilename(wxCommandEvent &ev);
wxString getCmdPart1();
wxString getCmdPart2();
void OnOK(wxCommandEvent &ev);
pgObject *object;
wxString processedFile;
wxString backupExecutable;
DECLARE_EVENT_TABLE()
};
class backupServerFactory : public contextActionFactory
{
public:
backupServerFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar);
wxWindow *StartDialog(frmMain *form, pgObject *obj);
bool CheckEnable(pgObject *obj);
};
#endif
|