Loading...
Searching...
No Matches
SupportPackages.hpp
1#pragma once
2#include <QString>
3#include <QStringList>
4#include <QUuid>
5
6#include <score_plugin_library_export.h>
7
8#include <chrono>
9#include <vector>
10
11namespace Library
12{
16{
17 QString path;
18 QUuid key;
19 int version{};
20};
21
24SCORE_PLUGIN_LIBRARY_EXPORT
25std::vector<InstalledPackage> installedPackages(const QString& root);
26
36SCORE_PLUGIN_LIBRARY_EXPORT
37bool removePackageFolder(const QString& path);
38
40SCORE_PLUGIN_LIBRARY_EXPORT
41bool isMarkedForRemoval(const QString& path);
42
45SCORE_PLUGIN_LIBRARY_EXPORT
46bool isLinkedPackageFolder(const QString& path);
47
49SCORE_PLUGIN_LIBRARY_EXPORT
50void removeMarkedPackageFolders(const QString& root);
51
55SCORE_PLUGIN_LIBRARY_EXPORT
56void removeInterruptedInstalls(
57 const QString& root, std::chrono::seconds age = std::chrono::hours{1});
58
68SCORE_PLUGIN_LIBRARY_EXPORT
69QStringList supportFoldersToLoad(const QString& supportDir);
70
82SCORE_PLUGIN_LIBRARY_EXPORT
83QStringList loadSupportPackages(const QString& supportDir);
84
86SCORE_PLUGIN_LIBRARY_EXPORT
87bool isSupportPackageLoaded(const QUuid& key);
88
94SCORE_PLUGIN_LIBRARY_EXPORT
95QStringList supportLibraryFiles(const QStringList& folders, const QString& bundledDir);
96
104SCORE_PLUGIN_LIBRARY_EXPORT
105void loadSupportLibraries(const QStringList& folders);
106}
Definition SupportPackages.hpp:16
QString path
Absolute path of the package folder.
Definition SupportPackages.hpp:17