Some internal refactoring.

This commit is contained in:
soukoku
2014-04-04 07:25:11 -04:00
parent d418b0c751
commit 0d4f60171f
44 changed files with 157 additions and 109 deletions

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class CieColor : OpBase
{
internal CieColor(TwainSession session) : base(session) { }
internal CieColor(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation causes the Source to report the currently active parameters to be used in

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class ExtImageInfo : OpBase
{
internal ExtImageInfo(TwainSession session) : base(session) { }
internal ExtImageInfo(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(TWExtImageInfo info)
{

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class GrayResponse : OpBase
{
internal GrayResponse(TwainSession session) : base(session) { }
internal GrayResponse(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// The Reset operation causes the Source to use its "identity response curve." The identity

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class IccProfile : OpBase
{
internal IccProfile(TwainSession session) : base(session) { }
internal IccProfile(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation provides the application with the ICC profile associated with the image which is

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageFileXfer : OpBase
{
internal ImageFileXfer(TwainSession session) : base(session) { }
internal ImageFileXfer(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class ImageInfo : OpBase
{
internal ImageInfo(TwainSession session) : base(session) { }
internal ImageInfo(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(out TWImageInfo info)
{

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class ImageLayout : OpBase
{
internal ImageLayout(TwainSession session) : base(session) { }
internal ImageLayout(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(out TWImageLayout layout)
{

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemFileXfer : OpBase
{
internal ImageMemFileXfer(TwainSession session) : base(session) { }
internal ImageMemFileXfer(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemXfer : OpBase
{
internal ImageMemXfer(TwainSession session) : base(session) { }
internal ImageMemXfer(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageNativeXfer : OpBase
{
internal ImageNativeXfer(TwainSession session) : base(session) { }
internal ImageNativeXfer(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// Causes the transfer of an images data from the Source to the application, via the Native transfer

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class JpegCompression : OpBase
{
internal JpegCompression(TwainSession session) : base(session) { }
internal JpegCompression(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// Causes the Source to return the parameters that will be used during the compression of data

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class Palette8 : OpBase
{
internal Palette8(TwainSession session) : base(session) { }
internal Palette8(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// This operation causes the Source to report its current palette information.

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
public sealed class RgbResponse : OpBase
{
internal RgbResponse(TwainSession session) : base(session) { }
internal RgbResponse(ITwainSessionInternal session) : base(session) { }
/// <summary>
/// Causes the Source to use its "identity" response curves for future RGB transfers. The identity

View File

@@ -6,8 +6,8 @@ namespace NTwain.Triplets
/// </summary>
public sealed class DGImage
{
TwainSession _session;
internal DGImage(TwainSession session)
ITwainSessionInternal _session;
internal DGImage(ITwainSessionInternal session)
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;