34 lines
640 B
C++
Executable File
34 lines
640 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <LtsLicence/ltslicence_export.h>
|
|
#include <QString>
|
|
#include <QVector>
|
|
#include <QDateTime>
|
|
|
|
namespace LtsLicence
|
|
{
|
|
|
|
struct LTSLICENCE_EXPORT Licence
|
|
{
|
|
QString name;
|
|
bool ignoreMaxCount = false;
|
|
bool ignoreExpiration = false;
|
|
int maxCount = 0;
|
|
QDateTime expiration;
|
|
int licenceRefCount = 0;
|
|
|
|
QString toString() const;
|
|
};
|
|
|
|
|
|
|
|
LTSLICENCE_EXPORT QVector<Licence> readLicences(const QByteArray &unencryptedXmlData);
|
|
|
|
|
|
|
|
LTSLICENCE_EXPORT QByteArray writeUnencryptedLicences(const QVector<Licence> &licences);
|
|
}
|