summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-23 22:53:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-23 22:53:57 (GMT)
commitdf72f2580f68a7d0055fcf20dcd65c0be90c52dd (patch)
treeada3c6d3fdc2009f5236ec2a39d661c0bfaaf3e5 /src/search
parent2bd571e1598e6baffc717bcb086d89d01929604b (diff)
downloadpowder-df72f2580f68a7d0055fcf20dcd65c0be90c52dd.zip
powder-df72f2580f68a7d0055fcf20dcd65c0be90c52dd.tar.gz
Better element buttons, Save preview WIP
Diffstat (limited to 'src/search')
-rw-r--r--src/search/Save.h25
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