#include <ActivityChangeInfo.h>
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 |
ActivityChangeInfo::ActivityChangeInfo | ( | const DataPointer & | start | ) |
QString ActivityChangeInfo::activityName | ( | ) | const |
QString ActivityChangeInfo::className | ( | ) | const [virtual] |
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] |
Referenced by CardDriverActivity::printOn(), timespan(), and title().
float ActivityChangeInfo::heightHint | ( | ) | const |
bool ActivityChangeInfo::isDefaultValue | ( | ) | const [virtual] |
Reimplemented from DataType.
void ActivityChangeInfo::printOn | ( | Reporter & | o | ) | const [virtual] |
Implements DataType.
References activityName(), extraString(), Reporter::tagValuePair(), and timespan().
void ActivityChangeInfo::setDuration | ( | int | newDuration, |
bool | newIsSlotState | ||
) |
int ActivityChangeInfo::size | ( | ) | const [virtual] |
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().
Referenced by extraString(), and setDuration().
Referenced by activityName(), color(), heightHint(), and setDuration().
const int ActivityChangeInfo::AVAILABLE = 1 [static] |
Referenced by activityName(), color(), heightHint(), and CardDriverActivity::printOn().
Referenced by extraString(), and setDuration().
const int ActivityChangeInfo::DRIVING = 3 [static] |
Referenced by activityName(), color(), heightHint(), and CardDriverActivity::printOn().
Referenced by setDuration(), timespan(), and title().
Referenced by extraString(), and setDuration().
Referenced by extraString(), and setDuration().
const int ActivityChangeInfo::REST = 0 [static] |
Referenced by activityName(), color(), heightHint(), and CardDriverActivity::printOn().
Referenced by extraString().
const int ActivityChangeInfo::SHORTREST = 5 [static] |
Referenced by activityName(), color(), heightHint(), CardDriverActivity::printOn(), and setDuration().
const int ActivityChangeInfo::staticSize = 2 [static] |
Referenced by extraString(), and timespan().
const int ActivityChangeInfo::UNKNOWN = 4 [static] |
Referenced by activityName(), color(), heightHint(), and setDuration().
const int ActivityChangeInfo::WORK = 2 [static] |
Referenced by activityName(), color(), heightHint(), and CardDriverActivity::printOn().