-
Notifications
You must be signed in to change notification settings - Fork 0
/
SongDataUnit.h
58 lines (47 loc) · 1.37 KB
/
SongDataUnit.h
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
//---------------------------------------------------------------------------
#ifndef SongDataUnitH
#define SongDataUnitH
#include <Classes.hpp>
#include <iostream.h>
#include <fstream.h>
#include "Utils.h"
#include "Crypto.h"
#define MAX_SONG_LENGTH 1024
class SongData
{
private: // User declarations
int songLength;
public: // User declarations
SongData();
bool LoadSong(String FileName);
void SetBaseDir(String pBaseDir);
String getFileName(String book);
void getSpecificVerses(String verses);
String Decrypt(String lineBuffer);
String getBeginOfText();
void SendToSlaves();
void ReceiveAsSlave(String s);
void copySongText(String startVers, String endVers, String versSeparator);
int FindCoupletLinenr(String CoupletNumber, bool untilVerse);
int getSongLength();
void setSongLength(int i);
void SetText(String s);
void Transpose(String s);
void TextToNotepad();
String text[MAX_SONG_LENGTH];
String textCopy[MAX_SONG_LENGTH];
int songLengthCopy;
String copyRightText;
String ToneHeightText;
String fileName;
String shortFileNameAndVers;
String TitleText;
bool doDecrypt;
bool previewSong;
bool protectedSong;
static String Password;
String Tones;
};
String SongData::Password;
//---------------------------------------------------------------------------
#endif