OSB_LIB::PersUimCard Class Reference

Inheritance diagram for OSB_LIB::PersUimCard:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::PersUimCard:

Collaboration graph
[legend]
List of all members.

Detailed Description

UIM card as parts of pers. products.

Note that no product parts for UIM cards exist. Instead a DeviceItem is configured to generate a pers. UIM card.

Definition at line 65 of file persuimcard.h.

Public Types

Public Member Functions

Static Public Attributes

Private Member Functions

Private Attributes


Member Typedef Documentation

typedef std::auto_ptr<PersUimCard> OSB_LIB::PersUimCard::AutoPtr

Short-hand for an auto-pointer to a pers. UIM card.

Reimplemented from OSB_LIB::PersDevice.

Definition at line 68 of file persuimcard.h.


Constructor & Destructor Documentation

OSB_LIB::PersUimCard::PersUimCard ( const Oid oid = Oid()  ) 

Constructor with optional object id.

OSB_LIB::PersUimCard::PersUimCard ( const PersUimCard rhs  ) 

Copy contructor: clone uimCard_ and oldUimCard_.

OSB_LIB::PersUimCard::~PersUimCard (  ) 

Destructor: delete uimCard_ and oldUimCard_.


Member Function Documentation

void OSB_LIB::PersUimCard::assign ( const OSB_DB::Session session,
const std::string &  uimId 
)

Assign an UIM card.

Parameters:
session Database session to use.
uimId The UIM ID of the UIM card to assign.
Exceptions:
OsbException if the UIM card does not exist or if it is not available.

bool OSB_LIB::PersUimCard::canConfig (  )  const [virtual]

Configuration of pers. UIM cards is mandatory.

Implements OSB_LIB::PersProductItem.

AutoPtr OSB_LIB::PersUimCard::clone (  )  const

Virtual copy constructor.

Returns:
An auto-pointer that owns a copy of this pers. UIM card.

Reimplemented from OSB_LIB::PersDevice.

PersProductItem* OSB_LIB::PersUimCard::clone_ (  )  const [private, virtual]

Create a copy of this pers. UIM card.

Implements OSB_LIB::PersProductItem.

bool OSB_LIB::PersUimCard::delSpecific ( const OSB_DB::Session session  )  [private, virtual]

Delete type specific entries from the database.

Parameters:
session Database session to use.
Returns:
True if the item was found and deleted from the database, else false.

Implements OSB_LIB::PersProductItem.

Device* OSB_LIB::PersUimCard::device (  )  [private, virtual]

Non-const access to the assigned device.

Returns:
A pointer to the assigned device. It is 0 if no device is assigned.

Implements OSB_LIB::PersDevice.

const Device* OSB_LIB::PersUimCard::device (  )  const [virtual]

Access to the assigned device.

Returns:
A pointer to the assigned device, it is 0 if no device is assigned.

Implements OSB_LIB::PersDevice.

bool OSB_LIB::PersUimCard::insSpecific ( const OSB_DB::Session session  )  [private, virtual]

Insert type specific members to the database.

Parameters:
session Database session to use.
Returns:
True if the item was inserted into the database.

Implements OSB_LIB::PersProductItem.

Device* OSB_LIB::PersUimCard::mkDevice ( const Id< Device > &  dvcId  )  [private, virtual]

Create an empty device.

Parameters:
dvcId Object id of the device.
Returns:
A pointer to the device, it must not be 0 and its object id is dvcId.
The returned pointer must be owned by the object on which the method is called, the ownership is NOT transferred to the caller.

Remarks:
This member is needed by readPersDevice() where the product item is being constructed from the database.
Note:
Because gcc (and possibly other compilers) support covariant return types only recently, the return type should remain Device*.

Implements OSB_LIB::PersDevice.

Device* OSB_LIB::PersUimCard::oldDevice (  )  [private, virtual]

Non-const access to the previous assigned device.

Returns:
A pointer to the previous assigned device. It is 0 if no old device is assigned.

Implements OSB_LIB::PersDevice.

const Device* OSB_LIB::PersUimCard::oldDevice (  )  const [virtual]

Access to the old assigned device.

Returns:
A pointer to the old assigned device, it is 0 if no old device is assigned.

Implements OSB_LIB::PersDevice.

PersUimCard& OSB_LIB::PersUimCard::operator= ( const PersUimCard rhs  ) 

Assignment: maintain uimCard_ and oldUimCard_.

std::string OSB_LIB::PersUimCard::personalization (  )  const [virtual]

Personalization of the UIM card: UIM ID.

Implements OSB_LIB::PersProductItem.

bool OSB_LIB::PersUimCard::readSpecific ( const OSB_DB::Session session  )  [private, virtual]

Read type specific data members from database.

Parameters:
session Database session to use.
Returns:
True if the item was found and read from the database, else false.

Implements OSB_LIB::PersProductItem.

Type OSB_LIB::PersUimCard::type (  )  const [virtual]

The type of the pers. item.

Implements OSB_LIB::ProductItemBase.

const UimCard* OSB_LIB::PersUimCard::uimCard (  )  const

Get the subscribed UIM card.

Returns:
The UIM card linked to this pers. part.
It is 0 if no UIM card was assigned yet.

bool OSB_LIB::PersUimCard::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

Update type specific members in the database.

Parameters:
session Database session to use.
Returns:
True if the item was found and updated in the database, else false.

Implements OSB_LIB::PersProductItem.


Member Data Documentation

UimCard* OSB_LIB::PersUimCard::oldUimCard_ [private]

Pointer to the previously assigned UIM card.

Definition at line 158 of file persuimcard.h.

const Type OSB_LIB::PersUimCard::type_ [static]

The pers. item type for UIM cards: PiType::piUimCard.

Definition at line 71 of file persuimcard.h.

UimCard* OSB_LIB::PersUimCard::uimCard_ [private]

Pointer to the assigned UIM card.

Definition at line 156 of file persuimcard.h.


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