korganizer
KOHelper Class Reference
#include <kohelper.h>
Detailed Description
Definition at line 41 of file kohelper.h.
Static Public Member Functions | |
| static QColor | resourceColor (KCal::Calendar *calendar, KCal::Incidence *incidence) |
| static QString | resourceLabel (KCal::Calendar *calendar, KCal::Incidence *incidence) |
| static KDateTime | toTimeSpec (const KDateTime &dt, KCal::Calendar *calendar=0) |
Member Function Documentation
| QColor KOHelper::resourceColor | ( | KCal::Calendar * | calendar, | |
| KCal::Incidence * | incidence | |||
| ) | [static] |
This method returns the proper resource / subresource color for the view.
- Returns:
- The resource color for the incidence. If the incidence belongs to a subresource, the color for the subresource is returned (if set).
- Parameters:
-
calendar the calendar for which the resource color should be obtained incidence the incidence for which the color is needed (to determine which subresource needs to be used)
Definition at line 38 of file kohelper.cpp.
| QString KOHelper::resourceLabel | ( | KCal::Calendar * | calendar, | |
| KCal::Incidence * | incidence | |||
| ) | [static] |
Returns the resource label the given incidence belongs to.
Definition at line 85 of file kohelper.cpp.
| KDateTime KOHelper::toTimeSpec | ( | const KDateTime & | dt, | |
| KCal::Calendar * | calendar = 0 | |||
| ) | [static] |
This method converts the date time to the calendar timespec if a calendar is specified.
Else it converts it to preferences timespec.
If
- Parameters:
-
dt is dateOnly(), it wont be converted and just returned.
Definition at line 72 of file kohelper.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference