OSDN Git Service

Pick Ref: Prepare ref picker to be able to leave out some ref types.
[tortoisegit/TortoiseGitJp.git] / contrib / issue-tracker-plugins / Interop.BugTraqProvider / IBugTraqProvider.cs
1 using System;\r
2 using System.Runtime.InteropServices;\r
3 \r
4 namespace Interop.BugTraqProvider\r
5 {\r
6     [ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("298B927C-7220-423C-B7B4-6E241F00CD93")]\r
7     public interface IBugTraqProvider\r
8     {\r
9         [return: MarshalAs(UnmanagedType.VariantBool)]\r
10         bool ValidateParameters(IntPtr hParentWnd,\r
11             [MarshalAs(UnmanagedType.BStr)] string parameters);\r
12 \r
13         [return: MarshalAs(UnmanagedType.BStr)]\r
14         string GetLinkText(IntPtr hParentWnd,\r
15             [MarshalAs(UnmanagedType.BStr)] string parameters);\r
16 \r
17         [return: MarshalAs(UnmanagedType.BStr)]\r
18         string GetCommitMessage(IntPtr hParentWnd,\r
19             [MarshalAs(UnmanagedType.BStr)] string parameters,\r
20             [MarshalAs(UnmanagedType.BStr)] string commonRoot,\r
21             [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=VarEnum.VT_BSTR)] string[] pathList,\r
22             [MarshalAs(UnmanagedType.BStr)] string originalMessage);\r
23     }\r
24 \r
25         [ComVisible( true ), InterfaceType( ComInterfaceType.InterfaceIsIUnknown ), Guid( "C5C85E31-2F9B-4916-A7BA-8E27D481EE83" )]\r
26         public interface IBugTraqProvider2\r
27         {\r
28                 [return: MarshalAs( UnmanagedType.VariantBool )]\r
29                 bool ValidateParameters( IntPtr hParentWnd,\r
30                         [MarshalAs( UnmanagedType.BStr )] string parameters );\r
31 \r
32                 [return: MarshalAs( UnmanagedType.BStr )]\r
33                 string GetLinkText( IntPtr hParentWnd,\r
34                         [MarshalAs( UnmanagedType.BStr )] string parameters );\r
35 \r
36                 [return: MarshalAs( UnmanagedType.BStr )]\r
37                 string GetCommitMessage( IntPtr hParentWnd,\r
38                         [MarshalAs( UnmanagedType.BStr )] string parameters,\r
39                         [MarshalAs( UnmanagedType.BStr )] string commonRoot,\r
40                         [MarshalAs( UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR )] string[] pathList,\r
41                         [MarshalAs( UnmanagedType.BStr )] string originalMessage );\r
42 \r
43                 [return: MarshalAs( UnmanagedType.BStr )]\r
44                 string GetCommitMessage2( IntPtr hParentWnd,\r
45                         [MarshalAs( UnmanagedType.BStr )] string parameters,\r
46                         [MarshalAs( UnmanagedType.BStr )] string commonURL,\r
47                         [MarshalAs( UnmanagedType.BStr )] string commonRoot,\r
48                         [MarshalAs( UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR )] string[] pathList,\r
49                         [MarshalAs( UnmanagedType.BStr )] string originalMessage );\r
50 \r
51                 [return: MarshalAs( UnmanagedType.BStr )]\r
52                 string OnCommitFinished(\r
53                         IntPtr hParentWnd,\r
54                         [MarshalAs( UnmanagedType.BStr )] string commonRoot,\r
55                         [MarshalAs( UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR )] string[] pathList,\r
56                         [MarshalAs( UnmanagedType.BStr )] string logMessage,\r
57                         [MarshalAs( UnmanagedType.U4 )] int revision );\r
58 \r
59                 [return: MarshalAs( UnmanagedType.VariantBool )]\r
60                 bool HasOptions( );\r
61 \r
62                 [return: MarshalAs( UnmanagedType.BStr )]\r
63                 string ShowOptionsDialog(\r
64                         IntPtr hParentWnd,\r
65                         [MarshalAs( UnmanagedType.BStr )] string parameters );\r
66         } \r
67 }\r