rt_SipUri.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 SipUri;
  21. namespace doubango_rt
  22. {
  23. namespace BackEnd
  24. {
  25. public ref class rtSipUri sealed
  26. {
  27. public:
  28. virtual ~rtSipUri();
  29. rtSipUri(Platform::String^ uriString, Platform::String^ displayName);
  30. rtSipUri(Platform::String^ uriString);
  31. public:
  32. static bool isValid(Platform::String^ uri);
  33. #if COM_VISIBLE
  34. bool isValid_();
  35. #else
  36. bool isValid();
  37. #endif
  38. Platform::String^ getScheme();
  39. Platform::String^ getHost();
  40. unsigned short getPort();
  41. Platform::String^ getUserName();
  42. Platform::String^ getPassword();
  43. Platform::String^ getDisplayName();
  44. Platform::String^ getParamValue(Platform::String^ name);
  45. void setDisplayName(Platform::String^ displayName);
  46. internal:
  47. const SipUri* getWrappedUri() {
  48. return m_pSipUri;
  49. }
  50. private:
  51. SipUri* m_pSipUri;
  52. };
  53. }
  54. }