diff --git a/src/CopyrighFixer/CopyrighFixer/copyrighfixer.h b/src/CopyrighFixer/CopyrighFixer/copyrighfixer.h index 4ba15ec..1511d5c 100644 --- a/src/CopyrighFixer/CopyrighFixer/copyrighfixer.h +++ b/src/CopyrighFixer/CopyrighFixer/copyrighfixer.h @@ -6,7 +6,6 @@ //# #include "CopyrighFixer_global.h" -#include "QString" inline void initCopyrighFixerResources() { Q_INIT_RESOURCE(CopyrighFixer); } @@ -15,20 +14,4 @@ namespace CopyrighFixer { bool CopyrighFixer_EXPORT init(); -/** - * @brief The InfoOwner class for collect information about owner. - */ -class CopyrighFixer_EXPORT Owner { - -public: - - Owner(); - -private: - - QString name; - QString timeRange; - -}; - }; diff --git a/src/CopyrighFixer/CopyrighFixer/owner.cpp b/src/CopyrighFixer/CopyrighFixer/owner.cpp new file mode 100644 index 0000000..4e45561 --- /dev/null +++ b/src/CopyrighFixer/CopyrighFixer/owner.cpp @@ -0,0 +1,27 @@ +#include "owner.h" + +namespace CopyrighFixer { + Owner::Owner() + { + + } + + void Owner::setName(const QString &ownerName) { + Owner::name = ownerName; + } + + QString Owner::getOwnerName() + { + return Owner::name; + } + + void Owner::setTimeRange(const QString &interval) { + timeRange = interval; + } + + QString Owner::getTimeRange() + { + return Owner::timeRange; + } + +}; diff --git a/src/CopyrighFixer/CopyrighFixer/owner.h b/src/CopyrighFixer/CopyrighFixer/owner.h new file mode 100644 index 0000000..8158695 --- /dev/null +++ b/src/CopyrighFixer/CopyrighFixer/owner.h @@ -0,0 +1,51 @@ +#ifndef OWNER_H +#define OWNER_H + +#include "CopyrighFixer_global.h" +#include + +namespace CopyrighFixer{ + +/** + * @brief The Owner class for collect information about owner. + */ +class CopyrighFixer_EXPORT Owner +{ +public: + Owner(); + +private: + QString name; + QString timeRange; + +public: + + /** + * @brief setName + * @param ownerName This is name of the owner. + */ + void setName(const QString &ownerName); + + /** + * @brief getOwnerName + * @return the owner name. + */ + QString getOwnerName(); + + /** + * @brief setTimeRange + * @param interval This is a string value indicating the date of ownership of the file. + */ + void setTimeRange(const QString &interval); + + /** + * @brief getTimeRange + * @return the time interval when the file was modified + */ + QString getTimeRange(); + +}; + +}; + +#endif // OWNER_H