|
12345678910111213141516171819202122232425262728293031323334353637 |
- #pragma once
- #include "common.hpp"
- #include "plugin/Plugin.hpp"
- #include "plugin/Model.hpp"
- #include <vector>
- #include <list>
-
-
- namespace rack {
- namespace plugin {
-
-
- void init(bool devMode);
- void destroy();
- void logIn(std::string email, std::string password);
- void logOut();
- /** Returns whether a new plugin is available, and downloads it unless doing a dry run */
- bool sync(bool dryRun);
- void cancelDownload();
- bool isLoggedIn();
- Plugin *getPlugin(std::string pluginSlug);
- Model *getModel(std::string pluginSlug, std::string modelSlug);
- std::string getAllowedTag(std::string tag);
- /** Checks that the slug contains only alphanumeric characters, "-", and "_" */
- bool isSlugValid(std::string slug);
-
-
- extern std::list<Plugin*> plugins;
- extern bool isDownloading;
- extern float downloadProgress;
- extern std::string downloadName;
- extern std::string loginStatus;
- extern const std::vector<std::string> allowedTags;
-
-
- } // namespace plugin
- } // namespace rack
|