Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / PestControl / Castle.Applications.PestControl / Services / SourceControl / CvsSourceControl.cs
blob20053862ab93832a66f8abf83dd92013d54e3493
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Applications.PestControl.Services.SourceControl
17 using System;
18 using Castle.Applications.PestControl.Model;
20 /// <summary>
21 /// Summary description for CvsSourceControl.
22 /// </summary>
23 public class CvsSourceControl : ISourceControl
25 ParameterDefinitionCollection _params;
27 public CvsSourceControl()
29 _params = new ParameterDefinitionCollection();
31 _params.Add( new ParameterDefinition("CVS Root") );
32 _params.Add( new ParameterDefinition("Protocol",
33 new string[] { "pserver", "ext", "sspi", "ssh", "gserver", "local" } ) );
34 _params.Add( new ParameterDefinition("Server") );
35 _params.Add( new ParameterDefinition("Port") );
36 _params.Add( new ParameterDefinition("Repository Folder") );
37 _params.Add( new ParameterDefinition("Module") );
38 _params.Add( new ParameterDefinition("User name") );
39 _params.Add( new ParameterDefinition("Password") );
42 #region ISourceControl Members
44 public String Name
46 get { return "CVS Repository"; }
49 public String Key
51 get { return "cvssc"; }
54 public bool HasModifications(Project project, DateTime since)
56 return false;
59 public ParameterDefinitionCollection ParametersDefinition
61 get { return _params; }
64 #endregion