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

akonadi

  • akonadi
itemsearchjob.h
1/*
2 Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef AKONADI_ITEMSEARCHJOB_H
21#define AKONADI_ITEMSEARCHJOB_H
22
23#include <akonadi/item.h>
24#include <akonadi/job.h>
25#include <akonadi/collection.h>
26
27#include <QtCore/QUrl>
28
29namespace Akonadi {
30
31class ItemFetchScope;
32class ItemSearchJobPrivate;
33class SearchQuery;
34
67class AKONADI_EXPORT ItemSearchJob : public Job
68{
69 Q_OBJECT
70
71public:
79 explicit AKONADI_DEPRECATED ItemSearchJob(const QString &query, QObject *parent = 0);
80
88 explicit ItemSearchJob(const SearchQuery &query, QObject *parent = 0);
89
93 ~ItemSearchJob();
94
100 void AKONADI_DEPRECATED setQuery(const QString &query);
101
107 void setQuery(const SearchQuery &query);
108
120 void setFetchScope(const ItemFetchScope &fetchScope);
121
134 ItemFetchScope &fetchScope();
135
139 Item::List items() const;
140
153 static AKONADI_DEPRECATED QUrl akonadiItemIdUri();
154
160 void setMimeTypes(const QStringList &mimeTypes);
161
167 QStringList mimeTypes() const;
168
180 void setSearchCollections(const Collection::List &collections);
181
190 Collection::List searchCollections() const;
191
201 void setRecursive(bool recursive);
202
208 bool isRecursive() const;
209
234 void setRemoteSearchEnabled(bool enabled);
235
241 bool isRemoteSearchEnabled() const;
242
243Q_SIGNALS:
253 void itemsReceived(const Akonadi::Item::List &items);
254
255protected:
256 void doStart();
257 virtual void doHandleResponse(const QByteArray &tag, const QByteArray &data);
258
259private:
260 //@cond PRIVATE
261 Q_DECLARE_PRIVATE(ItemSearchJob)
262
263 Q_PRIVATE_SLOT(d_func(), void timeout())
264 //@endcond
265};
266
267}
268
269#endif
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition collection.h:81
Akonadi::ItemFetchScope
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition itemfetchscope.h:70
Akonadi::ItemSearchJob
Job that searches for items in the Akonadi storage.
Definition itemsearchjob.h:68
Akonadi::ItemSearchJob::itemsReceived
void itemsReceived(const Akonadi::Item::List &items)
This signal is emitted whenever new matching items have been fetched completely.
Akonadi::Job
Base class for all actions in the Akonadi storage.
Definition job.h:87
Akonadi::SearchQuery
A query that can be passed to ItemSearchJob or others.
Definition searchquery.h:129
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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