Newer
Older
HoloAnatomy / Assets / HoloToolkit / Sharing / Scripts / SDK / SharingManager.cs
SURFACEBOOK2\jackwynne on 25 May 2018 4 KB v1
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 3.0.10
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10.  
  11. namespace HoloToolkit.Sharing {
  12.  
  13. public class SharingManager : global::System.IDisposable {
  14. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  15. protected bool swigCMemOwn;
  16.  
  17. internal SharingManager(global::System.IntPtr cPtr, bool cMemoryOwn) {
  18. swigCMemOwn = cMemoryOwn;
  19. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  20. }
  21.  
  22. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SharingManager obj) {
  23. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  24. }
  25.  
  26. ~SharingManager() {
  27. Dispose();
  28. }
  29.  
  30. public virtual void Dispose() {
  31. lock(this) {
  32. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  33. if (swigCMemOwn) {
  34. swigCMemOwn = false;
  35. SharingClientPINVOKE.delete_SharingManager(swigCPtr);
  36. }
  37. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  38. }
  39. global::System.GC.SuppressFinalize(this);
  40. }
  41. }
  42.  
  43. public static SharingManager Create(ClientConfig config) {
  44. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_Create(ClientConfig.getCPtr(config));
  45. SharingManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new SharingManager(cPtr, true);
  46. return ret;
  47. }
  48.  
  49. public virtual SessionManager GetSessionManager() {
  50. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetSessionManager(swigCPtr);
  51. SessionManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new SessionManager(cPtr, true);
  52. return ret;
  53. }
  54.  
  55. public virtual UserPresenceManager GetUserPresenceManager() {
  56. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetUserPresenceManager(swigCPtr);
  57. UserPresenceManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new UserPresenceManager(cPtr, true);
  58. return ret;
  59. }
  60.  
  61. public virtual AudioManager GetAudioManager() {
  62. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetAudioManager(swigCPtr);
  63. AudioManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new AudioManager(cPtr, true);
  64. return ret;
  65. }
  66.  
  67. public virtual PairingManager GetPairingManager() {
  68. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetPairingManager(swigCPtr);
  69. PairingManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new PairingManager(cPtr, true);
  70. return ret;
  71. }
  72.  
  73. public virtual RoomManager GetRoomManager() {
  74. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetRoomManager(swigCPtr);
  75. RoomManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new RoomManager(cPtr, true);
  76. return ret;
  77. }
  78.  
  79. public virtual ObjectElement GetRootSyncObject() {
  80. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetRootSyncObject(swigCPtr);
  81. ObjectElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);
  82. return ret;
  83. }
  84.  
  85. public virtual bool RegisterSyncListener(SyncListener listener) {
  86. bool ret = SharingClientPINVOKE.SharingManager_RegisterSyncListener(swigCPtr, SyncListener.getCPtr(listener));
  87. return ret;
  88. }
  89.  
  90. public virtual void Update() {
  91. SharingClientPINVOKE.SharingManager_Update(swigCPtr);
  92. }
  93.  
  94. public virtual NetworkConnection GetPairedConnection() {
  95. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetPairedConnection(swigCPtr);
  96. NetworkConnection ret = (cPtr == global::System.IntPtr.Zero) ? null : new NetworkConnection(cPtr, true);
  97. return ret;
  98. }
  99.  
  100. public virtual NetworkConnection GetServerConnection() {
  101. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetServerConnection(swigCPtr);
  102. NetworkConnection ret = (cPtr == global::System.IntPtr.Zero) ? null : new NetworkConnection(cPtr, true);
  103. return ret;
  104. }
  105.  
  106. public virtual Settings GetSettings() {
  107. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetSettings(swigCPtr);
  108. Settings ret = (cPtr == global::System.IntPtr.Zero) ? null : new Settings(cPtr, true);
  109. return ret;
  110. }
  111.  
  112. public virtual void SetServerConnectionInfo(XString address, uint port) {
  113. SharingClientPINVOKE.SharingManager_SetServerConnectionInfo(swigCPtr, XString.getCPtr(address), port);
  114. }
  115.  
  116. public virtual User GetLocalUser() {
  117. global::System.IntPtr cPtr = SharingClientPINVOKE.SharingManager_GetLocalUser(swigCPtr);
  118. User ret = (cPtr == global::System.IntPtr.Zero) ? null : new User(cPtr, true);
  119. return ret;
  120. }
  121.  
  122. public virtual void SetUserName(XString name) {
  123. SharingClientPINVOKE.SharingManager_SetUserName(swigCPtr, XString.getCPtr(name));
  124. }
  125.  
  126. }
  127.  
  128. }