~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/include/slony/dlgRepCluster.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2011-06-07 23:03:54 UTC
  • mfrom: (1.3.1 upstream) (13 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110607230354-3td4j9y71u4ahcvj
Tags: 1.14.0~beta1-1
* New upstream development release, adding Build-Depends on
  postgresql-server-dev-all >= 117~.
* Add Build-Depends on quilt, (un)patch to debian/rules and patch for fixing
  the include for kwlist.h in pgadmin/db/keywords.c.
* Add pg_config --includedir-server output to CPPFLAGS.
* Remove unrecognized configure options: --with-wx-config,
  --with-pgsql-include, --enable-gtk2, --enable-unicode.
* Clean up manually the files that are left behind after the broken
  distclean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// 
5
 
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
 
4
//
 
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
// dlgRepCluster.h - Slony-I cluster property
23
23
class dlgRepClusterBase : public dlgProperty
24
24
{
25
25
public:
26
 
    dlgRepClusterBase(pgaFactory *factory, frmMain *frame, const wxString &dlgName, slCluster *cl, pgDatabase *obj);
27
 
    ~dlgRepClusterBase();
28
 
    pgObject *GetObject();
29
 
    int Go(bool modal);
 
26
        dlgRepClusterBase(pgaFactory *factory, frmMain *frame, const wxString &dlgName, slCluster *cl, pgDatabase *obj);
 
27
        ~dlgRepClusterBase();
 
28
        pgObject *GetObject();
 
29
        int Go(bool modal);
30
30
 
31
31
private:
32
 
    virtual void OnChangeCluster(wxCommandEvent &ev)=0;
 
32
        virtual void OnChangeCluster(wxCommandEvent &ev) = 0;
33
33
 
34
34
protected:
35
 
    void OnChangeServer(wxCommandEvent &ev);
36
 
    void OnChangeDatabase(wxCommandEvent &ev);
37
 
 
38
 
    bool AddScript(wxString &sql, const wxString &filename);
39
 
    slCluster *cluster;
40
 
    wxTreeItemId servers;
41
 
    pgServer *remoteServer;
42
 
    pgConn *remoteConn;
43
 
    wxString remoteVersion;
44
 
    wxString createScript;
45
 
 
46
 
    DECLARE_EVENT_TABLE()
 
35
        void OnChangeServer(wxCommandEvent &ev);
 
36
        void OnChangeDatabase(wxCommandEvent &ev);
 
37
 
 
38
        bool AddScript(wxString &sql, const wxString &filename);
 
39
        slCluster *cluster;
 
40
        wxTreeItemId servers;
 
41
        pgServer *remoteServer;
 
42
        pgConn *remoteConn;
 
43
        wxString remoteVersion;
 
44
        wxString createScript;
 
45
 
 
46
        DECLARE_EVENT_TABLE()
47
47
};
48
48
 
49
49
 
50
50
class dlgRepCluster : public dlgRepClusterBase
51
51
{
52
52
public:
53
 
    dlgRepCluster(pgaFactory *factory, frmMain *frame, slCluster *cl, pgDatabase *obj);
54
 
    int Go(bool modal);
55
 
    wxString GetHelpPage() const;
 
53
        dlgRepCluster(pgaFactory *factory, frmMain *frame, slCluster *cl, pgDatabase *obj);
 
54
        int Go(bool modal);
 
55
        wxString GetHelpPage() const;
56
56
 
57
 
    void CheckChange();
58
 
    wxString GetSql();
59
 
    pgObject *CreateObject(pgCollection *collection);
 
57
        void CheckChange();
 
58
        wxString GetSql();
 
59
        pgObject *CreateObject(pgCollection *collection);
60
60
 
61
61
private:
62
 
    void OnOK(wxCommandEvent &ev);
63
 
    void OnChangeJoin(wxCommandEvent &ev);
64
 
    void OnChangeCluster(wxCommandEvent &ev);
65
 
    void OnEndProcess(wxProcessEvent& event);
66
 
 
67
 
    bool CopyTable(pgConn *from, pgConn *to, const wxString &table);
68
 
    sysProcess *process;
69
 
 
70
 
    bool SlonyMaximumVersion(const wxString &series, long minor);
71
 
 
72
 
    wxArrayLong usedNodes;
73
 
    wxString clusterBackup;
74
 
    wxString slonyVersion;
75
 
 
76
 
 
77
 
    DECLARE_EVENT_TABLE()
 
62
        void OnOK(wxCommandEvent &ev);
 
63
        void OnChangeJoin(wxCommandEvent &ev);
 
64
        void OnChangeCluster(wxCommandEvent &ev);
 
65
        void OnEndProcess(wxProcessEvent &event);
 
66
 
 
67
        bool CopyTable(pgConn *from, pgConn *to, const wxString &table);
 
68
        sysProcess *process;
 
69
 
 
70
        bool SlonyMaximumVersion(const wxString &series, long minor);
 
71
 
 
72
        wxArrayLong usedNodes;
 
73
        wxString clusterBackup;
 
74
        wxString slonyVersion;
 
75
 
 
76
 
 
77
        DECLARE_EVENT_TABLE()
78
78
};
79
79
 
80
80
 
82
82
class dlgRepClusterUpgrade : public dlgRepClusterBase
83
83
{
84
84
public:
85
 
    dlgRepClusterUpgrade(pgaFactory *factory, frmMain *frame, slCluster *cl);
86
 
    int Go(bool modal);
87
 
    wxString GetHelpPage() const { return wxT("slony-install#upgrade"); }
88
 
 
89
 
 
90
 
    void CheckChange();
91
 
    wxString GetSql();
92
 
    pgObject *CreateObject(pgCollection *collection);
 
85
        dlgRepClusterUpgrade(pgaFactory *factory, frmMain *frame, slCluster *cl);
 
86
        int Go(bool modal);
 
87
        wxString GetHelpPage() const
 
88
        {
 
89
                return wxT("slony-install#upgrade");
 
90
        }
 
91
 
 
92
 
 
93
        void CheckChange();
 
94
        wxString GetSql();
 
95
        pgObject *CreateObject(pgCollection *collection);
93
96
 
94
97
private:
95
 
    void OnChangeCluster(wxCommandEvent &ev);
 
98
        void OnChangeCluster(wxCommandEvent &ev);
96
99
 
97
 
    wxString version;
98
 
    wxString sql;
99
 
    DECLARE_EVENT_TABLE()
 
100
        wxString version;
 
101
        wxString sql;
 
102
        DECLARE_EVENT_TABLE()
100
103
};
101
104
 
102
105
#endif