aboutsummaryrefslogtreecommitdiff
path: root/sword.h
diff options
context:
space:
mode:
Diffstat (limited to 'sword.h')
-rw-r--r--sword.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sword.h b/sword.h
new file mode 100644
index 0000000..aa52c13
--- /dev/null
+++ b/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 defaultMod;
+
+};
+
+struct config {
+ int chapter;
+ std::string book;
+ std::string bookFull;
+ int maxChapter;
+ std::string version;
+};