mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Playing with more interfaces.
This commit is contained in:
70
NTwain/ICapControl.cs
Normal file
70
NTwain/ICapControl.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
using NTwain.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
namespace NTwain
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for providing basic functions at controlling caps.
|
||||
/// </summary>
|
||||
public interface ICapControl : ITripletControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the possible values for a capability.
|
||||
/// </summary>
|
||||
/// <param name="capabilityId">The capability identifier.</param>
|
||||
/// <returns></returns>
|
||||
IList<object> CapGet(CapabilityId capabilityId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current value for a capability.
|
||||
/// </summary>
|
||||
/// <param name="capabilityId">The capability identifier.</param>
|
||||
/// <returns></returns>
|
||||
object CapGetCurrent(CapabilityId capabilityId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the default value for a capability.
|
||||
/// </summary>
|
||||
/// <param name="capabilityId">The capability identifier.</param>
|
||||
/// <returns></returns>
|
||||
object CapGetDefault(CapabilityId capabilityId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the supported operations for a capability.
|
||||
/// </summary>
|
||||
/// <param name="capabilityId">The capability identifier.</param>
|
||||
/// <returns></returns>
|
||||
QuerySupports CapQuerySupport(CapabilityId capabilityId);
|
||||
|
||||
/// <summary>
|
||||
/// Resets the current value to power-on default.
|
||||
/// </summary>
|
||||
/// <param name="capabilityId">The capability identifier.</param>
|
||||
/// <returns></returns>
|
||||
ReturnCode CapReset(CapabilityId capabilityId);
|
||||
|
||||
/// <summary>
|
||||
/// Resets all values and constraints to power-on defaults.
|
||||
/// </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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user