ToiNetService Interface Reference

Description

Service:
This is a service and can be accessed through toi.netService
Technical Preview:

This interface is a TECHNICAL PREVIEW, it may change.

ToiNetService is used for controlling network interfaces.

import "ToiNetService.idl";

Inheritance diagram for ToiNetService:
ToiEventTarget

List of all members.

Public Member Functions

ToiNetConfiguration getConfiguration ()
ToiNetConfigurationSession createConfigurationSession () raises (TToiInvalidArgumentException, TToiInvalidPreconditionException)

Public Attributes

Events
const long ON_DEVICE_CONFIGURATION_CHANGED = 4400
const long ON_DEVICE_ADDED = 4401
const long ON_DEVICE_REMOVED = 4402
const long ON_DEVICE_INTERFACE_CHANGED = 4403

Member Function Documentation

ToiNetConfigurationSession ToiNetService::createConfigurationSession ( ) raises (TToiInvalidArgumentException, TToiInvalidPreconditionException)

Creates and returns a session to change the network configuration. The session is active between this call and either ToiNetConfigurationSession::releaseInstance().

Return values:
IToiNetConfigurationSession
Exceptions:
TToiInvalidArgumentExceptionRaised if the application identifier is invalid.
TToiInvalidPreconditionExceptionRaised if another session is active.
ToiNetConfiguration ToiNetService::getConfiguration ( )

Returns the network configuration.

Return values:
IToiNetConfiguration

Member Data Documentation

const long ToiNetService::ON_DEVICE_ADDED = 4401

This is an Event identifier for ToiNetDeviceAddedEvent.

This constant can also be accessed from toi.consts.ToiNetService.ON_DEVICE_ADDED.

This is an Event identifier for ToiNetDeviceConfigurationChangedEvent.

This constant can also be accessed from toi.consts.ToiNetService.ON_DEVICE_CONFIGURATION_CHANGED.

This is an Event identifier for ToiNetDeviceInterfaceChangedEvent.

This constant can also be accessed from toi.consts.ToiNetService.ON_DEVICE_INTERFACE_CHANGED.

This is an Event identifier for ToiNetDeviceRemovedEvent.

This constant can also be accessed from toi.consts.ToiNetService.ON_DEVICE_REMOVED.