ntwain/NTwain/ICapControl.cs

55 lines
1.7 KiB
C#
Raw Normal View History

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>
/// <returns></returns>
2014-11-08 09:22:58 +08:00
ReturnCode CapResetAll();
2014-09-18 08:15:05 +08:00
}
}