uimcard_i.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00006 /*
00007   AUTHOR(S): Stephan Broennimann (vb)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.10 $
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 _UIMCARD_I_H_
00031 #define _UIMCARD_I_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 
00039 // + local headers
00040 #include "device_i.h"
00041 #include "uimbase_i.h"
00042 
00043 // + class declarations
00044 namespace OSB_LIB {
00045     class UimCard;
00046 }
00047 
00048 namespace OSB_CORBA {
00049     class DvcRsrcMgr_i;
00050 }
00051 
00052 // ************************************************************************
00053 // namespace extensions
00054 namespace OSB_CORBA {
00055 
00056 // ************************************************************************
00057 // forward declarations
00058 
00059 // ************************************************************************
00060 // type definitions
00061 
00062 // ************************************************************************
00063 // class definitions
00070     class UimCard_i : public UimCardBase_i {
00071     public:
00076         UimCard_i(
00077             OSB_LIB::Device::Oid dvcId,
00078             Locators&            srvtLoc,
00079             DvcRsrcMgr_i&        drmgr
00080         );
00081 
00082     public:
00089         UimCardRg lockUim() const;
00090 
00091     private:
00093         DvcRsrcMgr_i& drmgr_;
00094     };                                  // class UimCard_i
00095 
00099     class UimCardWriter_i :
00100         public POA_corba::dvc::UimCardWriter,
00101         public UimCardBase_i,
00102         public DeviceWriter_i
00103     {
00104     public:
00106         static const std::string IFC;
00107     public:
00111         UimCardWriter_i(
00112             const OSB_LIB::UimCard& uim,
00113                   Locators&         srvtLoc,
00114                   DvcRsrcMgr_i&     drmgr
00115         );
00117         ~UimCardWriter_i();
00118     private:
00120         UimCardWriter_i(const UimCardWriter_i&);
00122         UimCardWriter_i& operator=(const UimCardWriter_i&);
00123 
00124     public:
00131         UimCardRg lockUim() const;
00132 
00133     protected:
00135         OSB_LIB::Device& device();
00136         // doc from DeviceWriter_i
00137         bool maintainList(bool isNew) const;
00138     private:
00140         OSB_LIB::UimCard* uimCard_;
00142         DvcRsrcMgr_i& drmgr_;
00143     };                                  // class UimCardWriter_i
00144 }                                       // namespace OSB_CORBA
00145 
00146 // ************************************************************************
00147 // inline definitions
00148 namespace OSB_CORBA {
00149 }                                       // namespace OSB_CORBA
00150 #endif                                  // #ifndef _UIMCARD_I_H_

Generated on Sat Sep 2 14:25:53 2006 for OSB Library by  doxygen 1.4.7