XcapSelector.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. namespace org.doubango.tinyWRAP {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. public class XcapSelector : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal XcapSelector(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(XcapSelector obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~XcapSelector() {
  22. Dispose();
  23. }
  24. public virtual void Dispose() {
  25. lock(this) {
  26. if (swigCPtr.Handle != IntPtr.Zero) {
  27. if (swigCMemOwn) {
  28. swigCMemOwn = false;
  29. tinyWRAPPINVOKE.delete_XcapSelector(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public XcapSelector(XcapStack stack) : this(tinyWRAPPINVOKE.new_XcapSelector(XcapStack.getCPtr(stack)), true) {
  37. }
  38. public XcapSelector setAUID(string auid) {
  39. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setAUID(swigCPtr, auid);
  40. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  41. return ret;
  42. }
  43. public XcapSelector setName(string qname) {
  44. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setName(swigCPtr, qname);
  45. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  46. return ret;
  47. }
  48. public XcapSelector setAttribute(string qname, string att_qname, string att_value) {
  49. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setAttribute(swigCPtr, qname, att_qname, att_value);
  50. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  51. return ret;
  52. }
  53. public XcapSelector setPos(string qname, uint pos) {
  54. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setPos(swigCPtr, qname, pos);
  55. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  56. return ret;
  57. }
  58. public XcapSelector setPosAttribute(string qname, uint pos, string att_qname, string att_value) {
  59. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setPosAttribute(swigCPtr, qname, pos, att_qname, att_value);
  60. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  61. return ret;
  62. }
  63. public XcapSelector setNamespace(string prefix, string value) {
  64. IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setNamespace(swigCPtr, prefix, value);
  65. XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);
  66. return ret;
  67. }
  68. public string getString() {
  69. string ret = tinyWRAPPINVOKE.XcapSelector_getString(swigCPtr);
  70. return ret;
  71. }
  72. public void reset() {
  73. tinyWRAPPINVOKE.XcapSelector_reset(swigCPtr);
  74. }
  75. }
  76. }