OSB_CORBA::DvcRsrcMgr_i Class Reference

Inheritance diagram for OSB_CORBA::DvcRsrcMgr_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::DvcRsrcMgr_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Interface to manage devices and resources.

This interface allows a single client to work with devices and resources.

Note:
The current version only supports devices.
The design goal is to remove all resource related functions from NetworkManager.

Definition at line 84 of file dvcrsrcmgr_i.h.

Public Types

Public Member Functions

Support for UIM cards:

Static Public Attributes

Private Member Functions

Private Attributes


Member Typedef Documentation

typedef OSB_LIB::ReadGuard<OSB_LIB::UimCard*> OSB_CORBA::DvcRsrcMgr_i::UimCardRg

Short-head for a read guard to a (library) UIM card.

Definition at line 177 of file dvcrsrcmgr_i.h.


Constructor & Destructor Documentation

OSB_CORBA::DvcRsrcMgr_i::DvcRsrcMgr_i ( NetworkManager_i nmgr  )  [explicit]

Constructor with controlling servant.

The constructor registers itself at the servant locator NetworkManager_i::drMgrLoc() and sets loctKey_.

OSB_CORBA::DvcRsrcMgr_i::~DvcRsrcMgr_i (  ) 

Destructor: unregister from servant locator.

OSB_CORBA::DvcRsrcMgr_i::DvcRsrcMgr_i ( const DvcRsrcMgr_i  )  [private]

Prevent copying: not implemented.


Member Function Documentation

void OSB_CORBA::DvcRsrcMgr_i::destroy (  )  throw ()

Delete the servant.

UimCard* OSB_CORBA::DvcRsrcMgr_i::getUimCard ( const DeviceId &  uimId  )  throw (OsbCorbaException)

Get an UIM card.

Parameters:
uimId The object id of the UIM card.
Exceptions:
OsbCorbaException if the UIM is not found.
Returns:
UIM card CORBA object.

DeviceIds* OSB_CORBA::DvcRsrcMgr_i::getUimCards (  )  throw (OsbCorbaException)

Get id's of selected UIM cards.

UimCardWriter* OSB_CORBA::DvcRsrcMgr_i::getUimCardWriter ( const DeviceId &  uimId  )  throw (OsbCorbaException)

Get a modifiable copy of an UIM card.

Parameters:
uimId The object id of the UIM card.
Exceptions:
OsbCorbaException if the UIM is not found.
Returns:
Modifiable UIM card CORBA object.

UimCardFilter* OSB_CORBA::DvcRsrcMgr_i::getUimFilter (  )  throw ()

Get the filter for UIM cards.

void OSB_CORBA::DvcRsrcMgr_i::initUimFilter (  )  [private]

Initialize uimFilter_.

UimCardRg OSB_CORBA::DvcRsrcMgr_i::lockUim ( const OSB_LIB::Id< OSB_LIB::Device > &  uimId  )  const

Read lock an UIM card.

Locators::Key OSB_CORBA::DvcRsrcMgr_i::loctKey (  )  const

Get the servant locator key.

DvcRsrcMgr_i& OSB_CORBA::DvcRsrcMgr_i::operator= ( const DvcRsrcMgr_i  )  [private]

Prevent assignment: not implemented.

void OSB_CORBA::DvcRsrcMgr_i::ping (  )  throw ()

Servant is still active?

Obviously yes if this function is called.

void OSB_CORBA::DvcRsrcMgr_i::refreshUimCards (  )  throw (OsbCorbaException)

Refresh the currently selected UIM cards.

Exceptions:
OsbCorbaException in case of a severe error, but not if a card is no more found.

void OSB_CORBA::DvcRsrcMgr_i::replaceUim ( const OSB_LIB::UimCard uim  ) 

Replace (or add) a UIM card in the list.

void OSB_CORBA::DvcRsrcMgr_i::searchUims ( const UimCardFilter &  filter  )  throw (OsbCorbaException)

Select (search) UIM cards.

Parameters:
filter Filter to use,
it is stored by calling setUimFilter() and can later be retrieved with getUimFilter().
Exceptions:
OsbCorbaException in case of a severe error.

void OSB_CORBA::DvcRsrcMgr_i::setUimFilter ( const UimCardFilter &  filter  )  throw ()

Set the filter for UIM cards.

const OSB_LIB::UimCardList& OSB_CORBA::DvcRsrcMgr_i::uims (  )  const [private]

Get list of UIM cards, allocate if needed.

OSB_LIB::UimCardList& OSB_CORBA::DvcRsrcMgr_i::uims (  )  [private]

Get list of UIM cards, allocate if needed.


Member Data Documentation

const std::string OSB_CORBA::DvcRsrcMgr_i::IFC [static]

Name of the interface.

Definition at line 87 of file dvcrsrcmgr_i.h.

Locators::Key OSB_CORBA::DvcRsrcMgr_i::loctKey_ [private]

Servant locator key.

Definition at line 214 of file dvcrsrcmgr_i.h.

OSB_LIB::RwMutex OSB_CORBA::DvcRsrcMgr_i::mutex_ [mutable, private]

Mutex to lock the whole list.

Definition at line 204 of file dvcrsrcmgr_i.h.

NetworkManager_i& OSB_CORBA::DvcRsrcMgr_i::nmgr_ [private]

Controlling servant.

It provides access to the POA's and servant locators.

Definition at line 212 of file dvcrsrcmgr_i.h.

OSB_LIB::UimCardList* OSB_CORBA::DvcRsrcMgr_i::uimCards_ [mutable, private]

List of selected UIM cards.

Definition at line 199 of file dvcrsrcmgr_i.h.

UimCardFilter OSB_CORBA::DvcRsrcMgr_i::uimFilter_ [private]

Filter for UIM cards.

Definition at line 201 of file dvcrsrcmgr_i.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:27:53 2006 for OSB Library by  doxygen 1.4.7