diff options
author | sr55 <[email protected]> | 2010-06-04 20:46:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-06-04 20:46:45 +0000 |
commit | 976158ef1ad55f52c425bd9d01b96a3d5f68b6b4 (patch) | |
tree | c8014c5c49da6a5f2f76d0e58fd0b7616d39609b | |
parent | b8bab98e11aa16cef3c9762ca1f68906ce828d58 (diff) |
WinGui:
#interop
- Integrated Stylecop into the 2008 solution
- Added file headers
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3354 b64f7644-9d1e-0410-96f1-a4d463321fa5
38 files changed, 394 insertions, 60 deletions
diff --git a/win/C#/interop/DisplayStringAttribute.cs b/win/C#/interop/DisplayStringAttribute.cs index 7c1f54768..1d1c7e425 100644 --- a/win/C#/interop/DisplayStringAttribute.cs +++ b/win/C#/interop/DisplayStringAttribute.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="DisplayStringAttribute.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the DisplayStringAttribute type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
diff --git a/win/C#/interop/EncodeProgressEventArgs.cs b/win/C#/interop/EncodeProgressEventArgs.cs index 9500bdaaf..9ebcada9e 100644 --- a/win/C#/interop/EncodeProgressEventArgs.cs +++ b/win/C#/interop/EncodeProgressEventArgs.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="EncodeProgressEventArgs.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the EncodeProgressEventArgs type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
diff --git a/win/C#/interop/HandBrakeInstance.cs b/win/C#/interop/HandBrakeInstance.cs index c50fc043b..a636a1b6a 100644 --- a/win/C#/interop/HandBrakeInstance.cs +++ b/win/C#/interop/HandBrakeInstance.cs @@ -1,6 +1,11 @@ -using HandBrake.Interop.Model;
-using HandBrake.Interop.Model.Encoding;
-using HandBrake.Interop.SourceData;
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="HandBrakeInstance.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// A wrapper for a HandBrake instance.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop
{
@@ -10,6 +15,9 @@ namespace HandBrake.Interop using System.Linq;
using System.Runtime.InteropServices;
using System.Windows.Media.Imaging;
+ using Model;
+ using Model.Encoding;
+ using SourceData;
/// <summary>
/// A wrapper for a HandBrake instance.
diff --git a/win/C#/interop/HandBrakeInterop.csproj b/win/C#/interop/HandBrakeInterop.csproj index 95268478b..327286921 100644 --- a/win/C#/interop/HandBrakeInterop.csproj +++ b/win/C#/interop/HandBrakeInterop.csproj @@ -64,7 +64,6 @@ <RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
- <Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
@@ -133,6 +132,7 @@ </BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.StyleCop.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
diff --git a/win/C#/interop/HbLib.cs b/win/C#/interop/HbLib.cs index da72521dd..7a5e420e7 100644 --- a/win/C#/interop/HbLib.cs +++ b/win/C#/interop/HbLib.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="HbLib.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the NativeConstants type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
using System.Runtime.InteropServices;
diff --git a/win/C#/interop/InteropUtilities.cs b/win/C#/interop/InteropUtilities.cs index 05f5bfa6e..c845933e5 100644 --- a/win/C#/interop/InteropUtilities.cs +++ b/win/C#/interop/InteropUtilities.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="InteropUtilities.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Helper utilities for native interop.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
using System.Collections.Generic;
diff --git a/win/C#/interop/Language.cs b/win/C#/interop/Language.cs index e36110585..f16f80c2b 100644 --- a/win/C#/interop/Language.cs +++ b/win/C#/interop/Language.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Language.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Represents a language.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
/// <summary>
/// Represents a language.
diff --git a/win/C#/interop/LanguageCodes.cs b/win/C#/interop/LanguageCodes.cs index e83edfc1b..11e935e3b 100644 --- a/win/C#/interop/LanguageCodes.cs +++ b/win/C#/interop/LanguageCodes.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="LanguageCodes.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Contains utilities for converting language codes.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System.Collections.Generic;
diff --git a/win/C#/interop/MessageLoggedEventArgs.cs b/win/C#/interop/MessageLoggedEventArgs.cs index 3956827ff..81b77ed0e 100644 --- a/win/C#/interop/MessageLoggedEventArgs.cs +++ b/win/C#/interop/MessageLoggedEventArgs.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="MessageLoggedEventArgs.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the MessageLoggedEventArgs type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
diff --git a/win/C#/interop/Model/Cropping.cs b/win/C#/interop/Model/Cropping.cs index bc5aad24e..e717e7e4b 100644 --- a/win/C#/interop/Model/Cropping.cs +++ b/win/C#/interop/Model/Cropping.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Cropping.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Cropping type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
public class Cropping
{
diff --git a/win/C#/interop/Model/EncodeJob.cs b/win/C#/interop/Model/EncodeJob.cs index 54f8ec194..6ae23c7c5 100644 --- a/win/C#/interop/Model/EncodeJob.cs +++ b/win/C#/interop/Model/EncodeJob.cs @@ -1,8 +1,18 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="EncodeJob.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the EncodeJob type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
+ using Encoding;
public class EncodeJob
{
diff --git a/win/C#/interop/Model/Encoding/Anamorphic.cs b/win/C#/interop/Model/Encoding/Anamorphic.cs index 20007296e..0d6206089 100644 --- a/win/C#/interop/Model/Encoding/Anamorphic.cs +++ b/win/C#/interop/Model/Encoding/Anamorphic.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Anamorphic.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Anamorphic type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Anamorphic
{
diff --git a/win/C#/interop/Model/Encoding/AudioEncoder.cs b/win/C#/interop/Model/Encoding/AudioEncoder.cs index cfa213f16..4a3a25181 100644 --- a/win/C#/interop/Model/Encoding/AudioEncoder.cs +++ b/win/C#/interop/Model/Encoding/AudioEncoder.cs @@ -1,4 +1,12 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="AudioEncoder.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the AudioEncoder type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+namespace HandBrake.Interop.Model.Encoding
{
public enum AudioEncoder
{
diff --git a/win/C#/interop/Model/Encoding/AudioEncoding.cs b/win/C#/interop/Model/Encoding/AudioEncoding.cs index b329ab419..e9f8ad7ac 100644 --- a/win/C#/interop/Model/Encoding/AudioEncoding.cs +++ b/win/C#/interop/Model/Encoding/AudioEncoding.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="AudioEncoding.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the AudioEncoding type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public class AudioEncoding
{
diff --git a/win/C#/interop/Model/Encoding/Decomb.cs b/win/C#/interop/Model/Encoding/Decomb.cs index 263f9375f..55c17d8c3 100644 --- a/win/C#/interop/Model/Encoding/Decomb.cs +++ b/win/C#/interop/Model/Encoding/Decomb.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Decomb.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Decomb type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Decomb
{
diff --git a/win/C#/interop/Model/Encoding/Deinterlace.cs b/win/C#/interop/Model/Encoding/Deinterlace.cs index 6729b274a..d7ed94b9e 100644 --- a/win/C#/interop/Model/Encoding/Deinterlace.cs +++ b/win/C#/interop/Model/Encoding/Deinterlace.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Deinterlace.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Deinterlace type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Deinterlace
{
diff --git a/win/C#/interop/Model/Encoding/Denoise.cs b/win/C#/interop/Model/Encoding/Denoise.cs index 4a53d6870..6d97ecaf9 100644 --- a/win/C#/interop/Model/Encoding/Denoise.cs +++ b/win/C#/interop/Model/Encoding/Denoise.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Denoise.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Denoise type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Denoise
{
diff --git a/win/C#/interop/Model/Encoding/Detelecine.cs b/win/C#/interop/Model/Encoding/Detelecine.cs index c9f68442a..fa0c3e72d 100644 --- a/win/C#/interop/Model/Encoding/Detelecine.cs +++ b/win/C#/interop/Model/Encoding/Detelecine.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Detelecine.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Detelecine type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Detelecine
{
diff --git a/win/C#/interop/Model/Encoding/EncodingProfile.cs b/win/C#/interop/Model/Encoding/EncodingProfile.cs index 57d7d5dfe..09a94d781 100644 --- a/win/C#/interop/Model/Encoding/EncodingProfile.cs +++ b/win/C#/interop/Model/Encoding/EncodingProfile.cs @@ -1,12 +1,15 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using HandBrake.Interop.Model;
-using HandBrake.Interop.Model.Encoding;
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="EncodingProfile.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the EncodingProfile type.
+// </summary>
-namespace HandBrake.Interop
+namespace HandBrake.Interop.Model.Encoding
{
+ using System.Collections.Generic;
+
public class EncodingProfile
{
public EncodingProfile()
diff --git a/win/C#/interop/Model/Encoding/Mixdown.cs b/win/C#/interop/Model/Encoding/Mixdown.cs index aca5c6717..979688b63 100644 --- a/win/C#/interop/Model/Encoding/Mixdown.cs +++ b/win/C#/interop/Model/Encoding/Mixdown.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Mixdown.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Mixdown type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum Mixdown
{
diff --git a/win/C#/interop/Model/Encoding/OutputExtension.cs b/win/C#/interop/Model/Encoding/OutputExtension.cs index 04fbea13a..20dfa1e33 100644 --- a/win/C#/interop/Model/Encoding/OutputExtension.cs +++ b/win/C#/interop/Model/Encoding/OutputExtension.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="OutputExtension.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the OutputExtension type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum OutputExtension
{
diff --git a/win/C#/interop/Model/Encoding/OutputFormat.cs b/win/C#/interop/Model/Encoding/OutputFormat.cs index a0dc0dd00..5ac1f05a2 100644 --- a/win/C#/interop/Model/Encoding/OutputFormat.cs +++ b/win/C#/interop/Model/Encoding/OutputFormat.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="OutputFormat.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the OutputFormat type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum OutputFormat
{
diff --git a/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs index fa081de59..3480ed884 100644 --- a/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs +++ b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="VideoEncodeRateType.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the VideoEncodeRateType type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum VideoEncodeRateType
{
diff --git a/win/C#/interop/Model/Encoding/VideoEncoder.cs b/win/C#/interop/Model/Encoding/VideoEncoder.cs index 47f0b81c1..921675bc4 100644 --- a/win/C#/interop/Model/Encoding/VideoEncoder.cs +++ b/win/C#/interop/Model/Encoding/VideoEncoder.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model.Encoding
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="VideoEncoder.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the VideoEncoder type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding
{
public enum VideoEncoder
{
diff --git a/win/C#/interop/Model/Size.cs b/win/C#/interop/Model/Size.cs index 971365aff..18c2023d2 100644 --- a/win/C#/interop/Model/Size.cs +++ b/win/C#/interop/Model/Size.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Size.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Size type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
public class Size
{
diff --git a/win/C#/interop/Model/SourceSubtitle.cs b/win/C#/interop/Model/SourceSubtitle.cs index 992209dfe..8c386546c 100644 --- a/win/C#/interop/Model/SourceSubtitle.cs +++ b/win/C#/interop/Model/SourceSubtitle.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SourceSubtitle.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the SourceSubtitle type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
public class SourceSubtitle
{
diff --git a/win/C#/interop/Model/SourceType.cs b/win/C#/interop/Model/SourceType.cs index f720a99ea..dfbfe87f1 100644 --- a/win/C#/interop/Model/SourceType.cs +++ b/win/C#/interop/Model/SourceType.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SourceType.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the SourceType type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
public enum SourceType
{
diff --git a/win/C#/interop/Model/SrtSubtitle.cs b/win/C#/interop/Model/SrtSubtitle.cs index 88635821e..ce1d33577 100644 --- a/win/C#/interop/Model/SrtSubtitle.cs +++ b/win/C#/interop/Model/SrtSubtitle.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SrtSubtitle.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the SrtSubtitle type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
public class SrtSubtitle
{
diff --git a/win/C#/interop/Model/Subtitles.cs b/win/C#/interop/Model/Subtitles.cs index 10506d9af..b66733ff7 100644 --- a/win/C#/interop/Model/Subtitles.cs +++ b/win/C#/interop/Model/Subtitles.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.Model
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Subtitles.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the Subtitles type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
{
using System.Collections.Generic;
diff --git a/win/C#/interop/NativeList.cs b/win/C#/interop/NativeList.cs index e0fd1bed0..934803b55 100644 --- a/win/C#/interop/NativeList.cs +++ b/win/C#/interop/NativeList.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="NativeList.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Represents a HandBrake style native list.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
using System.Collections.Generic;
diff --git a/win/C#/interop/Properties/AssemblyInfo.cs b/win/C#/interop/Properties/AssemblyInfo.cs index dcff50cc5..7e4107e12 100644 --- a/win/C#/interop/Properties/AssemblyInfo.cs +++ b/win/C#/interop/Properties/AssemblyInfo.cs @@ -8,9 +8,9 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("HandBrakeInterop")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyCompany("HandBrake Team")]
[assembly: AssemblyProduct("HandBrakeInterop")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
+[assembly: AssemblyCopyright("Copyright © HandBrake Team")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/win/C#/interop/ScanProgressEventArgs.cs b/win/C#/interop/ScanProgressEventArgs.cs index 5c0186bb0..596d71aaf 100644 --- a/win/C#/interop/ScanProgressEventArgs.cs +++ b/win/C#/interop/ScanProgressEventArgs.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="ScanProgressEventArgs.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the ScanProgressEventArgs type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop
{
using System;
diff --git a/win/C#/interop/Settings.StyleCop b/win/C#/interop/Settings.StyleCop new file mode 100644 index 000000000..d30ab223a --- /dev/null +++ b/win/C#/interop/Settings.StyleCop @@ -0,0 +1,47 @@ +<StyleCopSettings Version="4.3">
+ <GlobalSettings>
+ <StringProperty Name="MergeSettingsFiles">Parent</StringProperty>
+ </GlobalSettings>
+ <Analyzers>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
+ <Rules>
+ <Rule Name="FileHeaderMustShowCopyright">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveCopyrightText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustContainFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveValidCompanyText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileMustHaveHeader">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">True</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ </Analyzers>
+</StyleCopSettings>
\ No newline at end of file diff --git a/win/C#/interop/SourceData/AudioTrack.cs b/win/C#/interop/SourceData/AudioTrack.cs index 13408b3dd..5e5d4674d 100644 --- a/win/C#/interop/SourceData/AudioTrack.cs +++ b/win/C#/interop/SourceData/AudioTrack.cs @@ -1,7 +1,11 @@ -/* AudioTrack.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="AudioTrack.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// An object represending an AudioTrack associated with a Title, in a DVD
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.SourceData
{
diff --git a/win/C#/interop/SourceData/Chapter.cs b/win/C#/interop/SourceData/Chapter.cs index 25c82c6e4..a5a0b8151 100644 --- a/win/C#/interop/SourceData/Chapter.cs +++ b/win/C#/interop/SourceData/Chapter.cs @@ -1,7 +1,11 @@ -/* Chapter.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Chapter.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// An object representing a Chapter aosciated with a Title, in a DVD
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.SourceData
{
diff --git a/win/C#/interop/SourceData/Subtitle.cs b/win/C#/interop/SourceData/Subtitle.cs index af9dc2311..2e186edcf 100644 --- a/win/C#/interop/SourceData/Subtitle.cs +++ b/win/C#/interop/SourceData/Subtitle.cs @@ -1,7 +1,11 @@ -/* Subtitle.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Subtitle.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// An object that represents a subtitle associated with a Title, in a DVD
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.SourceData
{
diff --git a/win/C#/interop/SourceData/SubtitleType.cs b/win/C#/interop/SourceData/SubtitleType.cs index 8955c7aff..419b1b515 100644 --- a/win/C#/interop/SourceData/SubtitleType.cs +++ b/win/C#/interop/SourceData/SubtitleType.cs @@ -1,4 +1,13 @@ -namespace HandBrake.Interop.SourceData
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SubtitleType.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the SubtitleType type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.SourceData
{
public enum SubtitleType
{
diff --git a/win/C#/interop/SourceData/Title.cs b/win/C#/interop/SourceData/Title.cs index 0d3da5d3a..865891c89 100644 --- a/win/C#/interop/SourceData/Title.cs +++ b/win/C#/interop/SourceData/Title.cs @@ -1,15 +1,18 @@ -/* Title.cs $
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.fr>.
- It may be used under the terms of the GNU General Public License. */
-
-using HandBrake.Interop.Model;
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Title.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// An object that represents a single Title of a DVD
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.SourceData
{
using System;
using System.Collections.Generic;
using System.Globalization;
+ using Model;
/// <summary>
/// An object that represents a single Title of a DVD
|