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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • korganizer
summaryeventinfo.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2005-2006,2008-2009 Allen Winter <winter@kde.org>
6  Copyright (c) 2008 Thomas McGuire <mcguire@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22  As a special exception, permission is given to link this program
23  with any edition of Qt, and distribute the resulting executable,
24  without including the source code for Qt in the source distribution.
25 */
26 #ifndef SUMMARYEVENTINFO_H
27 #define SUMMARYEVENTINFO_H
28 
29 #include <KCalCore/Calendar>
30 #include <KCalCore/Event>
31 
32 #include <QList>
33 #include <QString>
34 
35 class QDate;
36 
37 class SummaryEventInfo
38 {
39  public:
40 
41  typedef QList<SummaryEventInfo*> List;
42 
43  SummaryEventInfo();
44 
45  static List eventsForDate( const QDate &date,
46  KCalCore::Calendar *calendar );
47  static List eventsForRange(const QDate &start, const QDate &end, // range is inclusive
48  KCalCore::Calendar *calendar );
49  static void setShowSpecialEvents( bool skipBirthdays, bool skipAnniversaries );
50 
51  KCalCore::Event::Ptr ev;
52  QString startDate;
53  QString dateSpan;
54  QString daysToGo;
55  QString timeRange;
56  QString summaryText;
57  QString summaryUrl;
58  QString summaryTooltip;
59  bool makeBold;
60 
61  private:
62 
63  static void dateDiff( const QDate &date, int &days );
64  static bool skip( const KCalCore::Event::Ptr &event );
65  static bool mShowBirthdays, mShowAnniversaries;
66 };
67 
68 #endif
SummaryEventInfo::summaryUrl
QString summaryUrl
Definition: summaryeventinfo.h:57
SummaryEventInfo
Definition: summaryeventinfo.h:37
SummaryEventInfo::setShowSpecialEvents
static void setShowSpecialEvents(bool skipBirthdays, bool skipAnniversaries)
Definition: summaryeventinfo.cpp:74
SummaryEventInfo::summaryText
QString summaryText
Definition: summaryeventinfo.h:56
date
time_t date() const
SummaryEventInfo::summaryTooltip
QString summaryTooltip
Definition: summaryeventinfo.h:58
SummaryEventInfo::startDate
QString startDate
Definition: summaryeventinfo.h:52
SummaryEventInfo::List
QList< SummaryEventInfo * > List
Definition: summaryeventinfo.h:41
SummaryEventInfo::ev
KCalCore::Event::Ptr ev
Definition: summaryeventinfo.h:51
QDate
QString
QList
SummaryEventInfo::dateSpan
QString dateSpan
Definition: summaryeventinfo.h:53
SummaryEventInfo::eventsForRange
static List eventsForRange(const QDate &start, const QDate &end, KCalCore::Calendar *calendar)
static
Definition: summaryeventinfo.cpp:134
SummaryEventInfo::daysToGo
QString daysToGo
Definition: summaryeventinfo.h:54
SummaryEventInfo::SummaryEventInfo
SummaryEventInfo()
Definition: summaryeventinfo.cpp:128
SummaryEventInfo::makeBold
bool makeBold
Definition: summaryeventinfo.h:59
SummaryEventInfo::timeRange
QString timeRange
Definition: summaryeventinfo.h:55
SummaryEventInfo::eventsForDate
static List eventsForDate(const QDate &date, KCalCore::Calendar *calendar)
Definition: summaryeventinfo.cpp:320
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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