Akonadi

abstractsearchplugin.h
1 /*
2  SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ABSTRACTSEARCHPLUGIN
8 #define AKONADI_ABSTRACTSEARCHPLUGIN
9 
10 #include <QSet>
11 #include <QObject>
12 #include <QStringList>
13 
14 namespace Akonadi
15 {
16 
29 {
30 
31 public:
35  virtual ~AbstractSearchPlugin() = default;
36 
46  virtual QSet<qint64> search(const QString &query, const QVector<qint64> &collections, const QStringList &mimeTypes) = 0;
47 
48 protected:
49  explicit AbstractSearchPlugin() = default;
50 
51 private:
52  Q_DISABLE_COPY_MOVE(AbstractSearchPlugin)
53 };
54 
55 }
56 
57 Q_DECLARE_INTERFACE(Akonadi::AbstractSearchPlugin, "org.freedesktop.Akonadi.AbstractSearchPlugin")
58 
59 #endif
virtual ~AbstractSearchPlugin()=default
Destructor.
3rd party applications can install a search plugin for Akonadi server to provide access to their sear...
virtual QSet< qint64 > search(const QString &query, const QVector< qint64 > &collections, const QStringList &mimeTypes)=0
Reimplement this method to provide the actual search capability.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Nov 21 2020 23:17:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.