ntwain/NTwain/Triplets/DGControl/DGControl.cs

219 lines
5.3 KiB
C#
Raw Normal View History

2014-04-21 04:57:38 +08:00
using NTwain.Data;
using NTwain.Internals;
2014-04-05 10:19:16 +08:00
using System;
2014-04-03 07:01:21 +08:00
namespace NTwain.Triplets
{
2014-04-05 10:19:16 +08:00
/// <summary>
/// Represents <see cref="DataGroups.Control"/>.
2014-04-03 07:01:21 +08:00
/// </summary>
public sealed class DGControl
{
ITwainSessionInternal _session;
internal DGControl(ITwainSessionInternal session)
2014-04-03 07:01:21 +08:00
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;
}
Callback _callback;
internal Callback Callback
{
get
{
if (_callback == null) { _callback = new Callback(_session); }
return _callback;
}
}
Callback2 _callback2;
internal Callback2 Callback2
{
get
{
if (_callback2 == null) { _callback2 = new Callback2(_session); }
return _callback2;
}
}
Capability _capability;
/// <summary>
/// Gets the operations defined for DAT_CAPABILITY.
/// </summary>
2014-04-03 07:01:21 +08:00
public Capability Capability
{
get
{
if (_capability == null) { _capability = new Capability(_session); }
return _capability;
}
}
CapabilityCustom _capabilityCust;
/// <summary>
/// Gets the operations defined for a custom DAT_* value with capability data.
/// </summary>
public CapabilityCustom CapabilityCustom
{
get
{
if (_capabilityCust == null) { _capabilityCust = new CapabilityCustom(_session); }
return _capabilityCust;
}
}
CustomDSData _customDSData;
/// <summary>
/// Gets the operations defined for DAT_CUSTOMDSDATA.
/// </summary>
2014-04-03 07:01:21 +08:00
public CustomDSData CustomDSData
{
get
{
if (_customDSData == null) { _customDSData = new CustomDSData(_session); }
return _customDSData;
}
}
DeviceEvent _deviceEvent;
2014-05-23 09:05:28 +08:00
internal DeviceEvent DeviceEvent
2014-04-03 07:01:21 +08:00
{
get
{
if (_deviceEvent == null) { _deviceEvent = new DeviceEvent(_session); }
return _deviceEvent;
}
}
EntryPoint _entryPoint;
internal EntryPoint EntryPoint
{
get
{
if (_entryPoint == null) { _entryPoint = new EntryPoint(_session); }
return _entryPoint;
}
}
Event _event;
internal Event Event
{
get
{
if (_event == null) { _event = new Event(_session); }
return _event;
}
}
FileSystem _fileSys;
/// <summary>
/// Gets the operations defined for DAT_FILESYSTEM.
/// </summary>
2014-04-03 07:01:21 +08:00
public FileSystem FileSystem
{
get
{
if (_fileSys == null) { _fileSys = new FileSystem(_session); }
return _fileSys;
}
}
Identity _identity;
2014-05-20 19:25:57 +08:00
internal Identity Identity
2014-04-03 07:01:21 +08:00
{
get
{
if (_identity == null) { _identity = new Identity(_session); }
return _identity;
}
}
Parent _parent;
internal Parent Parent
{
get
{
if (_parent == null) { _parent = new Parent(_session); }
return _parent;
}
}
PassThru _passThru;
/// <summary>
/// Gets the operations defined for DAT_PASSTHRU.
/// </summary>
2014-04-03 07:01:21 +08:00
public PassThru PassThru
{
get
{
if (_passThru == null) { _passThru = new PassThru(_session); }
return _passThru;
}
}
PendingXfers _pendingXfers;
internal PendingXfers PendingXfers
{
get
{
if (_pendingXfers == null) { _pendingXfers = new PendingXfers(_session); }
return _pendingXfers;
}
}
SetupFileXfer _setupFileXfer;
/// <summary>
/// Gets the operations defined for DAT_SETUPFILEXFER.
/// </summary>
2014-04-21 08:45:08 +08:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer")]
public SetupFileXfer SetupFileXfer
2014-04-03 07:01:21 +08:00
{
get
{
if (_setupFileXfer == null) { _setupFileXfer = new SetupFileXfer(_session); }
return _setupFileXfer;
}
}
SetupMemXfer _setupMemXfer;
/// <summary>
/// Gets the operations defined for DAT_SETUPMEMXFER.
/// </summary>
2014-04-21 08:45:08 +08:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem")]
public SetupMemXfer SetupMemXfer
2014-04-03 07:01:21 +08:00
{
get
{
if (_setupMemXfer == null) { _setupMemXfer = new SetupMemXfer(_session); }
return _setupMemXfer;
}
}
Status _status;
2014-05-20 19:25:57 +08:00
internal Status Status
2014-04-03 07:01:21 +08:00
{
get
{
if (_status == null) { _status = new Status(_session); }
return _status;
}
}
StatusUtf8 _statusUtf8;
2014-05-23 09:05:28 +08:00
internal StatusUtf8 StatusUtf8
2014-04-03 07:01:21 +08:00
{
get
{
if (_statusUtf8 == null) { _statusUtf8 = new StatusUtf8(_session); }
return _statusUtf8;
}
}
UserInterface _userInterface;
internal UserInterface UserInterface
{
get
{
if (_userInterface == null) { _userInterface = new UserInterface(_session); }
return _userInterface;
}
}
XferGroup _xferGroup;
/// <summary>
/// Gets the operations defined for DAT_XFERGROUP.
/// </summary>
2014-04-21 08:45:08 +08:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer")]
public XferGroup XferGroup
2014-04-03 07:01:21 +08:00
{
get
{
if (_xferGroup == null) { _xferGroup = new XferGroup(_session); }
return _xferGroup;
}
}
}
}