mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
64 lines
1.9 KiB
C++
64 lines
1.9 KiB
C++
//#
|
|
//# Copyright (C) 2018-2020 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.
|
|
//#
|
|
|
|
#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;
|
|
QString qtPath;
|
|
LibPriority priority = NotFile;
|
|
WinAPI _winApi = WinAPI::NoWinAPI;
|
|
|
|
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 addDependncies(const QSet<QString> &value);
|
|
void removeDependncies(const QString &value);
|
|
|
|
LibPriority getPriority() const;
|
|
void setPriority(const LibPriority &value);
|
|
QString getQtPath() const;
|
|
void setQtPath(const QString &value);
|
|
WinAPI getWinApi() const;
|
|
void setWinApi(WinAPI winApi);
|
|
bool isDependetOfQt() const;
|
|
};
|
|
|
|
uint qHash(const LibInfo& info);
|
|
#endif // LIBINFO_H
|