00001 // OSB library ************************************************ -*- C++ -*- 00006 /* 00007 AUTHOR(S): Stephan Broennimann (vb) 00008 00009 RCS information 00010 $Name: OSB_060808 $ 00011 $Revision: 1.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 _UIMBASE_I_H_ 00031 #define _UIMBASE_I_H_ 00032 00033 // ************************************************************************ 00034 // included header files 00035 // + standard includes 00036 00037 // + libraries 00038 00039 // + local headers 00040 #include "dvcbase_i.h" 00041 #include "uimcardS.h" 00042 00043 // + class declarations 00044 namespace OSB_LIB { 00045 class UimCard; 00046 } 00047 00048 // ************************************************************************ 00049 // namespace extensions 00050 namespace OSB_CORBA { 00051 00052 // ************************************************************************ 00053 // forward declarations 00054 00055 // ************************************************************************ 00056 // type definitions 00057 00058 // ************************************************************************ 00059 // class definitions 00063 class UimCardBase_i : 00064 public virtual POA_corba::dvc::UimCard, 00065 public virtual Device_i 00066 { 00067 public: 00069 static const std::string IFC; 00070 00071 public: // construction 00075 UimCardBase_i( 00076 OSB_LIB::Device::Oid dvcId, 00077 Locators& srvtLoc 00078 ); 00079 public: // interface 00089 Utf8String* uimId() 00090 throw (OsbCorbaException); 00097 Utf8String* imsi() 00098 throw (OsbCorbaException); 00102 corba::res::ResourceId imsiId() 00103 throw (OsbCorbaException); 00109 Utf8String* iccId() 00110 throw (OsbCorbaException); 00114 Utf8String* pin1() 00115 throw (OsbCorbaException); 00119 Utf8String* pin2() 00120 throw (OsbCorbaException); 00124 Utf8String* puk1() 00125 throw (OsbCorbaException); 00129 Utf8String* puk2() 00130 throw (OsbCorbaException); 00131 00132 protected: // utilities 00134 typedef OSB_LIB::ReadGuard<OSB_LIB::UimCard*> UimCardRg; 00135 00137 virtual UimCardRg lockUim() const = 0; 00138 00139 // documentation from base class 00140 ReadGuard lock() const; 00141 }; // class UimCardBase_i 00142 00143 00144 } // namespace OSB_CORBA 00145 00146 // ************************************************************************ 00147 // inline definitions 00148 namespace OSB_CORBA { 00149 } // namespace OSB_CORBA 00150 #endif // #ifndef _UIMBASE_I_H_