00001 // OSB library ********************************************* -*- IDL -*- 00006 /* 00007 AUTHOR(S): Huang Yong Feng (hyf) 00008 00009 RCS information 00010 $Name: OSB_060808 $ 00011 $Revision: 1.12.2.1 $ 00012 00013 License 00014 OSB rating and billing library for communication networks 00015 Copyright (C) 2004, 2005, 2006 OSB systems 00016 00017 This file may be distributed and/or modify under the terms of the 00018 GNU General Public License (GPL) as published by the Free Software 00019 Foundation which is provided in the file LICENSE.GPL included in the 00020 packaging of this file. 00021 00022 The file is distributed in the hope that it will be useful, but WITHOUT 00023 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00024 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00025 for more details. 00026 00027 Holders of a OSB Commercial License may use this file under the terms 00028 and conditions of this commercial license. 00029 */ 00030 #ifndef NETWORKELEMENT_IDL 00031 #define NETWORKELEMENT_IDL 00032 // ********************************************************************* 00033 // included idl files 00034 #include "tariffobject.idl" // for ConnectionPtId 00035 #include "trunkgroup.idl" 00036 00037 module corba { 00038 module nwmgr { 00039 module nwe { 00040 00042 enum DialledNumType { 00043 incomingDialledNum, 00044 outgoingDialledNum 00045 }; 00046 00053 interface NetworkElement { 00055 NetworkElementId id() 00056 raises (common::OsbCorbaException); 00057 00059 common::Utf8String name() 00060 raises (common::OsbCorbaException); 00061 00063 common::Utf8String desc() 00064 raises (common::OsbCorbaException); 00065 00067 DialledNumType dialledType() 00068 raises (common::OsbCorbaException); 00069 00071 tcat::cp::ConnectionPtId connectionPt() 00072 raises (common::OsbCorbaException); 00073 00075 boolean hasNdc() 00076 raises (common::OsbCorbaException); 00077 00079 common::Utf8String ndc() 00080 raises (common::OsbCorbaException); 00081 00083 nwmgr::TimeZoneId tzId() 00084 raises (common::OsbCorbaException); 00085 00087 nwmgr::numanalyzer::NumberAnalyzer getNumberAnalyzer() 00088 raises (common::OsbCorbaException); 00089 00099 nwmgr::trk::TrunkGroup getTrkGroup( 00100 in nwmgr::trk::TrunkGroupId id 00101 ) raises (common::OsbCorbaException); 00102 00110 nwmgr::trk::TrunkGroupSeq getTrkGroups() 00111 raises (common::OsbCorbaException); 00112 00126 NetworkElementWriter getWriter() 00127 raises (common::OsbCorbaException); 00128 00129 }; // interface NetworkElement 00130 00139 interface NetworkElementWriter : NetworkElement { 00141 void setName(in common::Utf8String name); 00142 00144 void setDesc(in common::Utf8String desc); 00145 00147 void setDialledType( 00148 in DialledNumType type); 00149 00151 void setConnectionPt( 00152 in tcat::cp::ConnectionPtId id 00153 ); 00154 00156 void setNdc(in common::Utf8String ndc); 00157 00159 void unsetNdc(); 00160 00162 void setTimeZone(in nwmgr::TimeZoneId id); 00163 00170 nwmgr::numanalyzer::NumberAnalyzerWriter 00171 addNewNumberAnalyzer(); 00172 00177 void delNumberAnalyzer(); 00178 00180 nwmgr::numanalyzer::NumberAnalyzerWriter 00181 getNumberAnalyzerWriter() 00182 raises (common::OsbCorbaException); 00183 00192 void saveNumberAnalyzer(); 00193 00212 void commitChanges( 00213 in boolean noWait 00214 ) raises (common::OsbCorbaException); 00215 00216 }; // interface NetworkElementWriter 00217 00218 }; // module nwe 00219 }; // module nwmgr 00220 }; // module corab 00221 #endif // #ifndef NETWORKELEMENT_IDL
1.4.7