aboutsummaryrefslogtreecommitdiff
path: root/sword.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-11-07 09:30:53 -0500
committerYour Name <you@example.com>2020-11-07 09:30:53 -0500
commit89a449c2ab9d736c1f03c78b745e814424e01360 (patch)
tree25c4d03bd39a5ddbe1b7f28713e82bf174a29216 /sword.h
downloadbiblereader-89a449c2ab9d736c1f03c78b745e814424e01360.tar.gz
biblereader-89a449c2ab9d736c1f03c78b745e814424e01360.tar.bz2
biblereader-89a449c2ab9d736c1f03c78b745e814424e01360.zip
Initial commit
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;
+};