Merge branch 'master' of http://github.com/mono/mono
[mono.git] / mcs / class / System.Messaging / System.Messaging / Trustee.cs
1 //\r
2 // System.Messaging\r
3 //\r
4 // Authors:\r
5 //      Peter Van Isacker (sclytrack@planetinternet.be)\r
6 //      Rafael Teixeira   (rafaelteixeirabr@hotmail.com)\r
7 //\r
8 // (C) 2003 Peter Van Isacker\r
9 //\r
10 \r
11 //\r
12 // Permission is hereby granted, free of charge, to any person obtaining\r
13 // a copy of this software and associated documentation files (the\r
14 // "Software"), to deal in the Software without restriction, including\r
15 // without limitation the rights to use, copy, modify, merge, publish,\r
16 // distribute, sublicense, and/or sell copies of the Software, and to\r
17 // permit persons to whom the Software is furnished to do so, subject to\r
18 // the following conditions:\r
19 // \r
20 // The above copyright notice and this permission notice shall be\r
21 // included in all copies or substantial portions of the Software.\r
22 // \r
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
30 //\r
31 using System;\r
32 \r
33 namespace System.Messaging \r
34 {\r
35         public class Trustee \r
36         {\r
37                 [MonoTODO]\r
38                 public Trustee()\r
39                 {\r
40                         this.name = null;\r
41                         this.systemName = null;\r
42                         this.trusteeType = TrusteeType.Unknown;\r
43                 }\r
44                 \r
45                 [MonoTODO("What about systemName?")]\r
46                 public Trustee(string name)\r
47                 {\r
48                         this.name = name;\r
49                         this.systemName = null;\r
50                         this.trusteeType = TrusteeType.Unknown;\r
51                 }\r
52                 \r
53                 private string name;\r
54                 private string systemName;\r
55                 private TrusteeType trusteeType;\r
56                 \r
57                 public Trustee(string name, string systemName)\r
58                 {\r
59                         this.name = name;\r
60                         this.systemName = systemName;\r
61                         this.trusteeType = TrusteeType.Unknown;\r
62                 }\r
63                 \r
64                 public Trustee(string name, string systemName, TrusteeType trusteeType)\r
65                 {\r
66                         this.name = name;\r
67                         this.systemName = systemName;\r
68                         this.trusteeType = trusteeType;\r
69                 }\r
70                 \r
71                 public string Name \r
72                 {\r
73                         get { return name; }\r
74                         set { name = value;}\r
75                 }\r
76                 \r
77                 public string SystemName \r
78                 {\r
79                         get { return systemName; }\r
80                         set { systemName = value;}\r
81                 }\r
82 \r
83                 public TrusteeType TrusteeType\r
84                 {\r
85                         get { return trusteeType; }\r
86                         set { trusteeType = value;}\r
87                 }\r
88         }\r
89 }\r