2014-09-18 08:15:05 +08:00
|
|
|
|
using NTwain.Data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
namespace NTwain
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// Interface for providing basic functions at controlling caps.
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// </summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
public interface ICapControl : ITripletControl
|
2014-09-18 08:15:05 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// Gets all the possible values for a capability.
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// </summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// <returns></returns>
|
|
|
|
|
IList<object> CapGet(CapabilityId capabilityId);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the current value for a capability.
|
|
|
|
|
/// </summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// <returns></returns>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
object CapGetCurrent(CapabilityId capabilityId);
|
2014-09-18 08:15:05 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the default value for a capability.
|
|
|
|
|
/// </summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// <returns></returns>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
object CapGetDefault(CapabilityId capabilityId);
|
|
|
|
|
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// <summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// Gets the supported operations for a capability.
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// </summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// <returns></returns>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
QuerySupports CapQuerySupport(CapabilityId capabilityId);
|
2014-09-18 08:15:05 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Resets the current value to power-on default.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
ReturnCode CapReset(CapabilityId capabilityId);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-09-18 18:46:01 +08:00
|
|
|
|
/// Resets all values and constraints to power-on defaults.
|
2014-09-18 08:15:05 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="capabilityId">The capability identifier.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
ReturnCode CapResetAll(CapabilityId capabilityId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//CapabilityControl<XferMech> CapAudioXferMech { get; }
|
|
|
|
|
//CapabilityControl<BoolType> CapDuplexEnabled { get; }
|
|
|
|
|
//CapabilityControl<BoolType> CapFeederEnabled { get; }
|
|
|
|
|
//CapabilityControl<BoolType> CapImageAutoDeskew { get; }
|
|
|
|
|
//CapabilityControl<BoolType> CapImageAutomaticBorderDetection { get; }
|
|
|
|
|
//CapabilityControl<BoolType> CapImageAutoRotate { get; }
|
|
|
|
|
//CapabilityControl<CompressionType> CapImageCompression { get; }
|
|
|
|
|
//CapabilityControl<FileFormat> CapImageFileFormat { get; }
|
|
|
|
|
//CapabilityControl<PixelType> CapImagePixelType { get; }
|
|
|
|
|
//CapabilityControl<SupportedSize> CapImageSupportedSize { get; }
|
|
|
|
|
//CapabilityControl<XferMech> CapImageXferMech { get; }
|
|
|
|
|
//CapabilityControl<TWFix32> CapImageXResolution { get; }
|
|
|
|
|
//CapabilityControl<TWFix32> CapImageYResolution { get; }
|
|
|
|
|
//CapabilityControl<int> CapXferCount { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|