QtMobility Reference Documentation

QOrganizerTodoProgress Class Reference

The QOrganizerTodoProgress class contains information about the progress of a todo item. More...

 #include <QOrganizerTodoProgress>

Inherits: QOrganizerItemDetail.

This class was introduced in Qt Mobility 1.1.

Public Types

enum Status { StatusNotStarted, StatusInProgress, StatusComplete }

Public Functions

QDateTime finishedDateTime () const
int percentageComplete () const
void setFinishedDateTime ( const QDateTime & finishedDateTime )
void setPercentageComplete ( int percentage )
void setStatus ( Status status )
Status status () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldFinishedDateTime
const QLatin1Constant FieldPercentageComplete
const QLatin1Constant FieldStatus

Detailed Description

The QOrganizerTodoProgress class contains information about the progress of a todo item.

Member Type Documentation

enum QOrganizerTodoProgress::Status

Enumerates the various possible types of todo item status

ConstantValueDescription
QOrganizerTodoProgress::StatusNotStarted0The todo item hasn't been started yet
QOrganizerTodoProgress::StatusInProgress1The todo item is current in progress
QOrganizerTodoProgress::StatusComplete2The todo item has finished

Member Function Documentation

QDateTime QOrganizerTodoProgress::finishedDateTime () const

Returns the todo progress item's finished date and timeas QDateTime.

This function was introduced in Qt Mobility 1.1.

See also setFinishedDateTime().

int QOrganizerTodoProgress::percentageComplete () const

Returns the todo progress item's completion percentage.

This function was introduced in Qt Mobility 1.1.

See also setPercentageComplete().

void QOrganizerTodoProgress::setFinishedDateTime ( const QDateTime & finishedDateTime )

Sets the todo progress item's finished date and time to finishedDateTime.

This function was introduced in Qt Mobility 1.1.

See also finishedDateTime().

void QOrganizerTodoProgress::setPercentageComplete ( int percentage )

Sets the todo progress item's completion percentage to percentage.

This function was introduced in Qt Mobility 1.1.

See also percentageComplete().

void QOrganizerTodoProgress::setStatus ( Status status )

Sets the todo progress item's current status to status.

This function was introduced in Qt Mobility 1.1.

See also status().

Status QOrganizerTodoProgress::status () const

Returns the todo progress item's current status as QOrganizerTodoProgress::Status.

This function was introduced in Qt Mobility 1.1.

See also setStatus().

Member Variable Documentation

const QLatin1Constant QOrganizerTodoProgress::DefinitionName

The constant string which identifies the definition of details which contain progress information about a todo item.

const QLatin1Constant QOrganizerTodoProgress::FieldFinishedDateTime

The constant key of the date time value which contains the date and time at which the todo item was completed.

const QLatin1Constant QOrganizerTodoProgress::FieldPercentageComplete

The constant key of the value which contains the current completion percentage of the todo item.

const QLatin1Constant QOrganizerTodoProgress::FieldStatus

The constant key of the value which describes the current completion status of the todo item.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.