113{
115
118 else
120
121
124
126 return;
127
128 const auto error = *message.Error;
129
130 switch (error.Type)
131 {
133
136 break;
138 [[fallthrough]];
140 {
141 auto result = ProjectLimitDialog { &
mProject }.ShowDialog();
142
144 {
146
149
150 WaitForActionDialog {
152 XO(
"Waiting for space to free up"),
153 XO(
"Once you have made storage space available on audio.com, click Retry."),
154 }
155 .ShowDialog();
157 }
159 {
162 }
163 }
164 break;
166 {
167 if (
168 ProjectVersionConflictDialog { &
mProject,
171 {
173 }
174 else
175 {
177 }
178 }
179 break;
181 {
182 if (
183 NotCloudProjectDialog { &
mProject }.ShowDialog() ==
185 {
188 }
189 else
190 {
192 }
193 }
194 break;
196 {
197 ConnectionIssuesDialog { &
mProject }.ShowDialog();
198 }
199 break;
201 [[fallthrough]];
203 [[fallthrough]];
206 break;
208 [[fallthrough]];
209 default:
210 break;
211 }
212
213 wxLogError(
215}
void UnlinkAccount()
Removes access and refresh token, notifies about the logout.
static DialogButtonIdentifier SaveLocallyIdentifier()
void SetUploadProgress(double progress)
static DialogButtonIdentifier VisitAudioComIdentifier()
static DialogButtonIdentifier SaveLocallyButtonIdentifier()
static DialogButtonIdentifier UseLocalIdentifier()
static void OnSave(const CloudSyncError &error)
bool OpenInDefaultBrowser(const wxString &url)
Open an URL in default browser.
void ReopenProject(AudacityProject &project)
bool ResaveLocally(AudacityProject &project)
void SaveToCloud(AudacityProject &project, UploadMode mode, CreateSnapshotCallback snapshotCallback)
void ResumeProjectUpload(ProjectCloudExtension &projectCloudExtension, std::function< void()> onBeforeUploadStarts)
UserService & GetUserService()
OAuthService & GetOAuthService()
Returns the instance of the OAuthService.
const ServiceConfig & GetServiceConfig()
Returns the instance of the ServiceConfig.
std::string ToUTF8(const std::wstring &wstr)
wxString ToWXString(const std::string &str)
@ ProjectStorageLimitReached