Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions
ActivityChangeInfo Class Reference

#include <ActivityChangeInfo.h>

Inheritance diagram for ActivityChangeInfo:
Inheritance graph
[legend]
Collaboration diagram for ActivityChangeInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ActivityChangeInfo (const DataPointer &start)
void setDuration (int newDuration, bool newIsSlotState)
float heightHint () const
QString activityName () const
QString color () const
QString toString () const
 Possible short form of the block (empty if unset)
QString className () const
 Name of block element in the specification (or something meaningful if there is no name in the law)
int size () const
 Size of data used in the file.
void printOn (Reporter &o) const
bool isDefaultValue () const
QString title () const
 Possible title for the block (empty if unset)

Static Public Member Functions

static QString formatClock (int time)

Public Attributes

int s
int c
int p
int a
int t
int duration
int activity
bool isSlotState

Static Public Attributes

static const int REST = 0
static const int AVAILABLE = 1
static const int WORK = 2
static const int DRIVING = 3
static const int UNKNOWN = 4
static const int SHORTREST = 5
static const int staticSize = 2

Protected Member Functions

QString timespan () const
QString extraString () const

Constructor & Destructor Documentation

ActivityChangeInfo::ActivityChangeInfo ( const DataPointer start)

Member Function Documentation

QString ActivityChangeInfo::activityName ( ) const

References activity, AVAILABLE, DRIVING, REST, SHORTREST, UNKNOWN, and WORK.

Referenced by printOn(), title(), and toString().

QString ActivityChangeInfo::className ( ) const [virtual]

Name of block element in the specification (or something meaningful if there is no name in the law)

This usually matches the name of the c++-class used to read and show the data

Implements Block.

QString ActivityChangeInfo::color ( ) const
QString ActivityChangeInfo::extraString ( ) const [protected]

References a, c, isSlotState, p, s, and t.

Referenced by printOn(), and toString().

QString ActivityChangeInfo::formatClock ( int  time) [static]
float ActivityChangeInfo::heightHint ( ) const
bool ActivityChangeInfo::isDefaultValue ( ) const [virtual]

Reimplemented from DataType.

void ActivityChangeInfo::printOn ( Reporter o) const [virtual]
void ActivityChangeInfo::setDuration ( int  newDuration,
bool  newIsSlotState 
)

References a, activity, c, duration, isSlotState, p, SHORTREST, and UNKNOWN.

int ActivityChangeInfo::size ( ) const [virtual]

Size of data used in the file.

If the data element uses 3 bytes in the file, size() will return 3.

Implements DataType.

QString ActivityChangeInfo::timespan ( ) const [protected]

References duration, formatClock(), and t.

Referenced by printOn(), and toString().

QString ActivityChangeInfo::title ( ) const [virtual]

Possible title for the block (empty if unset)

Reimplemented from Block.

References activityName(), duration, and formatClock().

QString ActivityChangeInfo::toString ( ) const [virtual]

Possible short form of the block (empty if unset)

Reimplemented from Block.

References activityName(), extraString(), and timespan().


Member Data Documentation

Referenced by extraString(), and setDuration().

const int ActivityChangeInfo::AVAILABLE = 1 [static]

Referenced by extraString(), and setDuration().

const int ActivityChangeInfo::DRIVING = 3 [static]

Referenced by setDuration(), timespan(), and title().

Referenced by extraString(), and setDuration().

Referenced by extraString(), and setDuration().

const int ActivityChangeInfo::REST = 0 [static]

Referenced by extraString().

const int ActivityChangeInfo::SHORTREST = 5 [static]
const int ActivityChangeInfo::staticSize = 2 [static]

Referenced by extraString(), and timespan().

const int ActivityChangeInfo::UNKNOWN = 4 [static]
const int ActivityChangeInfo::WORK = 2 [static]

The documentation for this class was generated from the following files: