Changeset 79845 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jul 17, 2019 9:12:50 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DHCPConfigImpl.h
r79822 r79845 45 45 protected: 46 46 /** Config scope (global, group, vm+nic, mac). */ 47 DHCPConfigScope_T const m_enmScope;47 DHCPConfigScope_T const m_enmScope; 48 48 /** Minimum lease time. */ 49 ULONG m_secMinLeaseTime;49 ULONG m_secMinLeaseTime; 50 50 /** Default lease time. */ 51 ULONG m_secDefaultLeaseTime;51 ULONG m_secDefaultLeaseTime; 52 52 /** Maximum lease time. */ 53 ULONG m_secMaxLeaseTime; 53 ULONG m_secMaxLeaseTime; 54 /** List of options which are forced upon the client when available, whether 55 * requested by it or not. */ 56 std::vector<DHCPOption_T> m_vecForcedOptions; 57 /** List of options which should be suppressed and not returned the the client 58 * when available and requested. */ 59 std::vector<DHCPOption_T> m_vecSuppressedOptions; 54 60 /** DHCP option map. */ 55 settings::DhcpOptionMap m_OptionMap;61 settings::DhcpOptionMap m_OptionMap; 56 62 /** The DHCP server parent (weak). */ 57 DHCPServer * const m_pParent;63 DHCPServer * const m_pParent; 58 64 /** The DHCP server parent (weak). */ 59 VirtualBox * const m_pVirtualBox;65 VirtualBox * const m_pVirtualBox; 60 66 private: 61 67 /** For setError and such. */ 62 VirtualBoxBase * const m_pHack;68 VirtualBoxBase * const m_pHack; 63 69 64 70 protected: … … 85 91 HRESULT i_getMaxLeaseTime(ULONG *aMaxLeaseTime); 86 92 HRESULT i_setMaxLeaseTime(ULONG aMaxLeaseTime); 93 HRESULT i_getForcedOptions(std::vector<DHCPOption_T> &aOptions); 94 HRESULT i_setForcedOptions(const std::vector<DHCPOption_T> &aOptions); 95 HRESULT i_getSuppressedOptions(std::vector<DHCPOption_T> &aOptions); 96 HRESULT i_setSuppressedOptions(const std::vector<DHCPOption_T> &aOptions); 87 97 /** @} */ 88 98 … … 92 102 * @todo Make protected again when IDHCPServer is cleaned up. 93 103 * @{ */ 94 virtual HRESULT i_setOption(D hcpOpt_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue);95 96 virtual HRESULT i_removeOption(D hcpOpt_T aOption);104 virtual HRESULT i_setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue); 105 106 virtual HRESULT i_removeOption(DHCPOption_T aOption); 97 107 virtual HRESULT i_removeAllOptions(); 98 HRESULT i_getOption(D hcpOpt_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue);99 HRESULT i_getAllOptions(std::vector<D hcpOpt_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings,108 HRESULT i_getOption(DHCPOption_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue); 109 HRESULT i_getAllOptions(std::vector<DHCPOption_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings, 100 110 std::vector<com::Utf8Str> &aValues); 101 111 virtual HRESULT i_remove(); … … 150 160 HRESULT getMaxLeaseTime(ULONG *aMaxLeaseTime) RT_OVERRIDE { return i_getMaxLeaseTime(aMaxLeaseTime); } 151 161 HRESULT setMaxLeaseTime(ULONG aMaxLeaseTime) RT_OVERRIDE { return i_setMaxLeaseTime(aMaxLeaseTime); } 162 HRESULT getForcedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getForcedOptions(aOptions); } 163 HRESULT setForcedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setForcedOptions(aOptions); } 164 HRESULT getSuppressedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getSuppressedOptions(aOptions); } 165 HRESULT setSuppressedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setSuppressedOptions(aOptions); } 152 166 /** @} */ 153 167 154 168 /** @name wrapped IDHCPConfig methods 155 169 * @{ */ 156 HRESULT setOption(D hcpOpt_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE170 HRESULT setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE 157 171 { 158 172 return i_setOption(aOption, aEncoding, aValue); 159 173 } 160 174 161 HRESULT removeOption(D hcpOpt_T aOption) RT_OVERRIDE175 HRESULT removeOption(DHCPOption_T aOption) RT_OVERRIDE 162 176 { 163 177 return i_removeOption(aOption); … … 169 183 } 170 184 171 HRESULT getOption(D hcpOpt_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE185 HRESULT getOption(DHCPOption_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE 172 186 { 173 187 return i_getOption(aOption, aEncoding, aValue); 174 188 } 175 189 176 HRESULT getAllOptions(std::vector<D hcpOpt_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings,190 HRESULT getAllOptions(std::vector<DHCPOption_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings, 177 191 std::vector<com::Utf8Str> &aValues) RT_OVERRIDE 178 192 { … … 187 201 188 202 public: 189 HRESULT i_setOption(D hcpOpt_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE;190 HRESULT i_removeOption(D hcpOpt_T aOption) RT_OVERRIDE;203 HRESULT i_setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE; 204 HRESULT i_removeOption(DHCPOption_T aOption) RT_OVERRIDE; 191 205 HRESULT i_removeAllOptions() RT_OVERRIDE; 192 206 HRESULT i_remove() RT_OVERRIDE; … … 307 321 HRESULT getMaxLeaseTime(ULONG *aMaxLeaseTime) RT_OVERRIDE { return i_getMaxLeaseTime(aMaxLeaseTime); } 308 322 HRESULT setMaxLeaseTime(ULONG aMaxLeaseTime) RT_OVERRIDE { return i_setMaxLeaseTime(aMaxLeaseTime); } 323 HRESULT getForcedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getForcedOptions(aOptions); } 324 HRESULT setForcedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setForcedOptions(aOptions); } 325 HRESULT getSuppressedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getSuppressedOptions(aOptions); } 326 HRESULT setSuppressedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setSuppressedOptions(aOptions); } 309 327 /** @} */ 310 328 … … 318 336 /** @name Wrapped IDHCPConfig methods 319 337 * @{ */ 320 HRESULT setOption(D hcpOpt_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE338 HRESULT setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE 321 339 { 322 340 return i_setOption(aOption, aEncoding, aValue); 323 341 } 324 342 325 HRESULT removeOption(D hcpOpt_T aOption) RT_OVERRIDE343 HRESULT removeOption(DHCPOption_T aOption) RT_OVERRIDE 326 344 { 327 345 return i_removeOption(aOption); … … 333 351 } 334 352 335 HRESULT getOption(D hcpOpt_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE353 HRESULT getOption(DHCPOption_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE 336 354 { 337 355 return i_getOption(aOption, aEncoding, aValue); 338 356 } 339 357 340 HRESULT getAllOptions(std::vector<D hcpOpt_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings,358 HRESULT getAllOptions(std::vector<DHCPOption_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings, 341 359 std::vector<com::Utf8Str> &aValues) RT_OVERRIDE 342 360 { … … 438 456 HRESULT getMaxLeaseTime(ULONG *aMaxLeaseTime) RT_OVERRIDE { return i_getMaxLeaseTime(aMaxLeaseTime); } 439 457 HRESULT setMaxLeaseTime(ULONG aMaxLeaseTime) RT_OVERRIDE { return i_setMaxLeaseTime(aMaxLeaseTime); } 458 HRESULT getForcedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getForcedOptions(aOptions); } 459 HRESULT setForcedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setForcedOptions(aOptions); } 460 HRESULT getSuppressedOptions(std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_getSuppressedOptions(aOptions); } 461 HRESULT setSuppressedOptions(const std::vector<DHCPOption_T> &aOptions) RT_OVERRIDE { return i_setSuppressedOptions(aOptions); } 440 462 /** @} */ 441 463 442 464 /** @name wrapped IDHCPConfig methods 443 465 * @{ */ 444 HRESULT setOption(D hcpOpt_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE466 HRESULT setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) RT_OVERRIDE 445 467 { 446 468 return i_setOption(aOption, aEncoding, aValue); 447 469 } 448 470 449 HRESULT removeOption(D hcpOpt_T aOption) RT_OVERRIDE471 HRESULT removeOption(DHCPOption_T aOption) RT_OVERRIDE 450 472 { 451 473 return i_removeOption(aOption); … … 457 479 } 458 480 459 HRESULT getOption(D hcpOpt_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE481 HRESULT getOption(DHCPOption_T aOption, DHCPOptionEncoding_T *aEncoding, com::Utf8Str &aValue) RT_OVERRIDE 460 482 { 461 483 return i_getOption(aOption, aEncoding, aValue); 462 484 } 463 485 464 HRESULT getAllOptions(std::vector<D hcpOpt_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings,486 HRESULT getAllOptions(std::vector<DHCPOption_T> &aOptions, std::vector<DHCPOptionEncoding_T> &aEncodings, 465 487 std::vector<com::Utf8Str> &aValues) RT_OVERRIDE 466 488 { -
trunk/src/VBox/Main/include/DHCPServerImpl.h
r79771 r79845 29 29 struct DHCPServer; 30 30 struct DhcpOptValue; 31 typedef std::map<D hcpOpt_T, DhcpOptValue> DhcpOptionMap;31 typedef std::map<DHCPOption_T, DhcpOptValue> DhcpOptionMap; 32 32 } 33 33 … … 121 121 ComObjPtr<DHCPIndividualConfig> &a_rPtrConfig); 122 122 123 HRESULT i_encode60Option(com::Utf8Str &strEncoded, D hcpOpt_T enmOption,123 HRESULT i_encode60Option(com::Utf8Str &strEncoded, DHCPOption_T enmOption, 124 124 DHCPOptionEncoding_T enmEncoding, const com::Utf8Str &strValue); 125 125 HRESULT i_getAllOptions60(DHCPConfig &aSourceConfig, std::vector<com::Utf8Str> &aValues);
Note:
See TracChangeset
for help on using the changeset viewer.