rt_DDebug.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*Copyright (C) 2013 Doubango Telecom <http://www.doubango.org>
  2. *
  3. * This file is part of Open Source Doubango Framework.
  4. *
  5. * DOUBANGO is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * DOUBANGO is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with DOUBANGO.
  17. */
  18. #pragma once
  19. #include "rt_Config.h"
  20. class DDebugCallback;
  21. class DDebugCallbackProxy;
  22. namespace doubango_rt
  23. {
  24. namespace BackEnd
  25. {
  26. public interface class rtIDDebugCallback
  27. {
  28. virtual int OnDebugInfo(Platform::String^ message);
  29. virtual int OnDebugWarn(Platform::String^ message);
  30. virtual int OnDebugError(Platform::String^ message);
  31. virtual int OnDebugFatal(Platform::String^ message);
  32. };
  33. public ref class rtDDebugCallback sealed
  34. {
  35. internal:
  36. rtDDebugCallback(rtIDDebugCallback^ pI);
  37. public:
  38. virtual ~rtDDebugCallback();
  39. friend class DDebugCallbackProxy;
  40. internal:
  41. const DDebugCallback* getWrappedCallback();
  42. private:
  43. rtIDDebugCallback^ m_pI;
  44. DDebugCallbackProxy* m_pCallback;
  45. };
  46. }
  47. }