Refactoring xfer logic from twainsession out.

This commit is contained in:
soukoku
2014-04-20 18:42:51 -04:00
parent 1743b8379b
commit 4b08d3bc29
55 changed files with 717 additions and 688 deletions

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class CieColor : OpBase
{
internal CieColor(ITwainStateInternal 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

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ExtImageInfo : OpBase
{
internal ExtImageInfo(ITwainStateInternal session) : base(session) { }
internal ExtImageInfo(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(out TWExtImageInfo info)
{

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class Filter : OpBase
{
internal Filter(ITwainStateInternal session) : base(session) { }
internal Filter(ITwainSessionInternal session) : base(session) { }
/// <summary>

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class GrayResponse : OpBase
{
internal GrayResponse(ITwainStateInternal 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

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class IccProfile : OpBase
{
internal IccProfile(ITwainStateInternal 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

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
sealed class ImageFileXfer : OpBase
{
internal ImageFileXfer(ITwainStateInternal 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

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ImageInfo : OpBase
{
internal ImageInfo(ITwainStateInternal session) : base(session) { }
internal ImageInfo(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(out TWImageInfo info)
{

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ImageLayout : OpBase
{
internal ImageLayout(ITwainStateInternal session) : base(session) { }
internal ImageLayout(ITwainSessionInternal session) : base(session) { }
public ReturnCode Get(out TWImageLayout layout)
{

View File

@@ -5,7 +5,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemFileXfer : OpBase
{
internal ImageMemFileXfer(ITwainStateInternal 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

@@ -5,7 +5,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemXfer : OpBase
{
internal ImageMemXfer(ITwainStateInternal 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(ITwainStateInternal 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

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class JpegCompression : OpBase
{
internal JpegCompression(ITwainStateInternal 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

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

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class RgbResponse : OpBase
{
internal RgbResponse(ITwainStateInternal 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

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