Changeset 84051 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 28, 2020 3:52:06 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137629
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r84035 r84051 32 32 33 33 34 CCloudProviderManager UICloudNetworkingStuff::cloudProviderManager( )34 CCloudProviderManager UICloudNetworkingStuff::cloudProviderManager(QWidget *pParent /* = 0 */) 35 35 { 36 36 /* Acquire VBox: */ … … 41 41 CCloudProviderManager comProviderManager = comVBox.GetCloudProviderManager(); 42 42 if (!comVBox.isOk()) 43 msgCenter().cannotAcquireCloudProviderManager(comVBox );43 msgCenter().cannotAcquireCloudProviderManager(comVBox, pParent); 44 44 else 45 45 return comProviderManager; … … 49 49 } 50 50 51 CCloudProvider UICloudNetworkingStuff::cloudProviderByShortName(const QString &strProviderShortName) 51 CCloudProvider UICloudNetworkingStuff::cloudProviderByShortName(const QString &strProviderShortName, 52 QWidget *pParent /* = 0 */) 52 53 { 53 54 /* Acquire cloud provider manager: */ 54 CCloudProviderManager comProviderManager = cloudProviderManager( );55 CCloudProviderManager comProviderManager = cloudProviderManager(pParent); 55 56 if (comProviderManager.isNotNull()) 56 57 { … … 58 59 CCloudProvider comProvider = comProviderManager.GetProviderByShortName(strProviderShortName); 59 60 if (!comProviderManager.isOk()) 60 msgCenter().cannotAcquireCloudProviderManagerParameter(comProviderManager );61 msgCenter().cannotAcquireCloudProviderManagerParameter(comProviderManager, pParent); 61 62 else 62 63 return comProvider; … … 67 68 68 69 CCloudProfile UICloudNetworkingStuff::cloudProfileByName(const QString &strProviderShortName, 69 const QString &strProfileName) 70 const QString &strProfileName, 71 QWidget *pParent /* = 0 */) 70 72 { 71 73 /* Acquire cloud provider: */ 72 CCloudProvider comProvider = cloudProviderByShortName(strProviderShortName );74 CCloudProvider comProvider = cloudProviderByShortName(strProviderShortName, pParent); 73 75 if (comProvider.isNotNull()) 74 76 { … … 76 78 CCloudProfile comProfile = comProvider.GetProfileByName(strProfileName); 77 79 if (!comProvider.isOk()) 78 msgCenter().cannotAcquireCloudProviderParameter(comProvider );80 msgCenter().cannotAcquireCloudProviderParameter(comProvider, pParent); 79 81 else 80 82 return comProfile; … … 85 87 86 88 CCloudClient UICloudNetworkingStuff::cloudClientByName(const QString &strProviderShortName, 87 const QString &strProfileName) 89 const QString &strProfileName, 90 QWidget *pParent /* = 0 */) 88 91 { 89 92 /* Acquire cloud profile: */ 90 CCloudProfile comProfile = cloudProfileByName(strProviderShortName, strProfileName );93 CCloudProfile comProfile = cloudProfileByName(strProviderShortName, strProfileName, pParent); 91 94 if (comProfile.isNotNull()) 92 95 { … … 94 97 CCloudClient comClient = comProfile.CreateCloudClient(); 95 98 if (!comProfile.isOk()) 96 msgCenter().cannotAcquireCloudProfileParameter(comProfile );99 msgCenter().cannotAcquireCloudProfileParameter(comProfile, pParent); 97 100 else 98 101 return comClient; … … 104 107 CCloudMachine UICloudNetworkingStuff::cloudMachineById(const QString &strProviderShortName, 105 108 const QString &strProfileName, 106 const QUuid &uMachineId) 109 const QUuid &uMachineId, 110 QWidget *pParent /* = 0 */) 107 111 { 108 112 /* Acquire cloud client: */ 109 CCloudClient comClient = cloudClientByName(strProviderShortName, strProfileName );113 CCloudClient comClient = cloudClientByName(strProviderShortName, strProfileName, pParent); 110 114 if (comClient.isNotNull()) 111 115 { … … 113 117 CCloudMachine comMachine = comClient.GetCloudMachine(uMachineId); 114 118 if (!comClient.isOk()) 115 msgCenter().cannotAcquireCloudClientParameter(comClient );119 msgCenter().cannotAcquireCloudClientParameter(comClient, pParent); 116 120 else 117 121 return comMachine; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r84035 r84051 37 37 namespace UICloudNetworkingStuff 38 38 { 39 /** Acquires cloud provider manager. */ 40 SHARED_LIBRARY_STUFF CCloudProviderManager cloudProviderManager(); 41 /** Acquires cloud provider specified by @a strProviderShortName. */ 42 SHARED_LIBRARY_STUFF CCloudProvider cloudProviderByShortName(const QString &strProviderShortName); 43 /** Acquires cloud profile specified by @a strProviderShortName and @a strProfileName. */ 39 /** Acquires cloud provider manager, 40 * using @a pParent to show messages according to. */ 41 SHARED_LIBRARY_STUFF CCloudProviderManager cloudProviderManager(QWidget *pParent = 0); 42 /** Acquires cloud provider specified by @a strProviderShortName, 43 * using @a pParent to show messages according to. */ 44 SHARED_LIBRARY_STUFF CCloudProvider cloudProviderByShortName(const QString &strProviderShortName, 45 QWidget *pParent = 0); 46 /** Acquires cloud profile specified by @a strProviderShortName and @a strProfileName, 47 * using @a pParent to show messages according to. */ 44 48 SHARED_LIBRARY_STUFF CCloudProfile cloudProfileByName(const QString &strProviderShortName, 45 const QString &strProfileName); 46 /** Acquires cloud client specified by @a strProviderShortName and @a strProfileName. */ 49 const QString &strProfileName, 50 QWidget *pParent = 0); 51 /** Acquires cloud client specified by @a strProviderShortName and @a strProfileName, 52 * using @a pParent to show messages according to. */ 47 53 SHARED_LIBRARY_STUFF CCloudClient cloudClientByName(const QString &strProviderShortName, 48 const QString &strProfileName); 49 /** Acquires cloud machine specified by @a strProviderShortName, @a strProfileName and @a uMachineId. */ 54 const QString &strProfileName, 55 QWidget *pParent = 0); 56 /** Acquires cloud machine specified by @a strProviderShortName, @a strProfileName and @a uMachineId, 57 * using @a pParent to show messages according to. */ 50 58 SHARED_LIBRARY_STUFF CCloudMachine cloudMachineById(const QString &strProviderShortName, 51 59 const QString &strProfileName, 52 const QUuid &uMachineId); 60 const QUuid &uMachineId, 61 QWidget *pParent = 0); 53 62 54 63 /** Acquires cloud machines of certain @a comCloudClient, using @a pParent to show messages according to. */
Note:
See TracChangeset
for help on using the changeset viewer.