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

« back to all changes in this revision

Viewing changes to pgadmin/include/db/pgQueryThread.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
// pgQueryThread.h - PostgreSQL threaded query class header
17
17
class pgQueryThread : public wxThread
18
18
{
19
19
public:
20
 
    pgQueryThread(pgConn *_conn, const wxString &qry, int resultToRetrieve=-1, wxWindow *_caller=0, long eventId=0, void *_data=0);
21
 
    ~pgQueryThread();
 
20
        pgQueryThread(pgConn *_conn, const wxString &qry, int resultToRetrieve = -1, wxWindow *_caller = 0, long eventId = 0, void *_data = 0);
 
21
        ~pgQueryThread();
22
22
 
23
 
    virtual void *Entry();
24
 
    bool DataValid() const { return dataSet != NULL; }
25
 
    pgSet *DataSet() { return dataSet; }
26
 
    int ReturnCode() const { return rc; }
27
 
    long RowsInserted() const { return rowsInserted; }
28
 
    OID InsertedOid() const { return insertedOid; }
29
 
    wxString GetMessagesAndClear();
30
 
    void appendMessage(const wxString &str);
 
23
        virtual void *Entry();
 
24
        bool DataValid() const
 
25
        {
 
26
                return dataSet != NULL;
 
27
        }
 
28
        pgSet *DataSet()
 
29
        {
 
30
                return dataSet;
 
31
        }
 
32
        int ReturnCode() const
 
33
        {
 
34
                return rc;
 
35
        }
 
36
        long RowsInserted() const
 
37
        {
 
38
                return rowsInserted;
 
39
        }
 
40
        OID InsertedOid() const
 
41
        {
 
42
                return insertedOid;
 
43
        }
 
44
        wxString GetMessagesAndClear();
 
45
        void appendMessage(const wxString &str);
31
46
 
32
47
private:
33
 
    int rc;
34
 
    int resultToRetrieve;
35
 
    long rowsInserted;
36
 
    OID insertedOid;
37
 
 
38
 
    wxString query;
39
 
    pgConn *conn;
40
 
    PGresult *result;
41
 
    wxString messages;
42
 
    pgSet *dataSet;
43
 
    wxCriticalSection criticalSection;
44
 
 
45
 
    void *data;
46
 
    wxWindow *caller;
47
 
    long eventId;
48
 
 
49
 
    int execute();
50
 
    int raiseEvent(int retval=0);
 
48
        int rc;
 
49
        int resultToRetrieve;
 
50
        long rowsInserted;
 
51
        OID insertedOid;
 
52
 
 
53
        wxString query;
 
54
        pgConn *conn;
 
55
        PGresult *result;
 
56
        wxString messages;
 
57
        pgSet *dataSet;
 
58
        wxCriticalSection criticalSection;
 
59
 
 
60
        void *data;
 
61
        wxWindow *caller;
 
62
        long eventId;
 
63
 
 
64
        int execute();
 
65
        int raiseEvent(int retval = 0);
51
66
};
52
67
 
53
68
#endif