aboutsummaryrefslogtreecommitdiff
path: root/src/sword.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sword.h')
-rw-r--r--src/sword.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sword.h b/src/sword.h
new file mode 100644
index 0000000..1cd7f61
--- /dev/null
+++ b/src/sword.h
@@ -0,0 +1,29 @@
+#pragma once
+#include <gtkmm.h>
+#include <vector>
+
+using namespace::std;
+
+class Sword {
+public:
+ Sword();
+ virtual ~Sword();
+
+ std::vector<std::string> getModules(void);
+ std::vector<std::string> getBooks(void);
+ void setModule(std::string modName);
+ void fillBuffer(std::string ref, Glib::RefPtr<Gtk::TextBuffer> buf);
+ void getConfig(std::string book, int chapter, struct config *conf);
+
+protected:
+ std::string currMod;
+
+};
+
+struct config {
+ int chapter;
+ std::string book;
+ std::string bookFull;
+ int maxChapter;
+ std::string version;
+};