mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 10:44:33 +00:00
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#ifndef LIBINFO_H
|
|
#define LIBINFO_H
|
|
#include "deploycore.h"
|
|
|
|
|
|
class DEPLOYSHARED_EXPORT LibInfo {
|
|
private:
|
|
QSet<LibInfo> allDep;
|
|
|
|
Platform platform = Platform::UnknownPlatform;
|
|
QString name;
|
|
QString path;
|
|
QSet<QString> dependncies;
|
|
LibPriority priority = NotFile;
|
|
|
|
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);
|
|
|
|
LibPriority getPriority() const;
|
|
void setPriority(const LibPriority &value);
|
|
};
|
|
|
|
uint qHash(const LibInfo& info);
|
|
#endif // LIBINFO_H
|