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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
  • next
incidencesearchjob.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
3 
4  Copyright (c) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5  Author: Sérgio Martins <sergio.martins@kdab.com>
6 
7  This library is free software; you can redistribute it and/or modify it
8  under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version.
11 
12  This library is distributed in the hope that it will be useful, but WITHOUT
13  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15  License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to the
19  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  02110-1301, USA.
21 */
22 
23 #ifndef CALENDARSUPPORT_INCIDENCESEARCHJOB_H
24 #define CALENDARSUPPORT_INCIDENCESEARCHJOB_H
25 
26 #include "calendarsupport_export.h"
27 
28 #include <Akonadi/Item>
29 #include <Akonadi/ItemSearchJob>
30 
31 #include <KCalCore/Incidence>
32 
33 namespace CalendarSupport {
34 
85 class CALENDARSUPPORT_EXPORT IncidenceSearchJob : public Akonadi::ItemSearchJob
86 {
87  Q_OBJECT
88 
89  public:
95  explicit IncidenceSearchJob( QObject *parent = 0 );
96 
100  ~IncidenceSearchJob();
101 
105  enum Criterion {
106  IncidenceUid
107  };
108 
114  enum Match {
115  ExactMatch,
116  StartsWithMatch,
117  ContainsMatch
118  };
119 
125  void setQuery( Criterion criterion, const QString &value, Match match );
126 
136  void setLimit( int limit );
137 
141  KCalCore::Incidence::List incidences() const;
142 
143  private:
144  //@cond PRIVATE
145  class Private;
146  Private *const d;
147  //@endcond
148 };
149 
150 }
151 
152 #endif
CalendarSupport::IncidenceSearchJob::ExactMatch
The result must match exactly the pattern (case sensitive).
Definition: incidencesearchjob.h:115
CalendarSupport::IncidenceSearchJob::Match
Match
Describes the type of pattern matching that shall be used.
Definition: incidencesearchjob.h:114
CalendarSupport::IncidenceSearchJob::StartsWithMatch
The result must start with the pattern (case insensitive).
Definition: incidencesearchjob.h:116
QObject
calendarsupport_export.h
CalendarSupport::incidences
CALENDARSUPPORT_EXPORT KCalCore::Incidence::List incidences(const QMimeData *mimeData, const KDateTime::Spec &timeSpec)
Definition: utils.cpp:374
CalendarSupport::IncidenceSearchJob
Job that searches for calendar incidences in the Akonadi storage.
Definition: incidencesearchjob.h:85
CalendarSupport::IncidenceSearchJob::Criterion
Criterion
Describes the criteria that can be searched for.
Definition: incidencesearchjob.h:105
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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

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