VirtualBox

Changeset 75371 in vbox


Ignore:
Timestamp:
Nov 9, 2018 5:13:31 PM (6 years ago)
Author:
vboxsync
Message:

bugref:9152. getSupportedPropertyNames and getPropertyDescription were moved from CloudProfile to CloudProvider.

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileManager.cpp

    r75223 r75371  
    358358                    {
    359359                        /* Acquire supported property names: */
    360                         const QVector<QString> supportedNames = comCloudProfile.GetSupportedPropertyNames();
     360                        const QVector<QString> supportedNames = comCloudProvider.GetSupportedPropertyNames();
    361361                        /* Show error message if necessary: */
    362362                        if (!comCloudProfile.isOk())
     
    832832        {
    833833            /* Acquire descriptions: */
    834             for (int i = 0; i < keys.size(); ++i)
    835             {
    836                 descriptions[i] = comProfile.GetPropertyDescription(keys.at(i));
    837                 if (!comProfile.isOk())
    838                     continue;
    839             }
     834//          for (int i = 0; i < keys.size(); ++i)
     835//          {
     836//              descriptions[i] = comProfile.GetPropertyDescription(keys.at(i));
     837//              if (!comProfile.isOk())
     838//                  continue;
     839//          }
    840840
    841841            /* Enumerate all the keys: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r75227 r75371  
    255255
    256256                        /* Use non-translated description as tool-tip: */
    257                         const QString strToolTip = m_comCloudProfile.GetPropertyDescription(keys.at(i));
     257                        const QString strToolTip = m_comCloudProvider.GetPropertyDescription(keys.at(i));
    258258                        /* Show error message if necessary: */
    259259                        if (!m_comCloudProfile.isOk())
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r75362 r75371  
    2532025320  <interface
    2532125321    name="ICloudProfile" extends="$unknown"
    25322     uuid="011d1e9a-a48b-4d15-91a0-6101b087155c"
     25322    uuid="5f2ba3a2-f899-4261-877f-08b7bc52c15a"
    2532325323    wsmap="managed" reservedMethods="4" reservedAttributes="4"
    2532425324    >
     
    2533325333      <desc>
    2533425334        Returns provider identifier tied with this profile.
    25335       </desc>
    25336     </attribute>
    25337 
    25338     <attribute name="supportedPropertyNames" type="wstring" safearray="yes" readonly="yes">
    25339       <desc>
    25340         Returns the supported property names.
    2534125335      </desc>
    2534225336    </attribute>
     
    2543325427    </method>
    2543425428
    25435     <!--- @todo r=klaus Is this the best placement of this method? To me it's
    25436          not obvious that it processes the object's state at all, and could be
    25437          moved up to ICloudProvider unless there's any chance that the
    25438          description changes with the profile. -->
    25439     <method name="getPropertyDescription" const="yes">
    25440       <param name="name" type="wstring" dir="in">
    25441         <desc>Property name.</desc>
    25442       </param>
    25443       <param name="description" type="wstring" dir="return">
    25444         <desc>Property description.</desc>
    25445       </param>
    25446     </method>
    25447 
    2544825429    <method name="remove">
    2544925430      <desc>
     
    2547225453  <interface
    2547325454    name="ICloudProvider" extends="$unknown"
    25474     uuid="6e500583-602c-49bc-894d-2f53b8e371e9"
     25455    uuid="8154fa84-35d7-4a9b-86b4-cb2635b0d9f5"
    2547525456    wsmap="managed" reservedMethods="4" reservedAttributes="4"
    2547625457    >
     
    2550225483      <desc>Returns all profile names for this cloud provider.</desc>
    2550325484    </attribute>
     25485
     25486    <attribute name="supportedPropertyNames" type="wstring" safearray="yes" readonly="yes">
     25487      <desc>
     25488        Returns the supported property names.
     25489      </desc>
     25490    </attribute>
     25491
     25492    <method name="getPropertyDescription" const="yes">
     25493      <param name="name" type="wstring" dir="in">
     25494        <desc>Property name.</desc>
     25495      </param>
     25496      <param name="description" type="wstring" dir="return">
     25497        <desc>Property description.</desc>
     25498      </param>
     25499    </method>
    2550425500
    2550525501    <method name="createProfile">
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette