aboutsummaryrefslogtreecommitdiff
path: root/sword.h
blob: 1cd7f61a11fc99525833830f45b281394d27d5d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
};