~ubuntu-branches/ubuntu/jaunty/lasso/jaunty

« back to all changes in this revision

Viewing changes to csharp/Identity.cs

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-11-25 19:20:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051125192059-m4894lhpynmkrmwr
Tags: 0.6.3-4ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ----------------------------------------------------------------------------
2
 
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.24
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
 
 
9
 
namespace lasso {
10
 
 
11
 
using System;
12
 
 
13
 
public class Identity : IDisposable {
14
 
  private IntPtr swigCPtr;
15
 
  protected bool swigCMemOwn;
16
 
 
17
 
  internal Identity(IntPtr cPtr, bool cMemoryOwn) {
18
 
    swigCMemOwn = cMemoryOwn;
19
 
    swigCPtr = cPtr;
20
 
  }
21
 
 
22
 
  internal static IntPtr getCPtr(Identity obj) {
23
 
    return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
24
 
  }
25
 
 
26
 
  ~Identity() {
27
 
    Dispose();
28
 
  }
29
 
 
30
 
  public virtual void Dispose() {
31
 
    if(swigCPtr != IntPtr.Zero && swigCMemOwn) {
32
 
      swigCMemOwn = false;
33
 
      lassoPINVOKE.delete_Identity(swigCPtr);
34
 
    }
35
 
    swigCPtr = IntPtr.Zero;
36
 
    GC.SuppressFinalize(this);
37
 
  }
38
 
 
39
 
  public bool isDirty {
40
 
    get {
41
 
      return lassoPINVOKE.get_Identity_isDirty(swigCPtr);
42
 
    } 
43
 
  }
44
 
 
45
 
  public StringList providerIds {
46
 
    get {
47
 
      IntPtr cPtr = lassoPINVOKE.get_Identity_providerIds(swigCPtr);
48
 
      return (cPtr == IntPtr.Zero) ? null : new StringList(cPtr, false);
49
 
    } 
50
 
  }
51
 
 
52
 
  public Identity() : this(lassoPINVOKE.new_Identity(), true) {
53
 
  }
54
 
 
55
 
  public static Identity newFromDump(string dump) {
56
 
    IntPtr cPtr = lassoPINVOKE.Identity_newFromDump(dump);
57
 
    return (cPtr == IntPtr.Zero) ? null : new Identity(cPtr, true);
58
 
  }
59
 
 
60
 
  public string dump() {
61
 
    return lassoPINVOKE.Identity_dump(swigCPtr);
62
 
  }
63
 
 
64
 
  public Federation getFederation(string providerId) {
65
 
    IntPtr cPtr = lassoPINVOKE.Identity_getFederation(swigCPtr, providerId);
66
 
    return (cPtr == IntPtr.Zero) ? null : new Federation(cPtr, false);
67
 
  }
68
 
 
69
 
}
70
 
 
71
 
}