root / trunk / Pithos.ShellExtensions / Overlays / AddedIcodOverlay.cs @ f3d080df
History | View | Annotate | Download (2.6 kB)
1 | 0eea575a | Panagiotis Kanavos | // ----------------------------------------------------------------------- |
---|---|---|---|
2 | f3d080df | Panagiotis Kanavos | // <copyright file="AddedIcodOverlay.cs" company="GRNET"> |
3 | f3d080df | Panagiotis Kanavos | // Copyright 2011 GRNET S.A. All rights reserved. |
4 | f3d080df | Panagiotis Kanavos | // |
5 | f3d080df | Panagiotis Kanavos | // Redistribution and use in source and binary forms, with or |
6 | f3d080df | Panagiotis Kanavos | // without modification, are permitted provided that the following |
7 | f3d080df | Panagiotis Kanavos | // conditions are met: |
8 | f3d080df | Panagiotis Kanavos | // |
9 | f3d080df | Panagiotis Kanavos | // 1. Redistributions of source code must retain the above |
10 | f3d080df | Panagiotis Kanavos | // copyright notice, this list of conditions and the following |
11 | f3d080df | Panagiotis Kanavos | // disclaimer. |
12 | f3d080df | Panagiotis Kanavos | // |
13 | f3d080df | Panagiotis Kanavos | // 2. Redistributions in binary form must reproduce the above |
14 | f3d080df | Panagiotis Kanavos | // copyright notice, this list of conditions and the following |
15 | f3d080df | Panagiotis Kanavos | // disclaimer in the documentation and/or other materials |
16 | f3d080df | Panagiotis Kanavos | // provided with the distribution. |
17 | f3d080df | Panagiotis Kanavos | // |
18 | f3d080df | Panagiotis Kanavos | // THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
19 | f3d080df | Panagiotis Kanavos | // OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
20 | f3d080df | Panagiotis Kanavos | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
21 | f3d080df | Panagiotis Kanavos | // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
22 | f3d080df | Panagiotis Kanavos | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 | f3d080df | Panagiotis Kanavos | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 | f3d080df | Panagiotis Kanavos | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
25 | f3d080df | Panagiotis Kanavos | // USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
26 | f3d080df | Panagiotis Kanavos | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
27 | f3d080df | Panagiotis Kanavos | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
28 | f3d080df | Panagiotis Kanavos | // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
29 | f3d080df | Panagiotis Kanavos | // POSSIBILITY OF SUCH DAMAGE. |
30 | f3d080df | Panagiotis Kanavos | // |
31 | f3d080df | Panagiotis Kanavos | // The views and conclusions contained in the software and |
32 | f3d080df | Panagiotis Kanavos | // documentation are those of the authors and should not be |
33 | f3d080df | Panagiotis Kanavos | // interpreted as representing official policies, either expressed |
34 | f3d080df | Panagiotis Kanavos | // or implied, of GRNET S.A. |
35 | 0eea575a | Panagiotis Kanavos | // </copyright> |
36 | 0eea575a | Panagiotis Kanavos | // ----------------------------------------------------------------------- |
37 | 0eea575a | Panagiotis Kanavos | |
38 | 0eea575a | Panagiotis Kanavos | using System.Runtime.InteropServices; |
39 | 0eea575a | Panagiotis Kanavos | |
40 | 0eea575a | Panagiotis Kanavos | namespace Pithos.ShellExtensions.Overlays |
41 | 0eea575a | Panagiotis Kanavos | { |
42 | 0eea575a | Panagiotis Kanavos | using System; |
43 | 0eea575a | Panagiotis Kanavos | using System.Collections.Generic; |
44 | 0eea575a | Panagiotis Kanavos | using System.Linq; |
45 | 0eea575a | Panagiotis Kanavos | using System.Text; |
46 | 0eea575a | Panagiotis Kanavos | |
47 | 0eea575a | Panagiotis Kanavos | [ClassInterface(ClassInterfaceType.None)] |
48 | 0eea575a | Panagiotis Kanavos | [Guid("EAD1663B-9A03-4E92-80D3-B01B981CD828"), ComVisible(true)] |
49 | 0eea575a | Panagiotis Kanavos | public class AddedIcodOverlay: IconOverlayBase |
50 | 0eea575a | Panagiotis Kanavos | { |
51 | 0eea575a | Panagiotis Kanavos | |
52 | 0eea575a | Panagiotis Kanavos | private static string _iconName = "Added"; |
53 | 0eea575a | Panagiotis Kanavos | |
54 | 0eea575a | Panagiotis Kanavos | public AddedIcodOverlay() |
55 | 0eea575a | Panagiotis Kanavos | : base(_iconName) |
56 | 0eea575a | Panagiotis Kanavos | { |
57 | 0eea575a | Panagiotis Kanavos | |
58 | 0eea575a | Panagiotis Kanavos | } |
59 | 0eea575a | Panagiotis Kanavos | |
60 | 0eea575a | Panagiotis Kanavos | #region Shell Extension Registration |
61 | 0eea575a | Panagiotis Kanavos | [ComRegisterFunction()] |
62 | 0eea575a | Panagiotis Kanavos | public static void Register(Type t) |
63 | 0eea575a | Panagiotis Kanavos | { |
64 | 0eea575a | Panagiotis Kanavos | RegisterOverlay(t,_iconName); |
65 | 0eea575a | Panagiotis Kanavos | } |
66 | 0eea575a | Panagiotis Kanavos | |
67 | 0eea575a | Panagiotis Kanavos | [ComUnregisterFunction] |
68 | 0eea575a | Panagiotis Kanavos | public static void Unregister(Type t) |
69 | 0eea575a | Panagiotis Kanavos | { |
70 | 0eea575a | Panagiotis Kanavos | UnregisterOverlay(t,_iconName); |
71 | 0eea575a | Panagiotis Kanavos | } |
72 | 0eea575a | Panagiotis Kanavos | |
73 | 0eea575a | Panagiotis Kanavos | #endregion |
74 | 0eea575a | Panagiotis Kanavos | } |
75 | 0eea575a | Panagiotis Kanavos | } |