KItinerary::SortUtil

KItinerary::SortUtil Namespace Reference

Functions

QDateTime endDateTime (const QVariant &res)
 
bool hasEndTime (const QVariant &elem)
 
bool hasStartTime (const QVariant &elem)
 
bool isBefore (const QVariant &lhs, const QVariant &rhs)
 
QDateTime startDateTime (const QVariant &elem)
 

Detailed Description

Utility function for sorting reservations/visits/events.

Function Documentation

◆ endDateTime()

QDateTime KItinerary::SortUtil::endDateTime ( const QVariant & res)

Returns the (end) time associated with the given element.

This can be either a Reservation object, or a reservable object if that has a time associated (such as an Event).

Definition at line 101 of file sortutil.cpp.

◆ hasEndTime()

bool KItinerary::SortUtil::hasEndTime ( const QVariant & elem)

Returns whether the given element has an end time.

See also
hasStartTime

Definition at line 216 of file sortutil.cpp.

◆ hasStartTime()

bool KItinerary::SortUtil::hasStartTime ( const QVariant & elem)

Returns whether the given element has a start time.

This can be false even is SortUtil::startDateTime returns a valid result, if there is only a start date available.

Definition at line 198 of file sortutil.cpp.

◆ isBefore()

bool KItinerary::SortUtil::isBefore ( const QVariant & lhs,
const QVariant & rhs )

Sorting function for top-level reservation/visit/event elements.

Definition at line 169 of file sortutil.cpp.

◆ startDateTime()

QDateTime KItinerary::SortUtil::startDateTime ( const QVariant & elem)

Returns the (start) time associated with the given element.

This can be either a Reservation object, or a reservable object if that has a time associated (such as an Event).

Definition at line 29 of file sortutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.