Add license and copyright to all source files in System.Drawing
[mono.git] / mcs / class / System.Configuration.Install / System.Configuration.Install / Installer.cs
1 // System.Configuration.Install.Installer.cs
2 //
3 // Author:
4 //      Alejandro Sánchez Acosta  <raciel@es.gnu.org>
5 //
6 // Alejandro Sánchez Acosta
7 // 
8
9 using System.Collections;
10 using System.ComponentModel;
11 using System.ComponentModel.Design;
12
13 namespace System.Configuration.Install
14 {
15         [DefaultEvent("AfterInstall")]
16 #if (!NET_2_0)
17         // .NET 2.0 (Community Preview) no longer has this attribute
18         [Designer("Microsoft.VisualStudio.Configuration.InstallerDesigner, " + Consts.AssemblyMicrosoft_VisualStudio, typeof(IRootDesigner))]
19 #endif
20         public class Installer : Component
21         {
22                 private InstallContext context;
23                 private string helptext;
24                 private InstallerCollection installers;
25                 internal Installer parent;
26                 
27                 [MonoTODO]
28                 public Installer () {
29                         throw new NotImplementedException ();
30                 }
31
32                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
33                 [BrowsableAttribute(false)]
34                 public InstallContext Context {
35                         get {
36                                 return context;
37                         }
38                         
39                         set {
40                                 context = value;
41                         }
42                 }
43
44                 public virtual string HelpText {
45                         get {
46                                 return helptext;
47                         }
48                 }
49
50                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
51                 [BrowsableAttribute(false)]
52                 public InstallerCollection Installers {
53                         get {
54                                 return installers;
55                         }
56                 }
57
58                 [TypeConverter ("System.Configuration.Design.InstallerParentConverter")]
59                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
60                 [BrowsableAttribute (false)]
61                 public Installer Parent {
62                         get {
63                                 return parent;
64                         }
65                         
66                         set {
67                                 parent = value;
68                         }
69                 }
70                 
71                 [MonoTODO]
72                 public virtual void Commit (IDictionary savedState) 
73                 {
74                         throw new NotImplementedException ();
75                 }
76
77                 [MonoTODO]
78                 public virtual void Install (IDictionary stateSaver)
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 [MonoTODO]
84                 protected virtual void OnAfterInstall (IDictionary savedState)
85                 {
86                         throw new NotImplementedException ();
87                 }
88                 
89                 [MonoTODO]
90                 protected virtual void OnAfterRollback (IDictionary savedState)
91                 {
92                         throw new NotImplementedException ();
93                 }
94
95                 [MonoTODO]
96                 protected virtual void OnAfterUninstall (IDictionary savedState)
97                 {
98                         throw new NotImplementedException ();
99                 }
100                 
101                 [MonoTODO]
102                 protected virtual void OnBeforeInstall (IDictionary savedState)
103                 {
104                         throw new NotImplementedException ();
105                 }
106                 
107                 [MonoTODO]
108                 protected virtual void OnBeforeRollback (IDictionary savedState)
109                 {
110                         throw new NotImplementedException ();
111                 }
112
113                 [MonoTODO]
114                 protected virtual void OnBeforeUninstall (IDictionary savedState)
115                 {
116                         throw new NotImplementedException ();
117                 }
118                 
119                 [MonoTODO]
120                 protected virtual void OnCommitted (IDictionary savedState)
121                 {
122                         throw new NotImplementedException ();
123                 }
124                 
125                 [MonoTODO]
126                 protected virtual void OnCommitting (IDictionary savedState)
127                 {
128                         throw new NotImplementedException ();
129                 }
130                 
131                 [MonoTODO]
132                 public virtual void Rollback (IDictionary savedState)
133                 {
134                         throw new NotImplementedException ();
135                 }
136
137                 [MonoTODO]
138                 public virtual void Uninstall (IDictionary savedState)
139                 {
140                         throw new NotImplementedException ();
141                 }
142                 
143                 public event InstallEventHandler AfterInstall;
144
145                 public event InstallEventHandler AfterRollback;
146
147                 public event InstallEventHandler AfterUninstall;
148
149                 public event InstallEventHandler BeforeInstall;
150
151                 public event InstallEventHandler BeforeRollback;
152                 
153                 public event InstallEventHandler BeforeUninstall;
154
155                 public event InstallEventHandler Committed;
156
157                 public event InstallEventHandler Committing;            
158         }
159 }