]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_sql.h
Updated copyrights in headers etc using perl inplace edit
[user/henk/code/inspircd.git] / src / modules / extra / m_sql.h
index 0620dedf7becf72a7dbe30e84799edce77f311f2..fd02c456b6fe8c15e7d30f90f2aea8141b6284fd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __M_SQL_H__
 #define __M_SQL_H__
 
+using namespace std;
+
 #include <string>
 #include <vector>
 
@@ -9,6 +11,8 @@
 #define SQL_ROW    3
 #define SQL_ERROR  4
 #define SQL_END    5
+#define SQL_DONE   6
+#define SQL_OK     7
 
 // SQLRequest is inherited from a basic Request object
 // so that we can neatly pass information around the
@@ -21,6 +25,13 @@ class SQLRequest
        int request_type;
        std::string thisquery;
  public:
+       SQLRequest(int qt, long cid, std::string query)
+       {
+               this->SetQueryType(qt);
+               this->SetConnID(cid);
+               this->SetQuery(query);
+       }
+
        void SetConnID(long id)
        {
                conn_id = id;