/extra/kbs/check_outs/co_129493/STABLE_elymus_popeye_1/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=TToiDhcpStatus)]
00023 interface ToiNetIpDeviceDhcpStatus;
00024 
00032 interface ToiNetIpDevice {
00033 
00035   typedef long TToiInterfaceId;
00036   
00041   const TToiInterfaceId DEFAULT_INTERFACE = 0;
00042   
00045   //@ [Enum]
00046   typedef long TToiAddressAcquisition;
00049   
00055   //@ [Enumerator(Enum=TToiAddressAcquisition,Name=ADDRESS_ACQUISITION_STATIC)]
00056   const TToiAddressAcquisition ADDRESS_ACQUISITION_STATIC = 0;
00057   
00063   //@ [Enumerator(Enum=TToiAddressAcquisition,Name=ADDRESS_ACQUISITION_DHCP)]
00064   const TToiAddressAcquisition ADDRESS_ACQUISITION_DHCP = 1;
00065   
00067 
00073   //@ [OutParam(Name=mac,Position=1,IsBinary=0, Bound=0)]
00074   string getMacAddress();
00075   
00087   //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)]
00088   ToiNetIpDeviceInterfaceInfo getInfo(in TToiInterfaceId interfaceId)
00089    raises (TToiInvalidArgumentException);
00090   
00105   //@ [OutParam(Name=dhcpStatus,Position=2,IsBinary=0, Bound=0)]
00106   ToiNetIpDeviceDhcpStatus getDhcpStatus(in TToiInterfaceId interfaceId)
00107    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00108   
00123   void setEnabled(in TToiInterfaceId interfaceId, 
00124         in boolean enable)
00125    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00126   
00141   void setAcquisition(in TToiInterfaceId interfaceId, 
00142         in TToiAddressAcquisition acquisition)
00143    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00144   
00163   void setStaticAddress(in TToiInterfaceId interfaceId, 
00164         in string ip, 
00165         in string netmask)
00166    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00167   
00168 };
00169 
00170 #endif