2019-09-23 16:46:57 +03:00
|
|
|
//#
|
|
|
|
//# Copyright (C) 2018-2019 QuasarApp.
|
|
|
|
//# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
//# of this license document, but changing it is not allowed.
|
|
|
|
//#
|
|
|
|
|
2019-04-05 14:23:42 +03:00
|
|
|
#ifndef LIBINFO_H
|
|
|
|
#define LIBINFO_H
|
2019-09-03 18:15:05 +03:00
|
|
|
#include "deploycore.h"
|
2019-04-05 14:23:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
class DEPLOYSHARED_EXPORT LibInfo {
|
|
|
|
private:
|
|
|
|
QSet<LibInfo> allDep;
|
|
|
|
|
|
|
|
Platform platform = Platform::UnknownPlatform;
|
|
|
|
QString name;
|
|
|
|
QString path;
|
|
|
|
QSet<QString> dependncies;
|
2019-09-22 16:46:07 +03:00
|
|
|
QString qtPath;
|
2019-08-24 17:56:42 +03:00
|
|
|
LibPriority priority = NotFile;
|
2019-04-05 14:23:42 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
friend bool operator == (const LibInfo& left ,const LibInfo& right);
|
|
|
|
friend bool operator > (const LibInfo& left, const LibInfo& right);
|
|
|
|
friend bool operator < (const LibInfo& left, const LibInfo& right);
|
|
|
|
friend bool operator >= (const LibInfo& left, const LibInfo& right);
|
|
|
|
friend bool operator <= (const LibInfo& left, const LibInfo& right);
|
|
|
|
|
|
|
|
QString fullPath() const;
|
|
|
|
|
|
|
|
void clear();
|
|
|
|
|
|
|
|
bool isValid() const;
|
|
|
|
|
|
|
|
friend class DependenciesScanner;
|
|
|
|
const QSet<LibInfo>& getAllDep() const;
|
|
|
|
Platform getPlatform() const;
|
|
|
|
void setPlatform(const Platform &value);
|
|
|
|
QString getName() const;
|
|
|
|
void setName(const QString &value);
|
|
|
|
QString getPath() const;
|
|
|
|
void setPath(const QString &value);
|
|
|
|
QSet<QString> getDependncies() const;
|
|
|
|
void setDependncies(const QSet<QString> &value);
|
|
|
|
void addDependncies(const QString &value);
|
|
|
|
void removeDependncies(const QString &value);
|
|
|
|
|
2019-08-24 17:56:42 +03:00
|
|
|
LibPriority getPriority() const;
|
|
|
|
void setPriority(const LibPriority &value);
|
2019-09-22 16:46:07 +03:00
|
|
|
QString getQtPath() const;
|
|
|
|
void setQtPath(const QString &value);
|
2019-04-05 14:23:42 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
uint qHash(const LibInfo& info);
|
|
|
|
#endif // LIBINFO_H
|