32
32
static constexpr int notifyNoteComment = 2;
33
33
static constexpr int notifyNoteDelete = 3;
34
34
static constexpr int notifyMarkNoteForDeletion = 4;
35
int createNote (string bible, int book, int chapter, int verse, string summary, string contents, bool raw);
36
void setContent (int identifier, const string& content);
37
void addComment (int identifier, const string& comment);
38
void set_summary (int identifier, const string& summary);
35
int createNote (std::string bible, int book, int chapter, int verse, std::string summary, std::string contents, bool raw);
36
void setContent (int identifier, const std::string& content);
37
void addComment (int identifier, const std::string& comment);
38
void set_summary (int identifier, const std::string& summary);
39
39
void subscribe (int identifier);
40
40
void unsubscribe (int identifier);
41
void assignUser (int identifier, const string& user);
42
void unassignUser (int identifier, const string& user);
43
void setStatus (int identifier, const string& status);
44
void setPassages (int identifier, const vector <Passage> & passages);
41
void assignUser (int identifier, const std::string& user);
42
void unassignUser (int identifier, const std::string& user);
43
void setStatus (int identifier, const std::string& status);
44
void setPassages (int identifier, const std::vector <Passage> & passages);
45
45
void setRawSeverity (int identifier, int severity);
46
void setBible (int identifier, const string& bible);
46
void setBible (int identifier, const std::string& bible);
47
47
void markForDeletion (int identifier);
48
48
void unmarkForDeletion (int identifier);
49
49
void erase (int identifier);
50
50
void handlerNewNote (int identifier);
51
51
void handlerAddComment (int identifier);
52
void handlerAssignNote (int identifier, const string& user);
52
void handlerAssignNote (int identifier, const std::string& user);
53
53
void handlerMarkNoteForDeletion (int identifier);
54
54
void handlerDeleteNote (int identifier);
55
bool handleEmailNew (string from, string subject, string body);
56
bool handleEmailComment (string from, string subject, string body);
57
string generalBibleName ();
55
bool handleEmailNew (std::string from, std::string subject, std::string body);
56
bool handleEmailComment (std::string from, std::string subject, std::string body);
57
std::string generalBibleName ();
59
59
void * webserver_request {nullptr};
60
60
void notifyUsers (int identifier, int notification);
61
void emailUsers (int identifier, const string& label, string bible, const vector <string> & users, bool postpone);
61
void emailUsers (int identifier, const std::string& label, std::string bible, const std::vector <std::string> & users, bool postpone);
64
64
void notes_logic_maintain_note_assignees (bool force);