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
// slSubscription.h PostgreSQL Slony-I Node
18
18
class slSubscriptionFactory : public slSetObjFactory
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; }
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()
26
return exportedIconId;
29
32
extern slSubscriptionFactory subscriptionFactory;
32
35
class slSubscription : public slSetObject
35
slSubscription(slSet *set, const wxString& newName = wxT(""));
38
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
40
bool WantDummyChild();
41
bool RequireDropConfirm() { return true; }
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; }
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(""));
41
void ShowTreeDetail(ctlTree *browser, frmMain *form = 0, ctlListView *properties = 0, ctlSQLBox *sqlPane = 0);
43
bool WantDummyChild();
44
bool RequireDropConfirm()
49
bool GetActive() const
53
void iSetActive(bool b)
57
bool GetForward() const
61
void iSetForward(bool b)
65
wxString GetProviderNode() const
69
void iSetProviderNode(const wxString &s)
73
wxString GetReceiverNode() const
77
void iSetReceiverNode(const wxString &s)
81
long GetProviderId() const
85
void iSetProviderId(long l)
89
long GetReceiverId() const
93
void iSetReceiverId(long l)
97
bool GetIsSubscribed()
101
void iSetIsSubscribed(bool b)
111
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
112
wxString GetSql(ctlTree *browser);
113
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
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;