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

« back to all changes in this revision

Viewing changes to pgadmin/include/slony/slSubscription.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
// slSubscription.h PostgreSQL Slony-I Node
18
18
class slSubscriptionFactory : public slSetObjFactory
19
19
{
20
20
public:
21
 
    slSubscriptionFactory();
22
 
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
23
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
24
 
    int GetExportedIconId() { return exportedIconId; }
25
 
    
 
21
        slSubscriptionFactory();
 
22
        virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
 
23
        virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr = wxEmptyString);
 
24
        int GetExportedIconId()
 
25
        {
 
26
                return exportedIconId;
 
27
        }
 
28
 
26
29
protected:
27
 
    int exportedIconId;
 
30
        int exportedIconId;
28
31
};
29
32
extern slSubscriptionFactory subscriptionFactory;
30
33
 
32
35
class slSubscription : public slSetObject
33
36
{
34
37
public:
35
 
    slSubscription(slSet *set, const wxString& newName = wxT(""));
36
 
 
37
 
    int GetIconId();
38
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
39
 
 
40
 
    bool WantDummyChild();
41
 
    bool RequireDropConfirm() { return true; }
42
 
 
43
 
    bool GetActive() const { return active; }
44
 
    void iSetActive(bool b) { active=b; }
45
 
    bool GetForward() const { return forward; }
46
 
    void iSetForward(bool b) { forward=b; }
47
 
    wxString GetProviderNode() const { return providerNode; }
48
 
    void iSetProviderNode(const wxString &s) { providerNode=s; }
49
 
    wxString GetReceiverNode() const { return receiverNode; }
50
 
    void iSetReceiverNode(const wxString &s) { receiverNode=s; }
51
 
    long GetProviderId() const { return providerId; }
52
 
    void iSetProviderId(long l) { providerId=l; }
53
 
    long GetReceiverId() const { return receiverId; }
54
 
    void iSetReceiverId(long l) { receiverId=l; }
55
 
    bool GetIsSubscribed() { return isSubscribed; }
56
 
    void iSetIsSubscribed(bool b) { isSubscribed=b; }
57
 
 
58
 
 
59
 
  
60
 
    bool CanCreate();
61
 
    bool CanDrop();
62
 
 
63
 
    bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
64
 
    wxString GetSql(ctlTree *browser);
65
 
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
38
        slSubscription(slSet *set, const wxString &newName = wxT(""));
 
39
 
 
40
        int GetIconId();
 
41
        void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
 
42
 
 
43
        bool WantDummyChild();
 
44
        bool RequireDropConfirm()
 
45
        {
 
46
                return true;
 
47
        }
 
48
 
 
49
        bool GetActive() const
 
50
        {
 
51
                return active;
 
52
        }
 
53
        void iSetActive(bool b)
 
54
        {
 
55
                active = b;
 
56
        }
 
57
        bool GetForward() const
 
58
        {
 
59
                return forward;
 
60
        }
 
61
        void iSetForward(bool b)
 
62
        {
 
63
                forward = b;
 
64
        }
 
65
        wxString GetProviderNode() const
 
66
        {
 
67
                return providerNode;
 
68
        }
 
69
        void iSetProviderNode(const wxString &s)
 
70
        {
 
71
                providerNode = s;
 
72
        }
 
73
        wxString GetReceiverNode() const
 
74
        {
 
75
                return receiverNode;
 
76
        }
 
77
        void iSetReceiverNode(const wxString &s)
 
78
        {
 
79
                receiverNode = s;
 
80
        }
 
81
        long GetProviderId() const
 
82
        {
 
83
                return providerId;
 
84
        }
 
85
        void iSetProviderId(long l)
 
86
        {
 
87
                providerId = l;
 
88
        }
 
89
        long GetReceiverId() const
 
90
        {
 
91
                return receiverId;
 
92
        }
 
93
        void iSetReceiverId(long l)
 
94
        {
 
95
                receiverId = l;
 
96
        }
 
97
        bool GetIsSubscribed()
 
98
        {
 
99
                return isSubscribed;
 
100
        }
 
101
        void iSetIsSubscribed(bool b)
 
102
        {
 
103
                isSubscribed = b;
 
104
        }
 
105
 
 
106
 
 
107
 
 
108
        bool CanCreate();
 
109
        bool CanDrop();
 
110
 
 
111
        bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
 
112
        wxString GetSql(ctlTree *browser);
 
113
        pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
66
114
 
67
115
private:
68
 
    bool active, forward, isSubscribed;
69
 
    long providerId, receiverId;
70
 
    wxString providerNode, receiverNode;
 
116
        bool active, forward, isSubscribed;
 
117
        long providerId, receiverId;
 
118
        wxString providerNode, receiverNode;
71
119
};
72
120
 
73
121
#endif