diff options
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/Save.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/search/Save.h b/src/search/Save.h index 91a1ec4..0a011ab 100644 --- a/src/search/Save.h +++ b/src/search/Save.h @@ -10,19 +10,40 @@ class Save private: int id; int votesUp, votesDown; + unsigned char * data; public: Save(int _id, int _votesUp, int _votesDown, string _userName, string _name): id(_id), votesUp(_votesUp), votesDown(_votesDown), userName(_userName), - name(_name) + name(_name), + Description("No description provided"), + Date("0/0/0"), + Published(true) + { + } + + Save(int _id, int _votesUp, int _votesDown, string _userName, string _name, string description_, string date_, bool published_): + id(_id), + votesUp(_votesUp), + votesDown(_votesDown), + userName(_userName), + name(_name), + Description(description_), + Date(date_), + Published(published_) { } string userName; string name; + string Description; + string Date; + + bool Published; + void SetName(string name){ this->name = name; } string GetName(){ return name; } @@ -37,6 +58,8 @@ public: void SetVotesDown(int votesDown){ this->votesDown = votesDown; } int GetVotesDown(){ return votesDown; } + + unsigned char * GetData() { return data; } }; #endif // SAVE_H |
