Browse Source

begin actions

develop
Robin Thoni 8 years ago
parent
commit
bcfc20b288

+ 3
- 0
src/DBO/Actions/Action.h View File

@@ -6,6 +6,8 @@
6 6
 #define PDNS_SLAVE_ACTION_H
7 7
 
8 8
 # include <string>
9
+# include <memory>
10
+# include <vector>
9 11
 
10 12
 class Action
11 13
 {
@@ -23,5 +25,6 @@ private:
23 25
     std::string _domain;
24 26
 };
25 27
 
28
+typedef std::vector<std::shared_ptr<Action>> Actions;
26 29
 
27 30
 #endif //PDNS_SLAVE_ACTION_H

+ 14
- 0
src/DBO/Actions/ActionAddDomain.cpp View File

@@ -0,0 +1,14 @@
1
+//
2
+// Created by robin on 8/9/15.
3
+//
4
+
5
+#include "ActionAddDomain.h"
6
+
7
+ActionAddDomain::ActionAddDomain()
8
+{
9
+}
10
+
11
+const std::string ActionAddDomain::getSql() const
12
+{
13
+    return "";
14
+}

+ 19
- 0
src/DBO/Actions/ActionAddDomain.h View File

@@ -0,0 +1,19 @@
1
+//
2
+// Created by robin on 8/9/15.
3
+//
4
+
5
+#ifndef PDNS_SLAVE_ACTIONADDDOMAIN_H
6
+#define PDNS_SLAVE_ACTIONADDDOMAIN_H
7
+
8
+# include "DBO/Actions/Action.h"
9
+
10
+class ActionAddDomain : public Action
11
+{
12
+public:
13
+    ActionAddDomain();
14
+
15
+    const std::string getSql() const override;
16
+};
17
+
18
+
19
+#endif //PDNS_SLAVE_ACTIONADDDOMAIN_H

+ 14
- 0
src/DBO/Actions/ActionDelDomain.cpp View File

@@ -0,0 +1,14 @@
1
+//
2
+// Created by robin on 8/9/15.
3
+//
4
+
5
+#include "ActionDelDomain.h"
6
+
7
+ActionDelDomain::ActionDelDomain()
8
+{
9
+}
10
+
11
+const std::string ActionDelDomain::getSql() const
12
+{
13
+    return "";
14
+}

+ 19
- 0
src/DBO/Actions/ActionDelDomain.h View File

@@ -0,0 +1,19 @@
1
+//
2
+// Created by robin on 8/9/15.
3
+//
4
+
5
+#ifndef PDNS_SLAVE_ACTIONDELDOMAIN_H
6
+#define PDNS_SLAVE_ACTIONDELDOMAIN_H
7
+
8
+# include "DBO/Actions/Action.h"
9
+
10
+class ActionDelDomain : public Action
11
+{
12
+public:
13
+    ActionDelDomain();
14
+
15
+    const std::string getSql() const override;
16
+};
17
+
18
+
19
+#endif //PDNS_SLAVE_ACTIONDELDOMAIN_H

Loading…
Cancel
Save