• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kcal
Functions | Variables
todo.cpp File Reference
#include "todo.h"
#include "incidenceformatter.h"
#include <kglobal.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <ksystemtimezone.h>
Include dependency graph for todo.cpp:

Go to the source code of this file.

Functions

 if (recurs()&&!first)
 
 if (recurs()&&dtDue< recurrence() ->startDateTime())
 
 recurrence () -> setStartDateTime(dtDue)
 
 updated ()
 

Variables

else d mDtDue = dtDue
 
d mHasDueDate = true
 

Detailed Description

This file is part of the API for handling calendar data and defines the Todo class.

Provides a To-do in the sense of RFC2445.

Author
Cornelius Schumacher <schum.nosp@m.ache.nosp@m.r@kde.nosp@m..org>
Allen Winter <winte.nosp@m.r@kd.nosp@m.e.org>

Definition in file todo.cpp.

Variable Documentation

d mHasDueDate = true

Private class that helps to provide binary compatibility between releases.

Todo::Todo() : d( new KCal::Todo::Private ) { }

Todo::Todo( const Todo &other ) : Incidence( other ), d( new KCal::Todo::Private( *other.d ) ) { }

Todo::~Todo() { delete d; }

Todo *Todo::clone() { return new Todo( *this ); }

Todo &Todo::operator=( const Todo &other ) { check for self assignment if ( &other == this ) { return *this; }

Incidence::operator=( other ); d->init( *other.d ); return *this; }

bool Todo::operator==( const Todo &todo ) const { return Incidence::operator==( todo ) && dtDue() == todo.dtDue() && hasDueDate() == todo.hasDueDate() && hasStartDate() == todo.hasStartDate() && completed() == todo.completed() && hasCompletedDate() == todo.hasCompletedDate() && percentComplete() == todo.percentComplete(); }

QByteArray Todo::type() const { return "Todo"; }

KDE5: QString Todo::typeStr() const { return i18nc( "incidence type is to-do/task", "to-do" ); }

void Todo::setDtDue( const KDateTime &dtDue, bool first ) { int diffsecs = d->mDtDue.secsTo(dtDue);

/*if (mReadOnly) return; const Alarm::List& alarms = alarms(); for (Alarm *alarm = alarms.first(); alarm; alarm = alarms.next()) { if (alarm->enabled()) { alarm->setTime(alarm->time().addSecs(diffsecs)); } }

Definition at line 160 of file todo.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal