Log Message:
-----------
some Slony-I stuff
Added Files:
-----------
pgadmin3/src/slony:
slFunctions.cpp (r1.1)
pgadmin3/src/slony/include:
slFunctions.h (r1.1)
--- /dev/null
+++ src/slony/slFunctions.cpp
@@ -0,0 +1,59 @@
+//////////////////////////////////////////////////////////////////////////
+//
+// pgAdmin III - PostgreSQL Tools
+// RCS-ID: $Id: slFunctions.cpp,v 1.1 2005/02/24 15:33:57 andreas Exp $
+// Copyright (C) 2002 - 2005, The pgAdmin Development Team
+// This software is released under the Artistic Licence
+//
+// slFunctions.cpp PostgreSQL Slony-I Functions
+//
+//////////////////////////////////////////////////////////////////////////
+
+
+// wxWindows headers
+#include <wx/wx.h>
+
+// App headers
+#include "pgAdmin3.h"
+#include "slCluster.h"
+#include "slSet.h"
+#include "slFunctions.h"
+
+
+bool slFunctions::MergeSet(wxFrame *frame, pgObject *obj)
+{
+ return true;
+}
+
+
+bool slFunctions::MoveSet(wxFrame *frame, pgObject *obj)
+{
+ return true;
+}
+
+
+bool slFunctions::Failover(wxFrame *frame, pgObject *obj)
+{
+ return true;
+}
+
+
+bool slFunctions::UpgradeNode(wxFrame *frame, pgObject *obj)
+{
+ return true;
+}
+
+
+bool slFunctions::RestartNode(wxFrame *frame, pgObject *obj)
+{
+ slCluster *cluster=(slCluster*)obj;
+
+ wxMessageDialog dlg(frame, wxString::Format(_("Restart node %s?"),
+ cluster->GetLocalNodeName()), _("Restart node"),
wxICON_EXCLAMATION|wxYES_NO|wxNO_DEFAULT);
+
+ if (dlg.ShowModal() != wxID_YES)
+ return true;
+
+ return cluster->GetDatabase()->ExecuteVoid(
+ wxT("NOTIFY ") + cluster->GetSchemaPrefix() + wxT("_Restart"));
+}
--- /dev/null
+++ src/slony/include/slFunctions.h
@@ -0,0 +1,21 @@
+//////////////////////////////////////////////////////////////////////////
+//
+// pgAdmin III - PostgreSQL Tools
+// RCS-ID: $Id: slFunctions.h,v 1.1 2005/02/24 15:33:57 andreas Exp $
+// Copyright (C) 2002 - 2005, The pgAdmin Development Team
+// This software is released under the Artistic Licence
+//
+// slFunctions.h PostgreSQL Slony-I Functions
+//
+//////////////////////////////////////////////////////////////////////////
+
+
+class slFunctions
+{
+public:
+ static bool MergeSet(wxFrame *frame, pgObject *obj);
+ static bool MoveSet(wxFrame *frame, pgObject *obj);
+ static bool Failover(wxFrame *frame, pgObject *obj);
+ static bool UpgradeNode(wxFrame *frame, pgObject *obj);
+ static bool RestartNode(wxFrame *frame, pgObject *obj);
+};
\ No newline at end of file
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend