Akonadi

abstractsearchengine.h
1 /*
2  Copyright (c) 2008 Tobias Koenig <[email protected]>
3  Copyright (c) 2010 Volker Krause <[email protected]>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef AKONADI_ABSTRACTSEARCHENGINE_H
22 #define AKONADI_ABSTRACTSEARCHENGINE_H
23 
24 #include <qglobal.h>
25 
26 namespace Akonadi
27 {
28 namespace Server
29 {
30 
31 class Collection;
32 
38 {
39 public:
40  virtual ~AbstractSearchEngine()
41  {
42  }
43 
47  virtual void addSearch(const Collection &collection) = 0;
48 
52  virtual void removeSearch(qint64 id) = 0;
53 };
54 
55 } // namespace Server
56 } // namespace Akonadi
57 
58 #endif
Abstract interface for search engines.
virtual void removeSearch(qint64 id)=0
Removes the collection with the given id from the search.
virtual void addSearch(const Collection &collection)=0
Adds the given collection to the search.
Helper integration between Akonadi and Qt.
Representation of a record in the Collection table.
Definition: entities.h:451
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:46:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.