mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-26 17:54:42 +00:00
ref #28 Created class that collects information about Owner
This commit is contained in:
parent
7b6904fa07
commit
011c6c33dc
@ -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;
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
27
src/CopyrighFixer/CopyrighFixer/owner.cpp
Normal file
27
src/CopyrighFixer/CopyrighFixer/owner.cpp
Normal 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;
|
||||
}
|
||||
|
||||
};
|
51
src/CopyrighFixer/CopyrighFixer/owner.h
Normal file
51
src/CopyrighFixer/CopyrighFixer/owner.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user