• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

KOHelper Class Reference

#include <kohelper.h>

List of all members.


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:
  • kohelper.h
  • kohelper.cpp

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal