VCV Rack API v2
Loading...
Searching...
No Matches
library.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3
4#include <map>
5
6
7namespace rack {
9namespace library {
10
11
12struct UpdateInfo {
13 std::string name;
14 std::string version;
15 std::string changelogUrl;
17 std::string minRackVersion;
18 bool downloaded = false;
19};
20
21
24
27
29PRIVATE void logIn(std::string email, std::string password);
33PRIVATE void syncUpdate(std::string slug);
35
36
37extern std::string appVersion;
38extern std::string appDownloadUrl;
39extern std::string appChangelogUrl;
40
41extern std::string loginStatus;
42// plugin slug -> UpdateInfo
43extern std::map<std::string, UpdateInfo> updateInfos;
44extern std::string updateStatus;
45extern std::string updateSlug;
46extern float updateProgress;
48extern bool isSyncing;
50extern bool restartRequested;
52extern bool refreshRequested;
53
54
55} // namespace library
56} // namespace rack
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:32
PRIVATE void syncUpdate(std::string slug)
PRIVATE void checkUpdates()
bool isAppUpdateAvailable()
std::map< std::string, UpdateInfo > updateInfos
bool isSyncing
Whether plugins are currently downloading.
PRIVATE void syncUpdates()
std::string updateSlug
std::string appChangelogUrl
float updateProgress
PRIVATE void destroy()
std::string appDownloadUrl
std::string updateStatus
PRIVATE void logOut()
std::string appVersion
bool isLoggedIn()
bool refreshRequested
Whether the UI should refresh the plugin updates menu.
bool restartRequested
Whether the UI should ask the user to restart after updating plugins.
PRIVATE void init()
PRIVATE void logIn(std::string email, std::string password)
PRIVATE bool hasUpdates()
PRIVATE void checkAppUpdate()
std::string loginStatus
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition library.hpp:12
std::string minRackVersion
Only defined if plugin does not meet Rack version requirement.
Definition library.hpp:17
std::string name
Definition library.hpp:13
bool downloaded
Definition library.hpp:18
std::string changelogUrl
Definition library.hpp:15
std::string version
Definition library.hpp:14