Audacity 3.2.0
Namespaces | Classes | Functions
cloud::audiocom Namespace Reference

Namespaces

namespace  anonymous_namespace{AuthorizationHandler.cpp}
 
namespace  anonymous_namespace{OAuthService.cpp}
 
namespace  anonymous_namespace{ShareAudioDialog.cpp}
 
namespace  anonymous_namespace{UploadService.cpp}
 
namespace  anonymous_namespace{UserService.cpp}
 

Classes

class  AuthorizationHandler
 
struct  AuthStateChangedMessage
 Message that is sent when authorization state changes. More...
 
class  LinkAccountDialog
 
class  LinkFailedDialog
 
class  LinkSucceededDialog
 
class  OAuthService
 Service responsible for OAuth authentication against the audio.com service. More...
 
class  ServiceConfig
 Configuration for the audio.com. More...
 
class  ShareAudioDialog
 
class  UploadOperation
 Class used to track the upload operation. More...
 
struct  UploadOperationCompleted
 
class  UploadOperationHandle
 A unique_ptr like class that holds a pointer to UploadOperation. More...
 
class  UploadService
 Service, responsible for uploading audio files to audio.com. More...
 
struct  UserDataChanged
 
class  UserImage
 
class  UserService
 Service for providing information about the user profile. More...
 

Functions

AuthorizationHandlerGetAuthorizationHandler ()
 
OAuthServiceGetOAuthService ()
 Returns the instance of the OAuthService. More...
 
const ServiceConfigGetServiceConfig ()
 Returns the instance of the ServiceConfig. More...
 
wxString GetUploadTempPath ()
 
UserServiceGetUserService ()
 

Detailed Description


Audacity: A Digital Audio Editor

AuthorizationHandler.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

AuthorizationHandler.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

LinkAccountDialog.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

LinkFailedDialog.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

LinkFailedDialog.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

LinkSucceededDialog.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

LinkSucceededDialog.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

ShareAudioDialog.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

UserImage.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

UserImage.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

OAuthService.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

OAuthService.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

ServiceConfig.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

ServiceConfig.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

UploadService.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

UploadService.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

UserService.cpp

Dmitry Vedenko


Audacity: A Digital Audio Editor

UserService.h

Dmitry Vedenko

Function Documentation

◆ GetAuthorizationHandler()

AuthorizationHandler & cloud::audiocom::GetAuthorizationHandler ( )

Definition at line 27 of file AuthorizationHandler.cpp.

References cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.

Referenced by cloud::audiocom::LinkAccountDialog::~LinkAccountDialog(), and cloud::audiocom::ShareAudioDialog::~ShareAudioDialog().

Here is the caller graph for this function:

◆ GetOAuthService()

CLOUD_AUDIOCOM_API OAuthService & cloud::audiocom::GetOAuthService ( )

Returns the instance of the OAuthService.

Definition at line 375 of file OAuthService.cpp.

376{
377 static OAuthService service;
378 return service;
379}
Service responsible for OAuth authentication against the audio.com service.
Definition: OAuthService.h:38

Referenced by cloud::audiocom::ShareAudioDialog::HandleUploadSucceeded(), cloud::audiocom::LinkAccountDialog::OnContinue(), cloud::audiocom::ShareAudioDialog::InitialStatePanel::OnLinkButtonPressed(), cloud::audiocom::UserService::UpdateUserData(), and cloud::audiocom::ShareAudioDialog::InitialStatePanel::UpdateUserData().

Here is the caller graph for this function:

◆ GetServiceConfig()

CLOUD_AUDIOCOM_API const ServiceConfig & cloud::audiocom::GetServiceConfig ( )

◆ GetUploadTempPath()

CLOUD_AUDIOCOM_API wxString cloud::audiocom::GetUploadTempPath ( )

Definition at line 557 of file UploadService.cpp.

558{
559 const auto tempPath = TempDirectory::DefaultTempDir();
560
561 if (!wxDirExists(tempPath))
562 {
563 // Temp directory was not created yet.
564 // Is it a first run of Audacity?
565 // In any case, let's wait for some better time
566 return {};
567 }
568
570 tempPath, XO("Cannot proceed to upload.")))
571 return {};
572
573 return tempPath + "/cloud/";
574}
XO("Cut/Copy/Paste")
FILES_API bool WritableLocationCheck(const FilePath &path, const TranslatableString &message)
Check location on writable access and return true if checked successfully.
FILES_API const FilePath & DefaultTempDir()

References TempDirectory::DefaultTempDir(), FileNames::WritableLocationCheck(), and XO().

Referenced by cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::GenerateTempPath().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUserService()

CLOUD_AUDIOCOM_API UserService & cloud::audiocom::GetUserService ( )

Definition at line 135 of file UserService.cpp.

136{
137 static UserService userService;
138 return userService;
139}
Service for providing information about the user profile.
Definition: UserService.h:30

Referenced by cloud::audiocom::ShareAudioDialog::HandleUploadSucceeded(), and cloud::audiocom::ShareAudioDialog::InitialStatePanel::UpdateUserData().

Here is the caller graph for this function: