/** * @file ssurepomanager.h * @copyright 2013 Jolla Ltd. * @author Bernd Wachter * @date 2013 */ #ifndef _SSUREPOMANAGER_H #define _SSUREPOMANAGER_H #include #include #include class SsuRepoManager: public QObject { Q_OBJECT public: SsuRepoManager(); /** * Add a repository */ void add(QString repo, QString repoUrl=""); /** * Disable a repository */ void disable(QString repo); /** * Enable a repository, given it's not disabled by board configuration */ void enable(QString repo); /** * Remove a repository */ void remove(QString repo); /** * Update the repository files on disk */ void update(); /** * Resolve a repository url * @return the repository URL on success, an empty string on error */ QString url(QString repoName, bool rndRepo=false, QHash repoParameters=QHash(), QHash parametersOverride=QHash()); }; #endif