|
Revision 1976, 0.9 KB
(checked in by ahu, 2 years ago)
|
|
big batch of 'using namespace std;' removal
|
| Line | |
|---|
| 1 | #ifndef MYDNSBACKEND_HH |
|---|
| 2 | #define MYDNSBACKEND_HH |
|---|
| 3 | |
|---|
| 4 | #include <string> |
|---|
| 5 | #include <map> |
|---|
| 6 | |
|---|
| 7 | #include "namespaces.hh" |
|---|
| 8 | |
|---|
| 9 | #include <modules/gmysqlbackend/smysql.hh> |
|---|
| 10 | |
|---|
| 11 | class MyDNSBackend : public DNSBackend |
|---|
| 12 | { |
|---|
| 13 | public: |
|---|
| 14 | MyDNSBackend(const string &suffix=""); |
|---|
| 15 | ~MyDNSBackend(); |
|---|
| 16 | MyDNSBackend *parent; |
|---|
| 17 | |
|---|
| 18 | void lookup(const QType &, const string &qdomain, DNSPacket *p=0, int zoneId=-1); |
|---|
| 19 | bool list(const string &target, int domain_id); |
|---|
| 20 | bool get(DNSResourceRecord &r); |
|---|
| 21 | bool getSOA(const string& name, SOAData& soadata, DNSPacket*); |
|---|
| 22 | |
|---|
| 23 | private: |
|---|
| 24 | void Query(const string& query); |
|---|
| 25 | SMySQL *d_db; |
|---|
| 26 | |
|---|
| 27 | string d_qname; |
|---|
| 28 | string d_rrtable; |
|---|
| 29 | string d_soatable; |
|---|
| 30 | string d_soawhere; |
|---|
| 31 | string d_rrwhere; |
|---|
| 32 | string d_origin; |
|---|
| 33 | unsigned int d_minimum; |
|---|
| 34 | |
|---|
| 35 | }; |
|---|
| 36 | #endif /* MYDNSBACKEND_HH */ |
|---|