30 lines
599 B
C++
30 lines
599 B
C++
|
|
|
|
#pragma once
|
|
|
|
#include "ltslicence_export.h"
|
|
|
|
#include <QtCore/QDateTime>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVector>
|
|
|
|
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);
|
|
} // namespace LtsLicence
|