1
1
//////////////////////////////////////////////////////////////////////////
3
3
// pgAdmin III - PostgreSQL Tools
5
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
8
8
// dlgRepCluster.h - Slony-I cluster property
23
23
class dlgRepClusterBase : public dlgProperty
26
dlgRepClusterBase(pgaFactory *factory, frmMain *frame, const wxString &dlgName, slCluster *cl, pgDatabase *obj);
28
pgObject *GetObject();
26
dlgRepClusterBase(pgaFactory *factory, frmMain *frame, const wxString &dlgName, slCluster *cl, pgDatabase *obj);
28
pgObject *GetObject();
32
virtual void OnChangeCluster(wxCommandEvent &ev)=0;
32
virtual void OnChangeCluster(wxCommandEvent &ev) = 0;
35
void OnChangeServer(wxCommandEvent &ev);
36
void OnChangeDatabase(wxCommandEvent &ev);
38
bool AddScript(wxString &sql, const wxString &filename);
41
pgServer *remoteServer;
43
wxString remoteVersion;
44
wxString createScript;
35
void OnChangeServer(wxCommandEvent &ev);
36
void OnChangeDatabase(wxCommandEvent &ev);
38
bool AddScript(wxString &sql, const wxString &filename);
41
pgServer *remoteServer;
43
wxString remoteVersion;
44
wxString createScript;
50
50
class dlgRepCluster : public dlgRepClusterBase
53
dlgRepCluster(pgaFactory *factory, frmMain *frame, slCluster *cl, pgDatabase *obj);
55
wxString GetHelpPage() const;
53
dlgRepCluster(pgaFactory *factory, frmMain *frame, slCluster *cl, pgDatabase *obj);
55
wxString GetHelpPage() const;
59
pgObject *CreateObject(pgCollection *collection);
59
pgObject *CreateObject(pgCollection *collection);
62
void OnOK(wxCommandEvent &ev);
63
void OnChangeJoin(wxCommandEvent &ev);
64
void OnChangeCluster(wxCommandEvent &ev);
65
void OnEndProcess(wxProcessEvent& event);
67
bool CopyTable(pgConn *from, pgConn *to, const wxString &table);
70
bool SlonyMaximumVersion(const wxString &series, long minor);
72
wxArrayLong usedNodes;
73
wxString clusterBackup;
74
wxString slonyVersion;
62
void OnOK(wxCommandEvent &ev);
63
void OnChangeJoin(wxCommandEvent &ev);
64
void OnChangeCluster(wxCommandEvent &ev);
65
void OnEndProcess(wxProcessEvent &event);
67
bool CopyTable(pgConn *from, pgConn *to, const wxString &table);
70
bool SlonyMaximumVersion(const wxString &series, long minor);
72
wxArrayLong usedNodes;
73
wxString clusterBackup;
74
wxString slonyVersion;
82
82
class dlgRepClusterUpgrade : public dlgRepClusterBase
85
dlgRepClusterUpgrade(pgaFactory *factory, frmMain *frame, slCluster *cl);
87
wxString GetHelpPage() const { return wxT("slony-install#upgrade"); }
92
pgObject *CreateObject(pgCollection *collection);
85
dlgRepClusterUpgrade(pgaFactory *factory, frmMain *frame, slCluster *cl);
87
wxString GetHelpPage() const
89
return wxT("slony-install#upgrade");
95
pgObject *CreateObject(pgCollection *collection);
95
void OnChangeCluster(wxCommandEvent &ev);
98
void OnChangeCluster(wxCommandEvent &ev);
102
DECLARE_EVENT_TABLE()