CanEasy COM-Help
CanEasy::IHardwareConfigurationCol Interface Reference

Inherits IDispatch.

Detailed Description

Collection of IHardwareConfiguration

interface IHardwareConfigurationCol : IDispatch
{
//VSTAHidden
HRESULT _NewEnum([out, retval] IUnknown** ppItem);
HRESULT Item([in] VARIANT vIndex, [out, retval] IHardwareConfiguration**);
HRESULT Workstation([out, retval] IHardwareConfiguration**);
HRESULT AddEmptyConfiguration([in] BSTR sName, [out, retval] IHardwareConfiguration**);
HRESULT AddCopyOfConfiguration([in] BSTR sName, [in] IHardwareConfiguration* pBase, [out, retval] IHardwareConfiguration**);
HRESULT Import([in] BSTR sFile);
HRESULT Export([in] BSTR sFile);
HRESULT Delete();
HRESULT Count([out, retval] LONG* pCount);
};

Definition at line 8971 of file cand_tlb.idl.

Member Function Documentation

◆ AddCopyOfConfiguration()

HRESULT CanEasy::IHardwareConfigurationCol::AddCopyOfConfiguration ( [in] BSTR  sName,
[in] IHardwareConfiguration pBase,
[out, retval] IHardwareConfiguration **   
)

Adds a new configuration as copy

Parameters
sNameName of the configuration
pBasePointer to configuration to copy
Returns
New created configuration

◆ AddEmptyConfiguration()

HRESULT CanEasy::IHardwareConfigurationCol::AddEmptyConfiguration ( [in] BSTR  sName,
[out, retval] IHardwareConfiguration **   
)

Adds a new empty configuration

Parameters
sNameName of the configuration
Returns
New created configuration

◆ Delete()

HRESULT CanEasy::IHardwareConfigurationCol::Delete ( )

Deletes this collection

◆ Export()

HRESULT CanEasy::IHardwareConfigurationCol::Export ( [in] BSTR  sFile)

Exports all configurations to xml file

Parameters
sFileFile to export

◆ Import()

HRESULT CanEasy::IHardwareConfigurationCol::Import ( [in] BSTR  sFile)

Imports a configuration form xml file

Parameters
sFileFile to import

Property Documentation

◆ _NewEnum

IUnknown CanEasy::IHardwareConfigurationCol::_NewEnum
get

Returns enumerator of type IEnumVARIANT

◆ Count

LONG CanEasy::IHardwareConfigurationCol::Count
get

Returns the count of hardware configurations

◆ Item

IHardwareConfiguration CanEasy::IHardwareConfigurationCol::Item([in] VARIANT vIndex)
get

Returns item by name or by index (starting from 1)

◆ Workstation

IHardwareConfiguration CanEasy::IHardwareConfigurationCol::Workstation
get

Returns the workstation configuration.

Just this configuration is shared between all users and stored in xml file. All other configurations are saved in the workspace.

CanEasy::IHardwareConfigurationCol::AddEmptyConfiguration
HRESULT AddEmptyConfiguration([in] BSTR sName, [out, retval] IHardwareConfiguration **)
CanEasy::IHardwareConfigurationCol::Delete
HRESULT Delete()
CanEasy::IHardwareConfigurationCol::Count
LONG Count
CanEasy::IHardwareConfigurationCol::Import
HRESULT Import([in] BSTR sFile)
CanEasy::IHardwareConfigurationCol::AddCopyOfConfiguration
HRESULT AddCopyOfConfiguration([in] BSTR sName, [in] IHardwareConfiguration *pBase, [out, retval] IHardwareConfiguration **)
CanEasy::IHardwareConfigurationCol::Item
IHardwareConfiguration Item([in] VARIANT vIndex)
CanEasy::IHardwareConfigurationCol::Workstation
IHardwareConfiguration Workstation
Returns the workstation configuration.
CanEasy::IHardwareConfigurationCol::_NewEnum
IUnknown _NewEnum
CanEasy::IHardwareConfigurationCol::Export
HRESULT Export([in] BSTR sFile)