OperationData Class Reference
Information about operations.
More...
#include <Types/OperationData.h>
List of all members.
Public Types |
enum | OperationDataIdentifier { ODI_NAME = 201,
ODI_DATE,
ODI_OBSERVATION
} |
| Identifiers for OperationData segment.
|
Public Member Functions |
| OperationData (QObject *parent=0) |
| OperationData (const int id, const QString &name, const QDate &date, const QString &observation, QObject *parent=0) |
int | load (const QByteArray &data, int index=0) |
| load some data from a QByteArray
|
QByteArray | data () const |
| Gets the data in the form of a QByteArray (ready to be shared on the network).
|
const QString & | name () const |
const QDate & | date () const |
const QString & | observation () const |
int | id () const |
| Get the id of the operation.
|
void | setName (const QString &newName) |
| Sets a new name.
|
void | setDate (const QDate &newDate) |
| Sets a new date.
|
void | setObservation (const QString &newObservation) |
| Sets a new observation.
|
Static Public Member Functions |
static OperationData * | searchName (const QList< OperationData * > &list, const QString &name) |
Properties |
QString | name |
| returns the name
|
QDate | date |
| returns the age
|
QString | observation |
| returns the observation
|
Detailed Description
Information about operations.
Constructor & Destructor Documentation
OperationData::OperationData |
( |
QObject * |
parent = 0 |
) |
[inline] |
Member Function Documentation
QByteArray OperationData::data |
( |
|
) |
const [virtual] |
Gets the data in the form of a QByteArray (ready to be shared on the network).
- Returns:
Implements Data.
int OperationData::id |
( |
|
) |
const [inline] |
Get the id of the operation.
- Returns:
int OperationData::load |
( |
const QByteArray & |
data, |
|
|
int |
index = 0 | |
|
) |
| | [virtual] |
load some data from a QByteArray
- Parameters:
-
| data | the data to load |
| index | the where to read |
- Returns:
- the number of bytes read
Implements Data.
void OperationData::setDate |
( |
const QDate & |
newDate |
) |
[inline] |
Sets a new date.
- Parameters:
-
void OperationData::setName |
( |
const QString & |
newName |
) |
[inline] |
Sets a new name.
- Parameters:
-
void OperationData::setObservation |
( |
const QString & |
newObservation |
) |
[inline] |
Sets a new observation.
- Parameters:
-
Property Documentation
const QDate & OperationData::date [read] |
returns the age
- Returns:
- the date
const QString & OperationData::name [read] |
returns the name
- Returns:
- the name
const QString & OperationData::observation [read] |
returns the observation
- Returns:
- the observation
The documentation for this class was generated from the following files: