~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/edbPackageFunction.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////
2
 
//
3
 
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: edbPackageFunction.h 6930 2008-01-02 00:10:01Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
7
 
//
8
 
// edbPackageFunction.h - EnterpriseDB Package member function
9
 
//
10
 
//////////////////////////////////////////////////////////////////////////
11
 
 
12
 
#ifndef EDBPACKAGEFUNCTION_H
13
 
#define EDBPACKAGEFUNCTION_H
14
 
 
15
 
#include "edbPackage.h"
16
 
 
17
 
class pgCollection;
18
 
class edbPackageFunction;
19
 
 
20
 
class edbPackageFunctionFactory : public edbPackageObjFactory
21
 
{
22
 
public:
23
 
    edbPackageFunctionFactory(const wxChar *tn=0, const wxChar *ns=0, const wxChar *nls=0, char **img=0);
24
 
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent) { return 0; };
25
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
26
 
 
27
 
    edbPackageFunction *AppendFunctions(pgObject *obj, edbPackage *package, ctlTree *browser, const wxString &restriction);
28
 
};
29
 
extern edbPackageFunctionFactory packageFunctionFactory;
30
 
 
31
 
 
32
 
class edbPackageFunction : public edbPackageObject
33
 
{
34
 
public:
35
 
    edbPackageFunction(edbPackage *newPackage, const wxString& newName = wxT(""));
36
 
    edbPackageFunction(edbPackage *newPackage, pgaFactory &factory, const wxString& newName = wxT(""));
37
 
 
38
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
39
 
 
40
 
        wxString GetSql(ctlTree *browser);
41
 
 
42
 
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
43
 
 
44
 
    virtual bool GetIsProcedure() const { return false; }
45
 
 
46
 
    wxString GetFullName();
47
 
    wxString GetArgListWithNames();
48
 
    wxString GetArgSigList();
49
 
    wxArrayString &GetArgNamesArray() { return argNamesArray; }
50
 
    void iAddArgName(const wxString &s) { argNamesArray.Add(s); }
51
 
    wxArrayString &GetArgTypesArray() { return argTypesArray; }
52
 
    void iAddArgType(const wxString &s) { argTypesArray.Add(s); }
53
 
    wxArrayString &GetArgModesArray() { return argModesArray; }
54
 
    void iAddArgMode(const wxString &s) { argModesArray.Add(s); }
55
 
    wxString GetReturnType() const { return returnType; }
56
 
    void iSetReturnType(const wxString& s) { returnType = s; }
57
 
    wxString GetSource() const { return source; }
58
 
    void iSetSource(const wxString& s) { source = s; }
59
 
    wxString GetVisibility() const { return visibility; }
60
 
    void iSetVisibility(const wxString& s) { visibility = s; }
61
 
    long GetArgCount() const { return argCount; }
62
 
    void iSetArgCount(long ac) { argCount = ac; }
63
 
 
64
 
    bool CanCreate() { return false; }
65
 
 
66
 
private:
67
 
    long argCount;
68
 
    wxArrayString argNamesArray, argTypesArray, argModesArray;
69
 
    wxString returnType, source, visibility;
70
 
};
71
 
 
72
 
class edbPackageProcedureFactory : public edbPackageFunctionFactory
73
 
{
74
 
public:
75
 
    edbPackageProcedureFactory();
76
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
77
 
};
78
 
extern edbPackageProcedureFactory packageProcedureFactory;
79
 
 
80
 
 
81
 
class edbPackageProcedure : public edbPackageFunction
82
 
{
83
 
public:
84
 
    edbPackageProcedure(edbPackage *newPackage, const wxString& newName=wxT(""));
85
 
    wxString GetFullName();
86
 
 
87
 
    bool GetIsProcedure() const { return true; }
88
 
 
89
 
    wxString GetSql(ctlTree *browser);
90
 
};
91
 
 
92
 
 
93
 
#endif
 
1
//////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pgAdmin III - PostgreSQL Tools
 
4
// RCS-ID:      $Id: edbPackageFunction.h 7758 2009-03-26 20:49:59Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// edbPackageFunction.h - EnterpriseDB Package member function
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef EDBPACKAGEFUNCTION_H
 
13
#define EDBPACKAGEFUNCTION_H
 
14
 
 
15
#include "edbPackage.h"
 
16
 
 
17
class pgCollection;
 
18
class edbPackageFunction;
 
19
 
 
20
class edbPackageFunctionFactory : public edbPackageObjFactory
 
21
{
 
22
public:
 
23
    edbPackageFunctionFactory(const wxChar *tn=0, const wxChar *ns=0, const wxChar *nls=0, const char **img=0);
 
24
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent) { return 0; };
 
25
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
26
 
 
27
    edbPackageFunction *AppendFunctions(pgObject *obj, edbPackage *package, ctlTree *browser, const wxString &restriction);
 
28
};
 
29
extern edbPackageFunctionFactory packageFunctionFactory;
 
30
 
 
31
 
 
32
class edbPackageFunction : public edbPackageObject
 
33
{
 
34
public:
 
35
    edbPackageFunction(edbPackage *newPackage, const wxString& newName = wxT(""));
 
36
    edbPackageFunction(edbPackage *newPackage, pgaFactory &factory, const wxString& newName = wxT(""));
 
37
 
 
38
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
 
39
 
 
40
        wxString GetSql(ctlTree *browser);
 
41
 
 
42
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
43
 
 
44
    virtual bool GetIsProcedure() const { return false; }
 
45
 
 
46
    wxString GetFullName();
 
47
    wxString GetArgListWithNames();
 
48
    wxString GetArgSigList();
 
49
 
 
50
    wxArrayString &GetArgNamesArray() { return argNamesArray; }
 
51
    void iAddArgName(const wxString &s) { argNamesArray.Add(s); }
 
52
    wxArrayString &GetArgTypesArray() { return argTypesArray; }
 
53
    void iAddArgType(const wxString &s) { argTypesArray.Add(s); }
 
54
    wxArrayString &GetArgModesArray() { return argModesArray; }
 
55
    void iAddArgMode(const wxString &s) { argModesArray.Add(s); }
 
56
    wxArrayString &GetArgDefsArray() { return argDefsArray; }
 
57
    void iAddArgDef(const wxString &s) { argDefsArray.Add(s); }
 
58
 
 
59
    wxString GetReturnType() const { return returnType; }
 
60
    void iSetReturnType(const wxString& s) { returnType = s; }
 
61
    wxString GetSource() const { return source; }
 
62
    void iSetSource(const wxString& s) { source = s; }
 
63
    wxString GetVisibility() const { return visibility; }
 
64
    void iSetVisibility(const wxString& s) { visibility = s; }
 
65
    long GetArgCount() const { return argCount; }
 
66
    void iSetArgCount(long ac) { argCount = ac; }
 
67
 
 
68
    bool CanCreate() { return false; }
 
69
 
 
70
private:
 
71
    long argCount;
 
72
    wxArrayString argNamesArray, argTypesArray, argModesArray, argDefsArray;
 
73
    wxString returnType, source, visibility;
 
74
};
 
75
 
 
76
class edbPackageProcedureFactory : public edbPackageFunctionFactory
 
77
{
 
78
public:
 
79
    edbPackageProcedureFactory();
 
80
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
81
};
 
82
extern edbPackageProcedureFactory packageProcedureFactory;
 
83
 
 
84
 
 
85
class edbPackageProcedure : public edbPackageFunction
 
86
{
 
87
public:
 
88
    edbPackageProcedure(edbPackage *newPackage, const wxString& newName=wxT(""));
 
89
    wxString GetFullName();
 
90
 
 
91
    bool GetIsProcedure() const { return true; }
 
92
 
 
93
    wxString GetSql(ctlTree *browser);
 
94
};
 
95
 
 
96
 
 
97
#endif