Member Function Documentation
QMediaTimeRange::QMediaTimeRange ()
Constructs an empty time range.
QMediaTimeRange::QMediaTimeRange ( qint64 start, qint64 end )
Constructs a time range that contains an initial interval from start to end inclusive.
If the interval is not normal, the resulting time range will be empty.
This function was introduced in Qt Mobility 1.0.
See also addInterval().
QMediaTimeRange::QMediaTimeRange ( const QMediaTimeInterval & interval )
Constructs a time range that contains an intitial interval, interval.
If interval is not normal, the resulting time range will be empty.
This function was introduced in Qt Mobility 1.0.
See also addInterval().
QMediaTimeRange::QMediaTimeRange ( const QMediaTimeRange & range )
Constructs a time range by copying another time range.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange::~QMediaTimeRange ()
Destructor.
void QMediaTimeRange::addInterval ( const QMediaTimeInterval & interval )
Adds the specified interval to the time range.
Adding intervals which are not normal is invalid, and will be ignored.
If the specified interval is adjacent to, or overlaps existing intervals within the time range, these intervals will be merged.
This operation takes linear time
This function was introduced in Qt Mobility 1.0.
See also removeInterval().
void QMediaTimeRange::addInterval ( qint64 start, qint64 end )
This is an overloaded function.
Adds the interval specified by start and end to the time range.
This function was introduced in Qt Mobility 1.0.
See also addInterval().
void QMediaTimeRange::addTimeRange ( const QMediaTimeRange & range )
Adds each of the intervals in range to this time range.
Equivalent to calling addInterval() for each interval in range.
This function was introduced in Qt Mobility 1.0.
void QMediaTimeRange::clear ()
Removes all intervals from the time range.
This function was introduced in Qt Mobility 1.0.
See also removeInterval().
bool QMediaTimeRange::contains ( qint64 time ) const
Returns true if the specified time lies within the time range.
This function was introduced in Qt Mobility 1.0.
qint64 QMediaTimeRange::earliestTime () const
Returns the earliest time within the time range.
For empty time ranges, this value is equal to zero.
This function was introduced in Qt Mobility 1.0.
See also latestTime().
Returns the list of intervals covered by this time range.
This function was introduced in Qt Mobility 1.0.
bool QMediaTimeRange::isContinuous () const
Returns true if the time range consists of a continuous interval. That is, there is one or fewer disjoint intervals within the time range.
This function was introduced in Qt Mobility 1.0.
bool QMediaTimeRange::isEmpty () const
Returns true if there are no intervals within the time range.
This function was introduced in Qt Mobility 1.0.
See also intervals().
qint64 QMediaTimeRange::latestTime () const
Returns the latest time within the time range.
For empty time ranges, this value is equal to zero.
This function was introduced in Qt Mobility 1.0.
See also earliestTime().
void QMediaTimeRange::removeInterval ( const QMediaTimeInterval & interval )
Removes the specified interval from the time range.
Removing intervals which are not normal is invalid, and will be ignored.
Intervals within the time range will be trimmed, split or deleted such that no intervals within the time range include any part of the target interval.
This operation takes linear time
This function was introduced in Qt Mobility 1.0.
See also addInterval().
void QMediaTimeRange::removeInterval ( qint64 start, qint64 end )
This is an overloaded function.
Removes the interval specified by start and end from the time range.
This function was introduced in Qt Mobility 1.0.
See also removeInterval().
void QMediaTimeRange::removeTimeRange ( const QMediaTimeRange & range )
Removes each of the intervals in range from this time range.
Equivalent to calling removeInterval() for each interval in range.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator+= ( const QMediaTimeRange & other )
Adds each interval in other to the time range and returns the result.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator+= ( const QMediaTimeInterval & interval )
Adds the specified interval to the time range and returns the result.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator-= ( const QMediaTimeRange & other )
Removes each interval in other from the time range and returns the result.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator-= ( const QMediaTimeInterval & interval )
Removes the specified interval from the time range and returns the result.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator= ( const QMediaTimeRange & other )
Takes a copy of the other time range and returns itself.
This function was introduced in Qt Mobility 1.0.
QMediaTimeRange & QMediaTimeRange::operator= ( const QMediaTimeInterval & interval )
Sets the time range to a single continuous interval, interval.
This function was introduced in Qt Mobility 1.0.