Motorola Mobility Confidential Restricted.
/extra/kbs/check_outs/co_356297/STABLE_geranium_lpm_cornsilk_10/dist/idl/js/toi/ToiNetIpDevice.idl
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiNetIpDevice.idl
00005  *
00006  * This file was created by the Motorola IDL backend, 
00007  * which is based on the OmniORB IDL parser.
00008  * Please do not modify.
00009  *
00010  * Copyright (c) 2009 Motorola Inc. All Rights Reserved.
00011  *
00012  *--------------------------------------------------------------------
00013  */
00014 
00015 #ifndef TOINETIPDEVICE_IDL
00016 #define TOINETIPDEVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiInvalidPreconditionException.idl"
00020 //@ [Struct(Interface=IToiNetIpDevice,Name=TToiInterfaceInfo)]
00021 interface ToiNetIpDeviceInterfaceInfo;
00022 //@ [Struct(Interface=IToiNetIpDevice,Name=TToiNetStatistics)]
00023 interface ToiNetIpDeviceNetStatistics;
00024 //@ [Struct(Interface=IToiNetIpDevice,Name=TToiDhcpStatus)]
00025 interface ToiNetIpDeviceDhcpStatus;
00026 
00034 interface ToiNetIpDevice {
00035 
00037   typedef long TToiInterfaceId;
00038   
00043   const TToiInterfaceId DEFAULT_INTERFACE = 0;
00044   
00047   //@ [Enum]
00048   typedef long TToiAddressAcquisition;
00051   
00057   //@ [Enumerator(Enum=TToiAddressAcquisition,Name=ADDRESS_ACQUISITION_STATIC)]
00058   const TToiAddressAcquisition ADDRESS_ACQUISITION_STATIC = 0;
00059   
00065   //@ [Enumerator(Enum=TToiAddressAcquisition,Name=ADDRESS_ACQUISITION_DHCP)]
00066   const TToiAddressAcquisition ADDRESS_ACQUISITION_DHCP = 1;
00067   
00077   //@ [Enumerator(Enum=TToiAddressAcquisition,Name=ADDRESS_ACQUISITION_DHCP_AUTO_IP)]
00078   const TToiAddressAcquisition ADDRESS_ACQUISITION_DHCP_AUTO_IP = 2;
00079   
00081 
00087   //@ [OutParam(Name=mac,Position=1,IsBinary=0, Bound=0)]
00088   string getMacAddress();
00089   
00101   //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)]
00102   ToiNetIpDeviceInterfaceInfo getInterfaceInfo(in TToiInterfaceId interfaceId)
00103    raises (TToiInvalidArgumentException);
00104   
00111   //@ [OutParam(Name=statistics,Position=1,IsBinary=0, Bound=0)]
00112   ToiNetIpDeviceNetStatistics getStatistics();
00113   
00128   //@ [OutParam(Name=dhcpStatus,Position=2,IsBinary=0, Bound=0)]
00129   ToiNetIpDeviceDhcpStatus getDhcpStatus(in TToiInterfaceId interfaceId)
00130    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00131   
00146   void setEnabled(in TToiInterfaceId interfaceId, 
00147         in boolean enable)
00148    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00149   
00164   void setAcquisition(in TToiInterfaceId interfaceId, 
00165         in TToiAddressAcquisition acquisition)
00166    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00167   
00186   void setStaticAddress(in TToiInterfaceId interfaceId, 
00187         in string ip, 
00188         in string netmask)
00189    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00190   
00191 };
00192 
00193 #endif