OSB_GUI::ToCfgTsItem Class Reference

Inheritance diagram for OSB_GUI::ToCfgTsItem:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::ToCfgTsItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base for all tariff object version items.

Definition at line 400 of file tolists.h.

Protected Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_GUI::ToCfgTsItem::ToCfgTsItem ( QListViewItem parent  )  [explicit, protected]

Constructor with parent.

Derived classes should call set() in their constructor.


Member Function Documentation

virtual void OSB_GUI::ToCfgTsItem::changeStatus (  )  [protected, pure virtual]

Change the configuration status.

Implemented in OSB_GUI::CpItem, OSB_GUI::E164Item, OSB_GUI::ScsVsItem, OSB_GUI::TcsVsItem, OSB_GUI::TfVsItem, OSB_GUI::TpsVsItem, and OSB_GUI::TsVsItem.

virtual bool OSB_GUI::ToCfgTsItem::commandEvent ( ToMenuCmd  cmd  )  [protected, virtual]

Execute command from tariff object menu.

Parameters:
cmd Command to execute.
Returns:
true if the command can be executed, else false.
The default implementation handles the following commands:

Implements OSB_GUI::ToListItem.

Reimplemented in OSB_GUI::CpItem.

int OSB_GUI::ToCfgTsItem::compare ( QListViewItem i,
int  col,
bool  asc 
) const [private]

Compare with other listview items.

Compares by objId() or releaseTs() if the other item is also a ToCfgTsItem, otherwise calls QListViewItem::compare().

virtual void OSB_GUI::ToCfgTsItem::delObject (  )  [protected, pure virtual]

Delete the tariff version object.

Implemented in OSB_GUI::CpItem, OSB_GUI::E164Item, OSB_GUI::ScsVsItem, OSB_GUI::TcsVsItem, OSB_GUI::TfVsItem, OSB_GUI::TpsVsItem, and OSB_GUI::TsVsItem.

virtual void OSB_GUI::ToCfgTsItem::editObject (  )  [protected, pure virtual]

Edit the tariff version object.

Implemented in OSB_GUI::CpItem, OSB_GUI::E164Item, OSB_GUI::ScsVsItem, OSB_GUI::TcsVsItem, OSB_GUI::TfVsItem, OSB_GUI::TpsVsItem, and OSB_GUI::TsVsItem.

virtual long OSB_GUI::ToCfgTsItem::objId (  )  const [protected, pure virtual]

Get numeric object identification.

This is either the object id or the version number.

Implemented in OSB_GUI::CpItem, OSB_GUI::E164Item, and OSB_GUI::ToVsItem.

const QPixmap* OSB_GUI::ToCfgTsItem::pixmap ( int  col  )  const [private]

Get pixmap for the configuration status.

Returns 0 if col is not the column for the configuration status.

QDateTime OSB_GUI::ToCfgTsItem::releaseTs (  )  const [protected]

Get the release date.

void OSB_GUI::ToCfgTsItem::set ( const std::string &  name,
const OSB_LIB::ToCfgTsBase to 
) [protected]

Set or update the data.

Parameters:
name Name of the tariff object or version.
to The tariff object with (changed) data.

virtual bool OSB_GUI::ToCfgTsItem::setupMenu ( ToMenu toMenu  )  [protected, virtual]

Configure the tariff object menu.

Parameters:
toMenu Tariff object menu to configure.
Removes all entries from toMenu and add the following commands:

Implements OSB_GUI::ToListItem.

Reimplemented in OSB_GUI::CpItem.

virtual void OSB_GUI::ToCfgTsItem::showObject (  )  const [protected, pure virtual]

Show the tariff version object.

Implemented in OSB_GUI::CpItem, OSB_GUI::E164Item, OSB_GUI::ScsVsItem, OSB_GUI::TcsVsItem, OSB_GUI::TfVsItem, OSB_GUI::TpsVsItem, and OSB_GUI::TsVsItem.

OSB_LIB::CfgStatus OSB_GUI::ToCfgTsItem::status (  )  const [protected]

Get configuration status.


Member Data Documentation

QDateTime OSB_GUI::ToCfgTsItem::releaseTs_ [private]

Release timestamp of version object, it may be not set.

Definition at line 492 of file tolists.h.

OSB_LIB::CfgStatus OSB_GUI::ToCfgTsItem::status_ [private]

Configuration status of version object.

Definition at line 490 of file tolists.h.


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