ref #28 Created class that collects information about Owner

This commit is contained in:
IgorekLoschinin 2021-04-17 16:48:50 +03:00
parent 7b6904fa07
commit 011c6c33dc
3 changed files with 78 additions and 17 deletions

View File

@ -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;
};
};

View File

@ -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;
}
};

View File

@ -0,0 +1,51 @@
#ifndef OWNER_H
#define OWNER_H
#include "CopyrighFixer_global.h"
#include <QString>
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