-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbible.h
More file actions
60 lines (48 loc) · 825 Bytes
/
bible.h
File metadata and controls
60 lines (48 loc) · 825 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef BIBLE_H
#define BIBLE_H
#include <QString>
#include <QList>
#include <QRegularExpression>
class Verse
{
public:
Verse();
int num;
QString text;
};
class Chapter
{
public:
Chapter();
int num;
QString path;
QList<Verse> verses;
void addVerse(Verse v);
void clear();
};
class Book
{
public:
Book();
QString name;
QString filePath;
int chapterCount;
int bookId;
QList<Chapter> chapters;
void setBookId(QString fp);
void addChapter(Chapter c);
void clear();
};
class Bible
{
public:
Bible();
QString name;
QString abbr;
QString copyright;
QString chapterDelim;
QString verseDelim;
QList<Book> books;
void addBook(Book book);
};
#endif // BIBLE_H