summaryrefslogtreecommitdiff
path: root/src/ParserClass/FileManContainer/Website.hpp
blob: cb293d4613792aa9b1e181030ffeb7b3e80bcb92 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
 * @file Website.hpp
 * @brief Website class definitions
 * @author manzerbredes
 * @date 11 Mars 2015
 *
 * Contain all definitions of Website class.
 *
 */

#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>
#include "AbstractIDManager.hpp"

/**
 * @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 AbstractIDManager {


    public:

        Website();

        /**
        * @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);


      /**
        * @brief Equality comparator
        */
        bool operator==(const Website& website) const;

    private:

        std::string title;          ///< Title of 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