Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ierrorcontext.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //-----------------------------------------------------------------------------
  2. // Project : SDK Core
  3. //
  4. // Category : SDK Core Interfaces
  5. // Filename : pluginterfaces/base/ierrorcontext.h
  6. // Created by : Steinberg, 02/2008
  7. // Description : Error Context Interface
  8. //
  9. //-----------------------------------------------------------------------------
  10. // This file is part of a Steinberg SDK. It is subject to the license terms
  11. // in the LICENSE file found in the top-level directory of this distribution
  12. // and at www.steinberg.net/sdklicenses.
  13. // No part of the SDK, including this file, may be copied, modified, propagated,
  14. // or distributed except according to the terms contained in the LICENSE file.
  15. //-----------------------------------------------------------------------------
  16. #pragma once
  17. #include "pluginterfaces/base/funknown.h"
  18. namespace Steinberg {
  19. class IString;
  20. //------------------------------------------------------------------------
  21. /** Interface for error handling.
  22. [plug imp] \n
  23. [released: Sequel 2] */
  24. //------------------------------------------------------------------------
  25. class IErrorContext : public FUnknown
  26. {
  27. public:
  28. //------------------------------------------------------------------------
  29. /** Tells the plug-in to not show any UI elements on errors. */
  30. virtual void PLUGIN_API disableErrorUI (bool state) = 0;
  31. /** If an error happens and disableErrorUI was not set this should return kResultTrue if the plug-in already showed a message to the user what happened. */
  32. virtual tresult PLUGIN_API errorMessageShown () = 0;
  33. /** Fill message with error string. The host may show this to the user. */
  34. virtual tresult PLUGIN_API getErrorMessage (IString* message) = 0;
  35. //------------------------------------------------------------------------
  36. static const FUID iid;
  37. };
  38. DECLARE_CLASS_IID (IErrorContext, 0x12BCD07B, 0x7C694336, 0xB7DA77C3, 0x444A0CD0)
  39. //------------------------------------------------------------------------
  40. } // namespace Steinberg