using NTwain.Data; using System.Collections.Generic; namespace NTwain.Internals { interface ITwainSessionInternal : ITwainSession { /// /// Gets the app id used for the session. /// /// TWIdentity AppId { get; } /// /// Gets or sets a value indicating whether calls to triplets will verify the current twain session state. /// /// /// true if state value is enforced; otherwise, false. /// bool EnforceState { get; set; } /// /// Changes the state right away. /// /// The new state. /// if set to true to notify change. void ChangeState(int newState, bool notifyChange); /// /// Gets the pending state changer and tentatively changes the session state to the specified value. /// Value will only stick if committed. /// /// The new state. /// ICommittable GetPendingStateChanger(int newState); void ChangeSourceId(TWIdentity sourceId); ReturnCode DisableSource(); void SafeSyncableRaiseEvent(DataTransferredEventArgs e); void SafeSyncableRaiseEvent(TransferErrorEventArgs e); void SafeSyncableRaiseEvent(TransferReadyEventArgs e); } }