1 #ifndef INSPIRCD_SQLUTILS
2 #define INSPIRCD_SQLUTILS
6 #define SQLUTILAU "SQLutil AssociateUser"
7 #define SQLUTILAC "SQLutil AssociateChan"
8 #define SQLUTILUA "SQLutil UnAssociate"
9 #define SQLUTILGU "SQLutil GetAssocUser"
10 #define SQLUTILGC "SQLutil GetAssocChan"
11 #define SQLUTILSUCCESS "You shouldn't be reading this (success)"
13 class AssociateUser : public Request
19 AssociateUser(Module* s, Module* d, unsigned long i, userrec* u)
20 : Request(SQLUTILAU, s, d), id(i), user(u)
31 class AssociateChan : public Request
37 AssociateChan(Module* s, Module* d, unsigned long i, chanrec* u)
38 : Request(SQLUTILAC, s, d), id(i), chan(u)
49 class UnAssociate : public Request
54 UnAssociate(Module* s, Module* d, unsigned long i)
55 : Request(SQLUTILUA, s, d), id(i)
66 class GetAssocUser : public Request
72 GetAssocUser(Module* s, Module* d, unsigned long i)
73 : Request(SQLUTILGU, s, d), id(i), user(NULL)
84 class GetAssocChan : public Request
90 GetAssocChan(Module* s, Module* d, unsigned long i)
91 : Request(SQLUTILGC, s, d), id(i), chan(NULL)