ifc_omtoolbarconfig.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_CONFIG_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_CONFIG_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {40D85420-F7E6-4995-A4B9-6A00D4E64452}
  7. static const GUID IFC_OmToolbarConfig =
  8. { 0x40d85420, 0xf7e6, 0x4995, { 0xa4, 0xb9, 0x6a, 0x0, 0xd4, 0xe6, 0x44, 0x52 } };
  9. #define CFGID_TOOLBAR_BOTTOMDOCK 0 // param = (ULONG_PTR)(BOOL)fBottomDock
  10. #define CFGID_TOOLBAR_AUTOHIDE 1 // param = (ULONG_PTR)(BOOL)fAutoHide
  11. #define CFGID_TOOLBAR_TABSTOP 2 // param = (ULONG_PTR)(BOOL)fTabStop
  12. #define CFGID_TOOLBAR_FORCEADDRESS 3 // param = (ULONG_PTR)(BOOL)fForce
  13. #define CFGID_TOOLBAR_FANCYADDRESS 4 // param = (ULONG_PTR)(BOOL)fFancy
  14. #include <bfc/dispatch.h>
  15. class __declspec(novtable) ifc_omtoolbarconfig : public Dispatchable
  16. {
  17. protected:
  18. ifc_omtoolbarconfig() {}
  19. ~ifc_omtoolbarconfig() {}
  20. public:
  21. HRESULT GetBottomDockEnabled(void);
  22. HRESULT GetAutoHideEnabled(void);
  23. HRESULT GetTabStopEnabled(void);
  24. HRESULT GetForceAddressbarEnabled(void);
  25. HRESULT GetFancyAddressbarEnabled(void);
  26. HRESULT EnableBottomDock(BOOL fEnable);
  27. HRESULT EnableAutoHide(BOOL fEnable);
  28. HRESULT EnableTabStop(BOOL fEnable);
  29. HRESULT EnableForceAddressbar(BOOL fEnable);
  30. HRESULT EnableFancyAddressbar(BOOL fEnable);
  31. public:
  32. DISPATCH_CODES
  33. {
  34. API_GETBOTTOMDOCKENABLED = 10,
  35. API_ENABLEBOTTOMDOCK = 20,
  36. API_GETAUTOHIDEENABLED = 30,
  37. API_ENABLEAUTOHIDE = 40,
  38. API_GETTABSTOPENABLED = 50,
  39. API_ENABLETABSTOP = 60,
  40. API_GETFORCEADDRESSBARENABLED = 70,
  41. API_ENABLEFORCEADDRESSBAR = 80,
  42. API_GETFANCYADDRESSBARENABLED = 90,
  43. API_ENABLEFANCYADDRESSBAR = 100,
  44. };
  45. };
  46. inline HRESULT ifc_omtoolbarconfig::GetBottomDockEnabled(void)
  47. {
  48. return _call(API_GETBOTTOMDOCKENABLED, (HRESULT)E_NOTIMPL);
  49. }
  50. inline HRESULT ifc_omtoolbarconfig::EnableBottomDock(BOOL fEnable)
  51. {
  52. return _call(API_ENABLEBOTTOMDOCK, (HRESULT)E_NOTIMPL, fEnable);
  53. }
  54. inline HRESULT ifc_omtoolbarconfig::GetAutoHideEnabled(void)
  55. {
  56. return _call(API_GETAUTOHIDEENABLED, (HRESULT)E_NOTIMPL);
  57. }
  58. inline HRESULT ifc_omtoolbarconfig::EnableAutoHide(BOOL fEnable)
  59. {
  60. return _call(API_ENABLEAUTOHIDE, (HRESULT)E_NOTIMPL, fEnable);
  61. }
  62. inline HRESULT ifc_omtoolbarconfig::GetTabStopEnabled(void)
  63. {
  64. return _call(API_GETTABSTOPENABLED, (HRESULT)E_NOTIMPL);
  65. }
  66. inline HRESULT ifc_omtoolbarconfig::EnableTabStop(BOOL fEnable)
  67. {
  68. return _call(API_ENABLETABSTOP, (HRESULT)E_NOTIMPL, fEnable);
  69. }
  70. inline HRESULT ifc_omtoolbarconfig::GetForceAddressbarEnabled(void)
  71. {
  72. return _call(API_GETFORCEADDRESSBARENABLED, (HRESULT)E_NOTIMPL);
  73. }
  74. inline HRESULT ifc_omtoolbarconfig::EnableForceAddressbar(BOOL fEnable)
  75. {
  76. return _call(API_ENABLEFORCEADDRESSBAR, (HRESULT)E_NOTIMPL, fEnable);
  77. }
  78. inline HRESULT ifc_omtoolbarconfig::GetFancyAddressbarEnabled(void)
  79. {
  80. return _call(API_GETFANCYADDRESSBARENABLED, (HRESULT)E_NOTIMPL);
  81. }
  82. inline HRESULT ifc_omtoolbarconfig::EnableFancyAddressbar(BOOL fEnable)
  83. {
  84. return _call(API_ENABLEFANCYADDRESSBAR, (HRESULT)E_NOTIMPL, fEnable);
  85. }
  86. #endif // NULLSOFT_WINAMP_OMBROWSER_TOOLBAR_CONFIG_INTERFACE_HEADER