diff options
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs b/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs new file mode 100644 index 000000000..3b964ff8c --- /dev/null +++ b/win/CS/HandBrake.Interop/Interop/Providers/HbFunctionsProvider.cs @@ -0,0 +1,30 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright file="HbFunctionsProvider.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> +// Provides an instance of IHbFunctions for use by the GUI. +// </summary> +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.Interop.Providers +{ + using HandBrake.Interop.Interop.HbLib.Wrappers; + using HandBrake.Interop.Interop.HbLib.Wrappers.Interfaces; + using HandBrake.Interop.Interop.Providers.Interfaces; + + public class HbFunctionsProvider : IHbFunctionsProvider + { + private static IHbFunctions hbFunctions; + + public IHbFunctions GetHbFunctionsWrapper() + { + if (hbFunctions == null) + { + hbFunctions = new HbFunctionsDirect(); + } + + return hbFunctions; + } + } +} |