support of the new managers in account code, new states, new lambdas, even launches now, even receives some bundles
This commit is contained in:
parent
db3bc358a7
commit
dfe72ca36c
12 changed files with 113 additions and 25 deletions
|
@ -29,12 +29,13 @@ Q_NAMESPACE
|
|||
|
||||
enum class ConnectionState {
|
||||
disconnected,
|
||||
scheduled,
|
||||
connecting,
|
||||
connected,
|
||||
error
|
||||
};
|
||||
Q_ENUM_NS(ConnectionState)
|
||||
static const std::deque<QString> connectionStateThemeIcons = {"state-offline", "state-sync", "state-ok", "state-error"};
|
||||
static const std::deque<QString> connectionStateThemeIcons = {"state-offline", "state-sync", "state-sync", "state-ok", "state-error"};
|
||||
static const ConnectionState ConnectionStateHighest = ConnectionState::error;
|
||||
static const ConnectionState ConnectionStateLowest = ConnectionState::disconnected;
|
||||
|
||||
|
|
|
@ -49,7 +49,8 @@ Shared::Global::Global():
|
|||
}),
|
||||
connectionState({
|
||||
tr("Disconnected", "ConnectionState"),
|
||||
tr("Connecting", "ConnectionState"),
|
||||
tr("Scheduled", "ConnectionState"),
|
||||
tr("Connecting", "ConnectionState"),
|
||||
tr("Connected", "ConnectionState"),
|
||||
tr("Error", "ConnectionState")
|
||||
}),
|
||||
|
|
|
@ -48,6 +48,7 @@ static const std::deque<QString> fallbackSubscriptionStateThemeIconsLightBig = {
|
|||
static const std::deque<QString> fallbackConnectionStateThemeIconsLightBig = {
|
||||
":images/fallback/light/big/state-offline.svg",
|
||||
":images/fallback/light/big/state-sync.svg",
|
||||
":images/fallback/light/big/state-sync.svg",
|
||||
":images/fallback/light/big/state-ok.svg",
|
||||
":images/fallback/light/big/state-error.svg"
|
||||
};
|
||||
|
@ -73,6 +74,7 @@ static const std::deque<QString> fallbackSubscriptionStateThemeIconsLightSmall =
|
|||
static const std::deque<QString> fallbackConnectionStateThemeIconsLightSmall = {
|
||||
":images/fallback/light/small/state-offline.svg",
|
||||
":images/fallback/light/small/state-sync.svg",
|
||||
":images/fallback/light/small/state-sync.svg",
|
||||
":images/fallback/light/small/state-ok.svg",
|
||||
":images/fallback/light/small/state-error.svg"
|
||||
};
|
||||
|
@ -98,6 +100,7 @@ static const std::deque<QString> fallbackSubscriptionStateThemeIconsDarkBig = {
|
|||
static const std::deque<QString> fallbackConnectionStateThemeIconsDarkBig = {
|
||||
":images/fallback/dark/big/state-offline.svg",
|
||||
":images/fallback/dark/big/state-sync.svg",
|
||||
":images/fallback/dark/big/state-sync.svg",
|
||||
":images/fallback/dark/big/state-ok.svg",
|
||||
":images/fallback/dark/big/state-error.svg"
|
||||
};
|
||||
|
@ -123,6 +126,7 @@ static const std::deque<QString> fallbackSubscriptionStateThemeIconsDarkSmall =
|
|||
static const std::deque<QString> fallbackConnectionStateThemeIconsDarkSmall = {
|
||||
":images/fallback/dark/small/state-offline.svg",
|
||||
":images/fallback/dark/small/state-sync.svg",
|
||||
":images/fallback/dark/small/state-sync.svg",
|
||||
":images/fallback/dark/small/state-ok.svg",
|
||||
":images/fallback/dark/small/state-error.svg"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue