summaryrefslogtreecommitdiff
path: root/ParserClass/FileManContainer
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-11 16:12:56 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-11 16:12:56 +0400
commitc93be89ea6060537340028c7f012fe8f0e2d2a49 (patch)
tree72294254aefb05d52e930497f58ac233677e62ef /ParserClass/FileManContainer
parentaa249b570082cc60d79661ebafcb9dd18527c129 (diff)
Begin parser...
Diffstat (limited to 'ParserClass/FileManContainer')
-rw-r--r--ParserClass/FileManContainer/Website.cpp37
-rw-r--r--ParserClass/FileManContainer/Website.hpp55
2 files changed, 91 insertions, 1 deletions
diff --git a/ParserClass/FileManContainer/Website.cpp b/ParserClass/FileManContainer/Website.cpp
index 94fbc04..0d25344 100644
--- a/ParserClass/FileManContainer/Website.cpp
+++ b/ParserClass/FileManContainer/Website.cpp
@@ -7,3 +7,40 @@
* Contain all implementations of Website class.
*
*/
+
+
+#include "Website.hpp"
+
+std::string Website::getTitle(){
+ return this->title;
+}
+std::string Website::getUrl(){
+ return this->url;
+}
+std::string Website::getUsername(){
+ return this->username;
+}
+std::string Website::getPassword(){
+ return this->password;
+}
+std::string Website::getDescription(){
+ return this->description;
+}
+
+
+
+void Website::setTitle(std::string title){
+ this->title = title;
+}
+void Website::setUrl(std::string url){
+ this->url = url;
+}
+void Website::setUsername(std::string username){
+ this->username = username;
+}
+void Website::setPassword(std::string password){
+ this->password = password;
+}
+void Website::setDescription(std::string description){
+ this->description = description;
+}
diff --git a/ParserClass/FileManContainer/Website.hpp b/ParserClass/FileManContainer/Website.hpp
index 2e76df3..01c41f9 100644
--- a/ParserClass/FileManContainer/Website.hpp
+++ b/ParserClass/FileManContainer/Website.hpp
@@ -8,17 +8,70 @@
*
*/
+#ifndef __WEBSITE__
+#define __WEBSITE__
+#include <string>
+
+
+/**
+ * @class FileManIOFile FileManIOFile.hpp "/CryptClass/FileManIOFile.hpp"
+ * @brief Class for quick open and close encrypted file.
+ * @author manzerbredes
+ *
+ * -----File organisation-----
+ *
+ * 16 first bytes : md5 of decrypted file
+ * rest of the file : data encrypted (ASE for now)
+ *
+ */
+
+#include <string>
+
+
+
+/**
+ * @class Website Website.hpp "/ParserClass/FileManContainer/Website.hpp"
+ * @brief Class for quick open and close encrypted file.
+ * @author manzerbredes
+ *
+ * Container for website data.
+ *
+ */
class Website{
public:
+ /**
+ * @brief Containner getters.
+ */
+ std::string getTitle();
+ std::string getUrl();
+ std::string getUsername();
+ std::string getPassword();
+ std::string getDescription();
+ /**
+ * @brief Containner setters.
+ */
+ void setTitle(std::string title);
+ void setUrl(std::string url);
+ void setUsername(std::string username);
+ void setPassword(std::string password);
+ void setDescription(std::string description);
private:
-}
+ std::string title; ///< Title en the website
+ std::string url; ///< Url of the website
+ std::string username; ///< username of the account
+ std::string password; ///< password of the account
+ std::string description; ///< Description of the website
+};
+
+
+#endif