Akonadi Search

contactcompleter.h
1 /*
2  * This file is part of the KDE Akonadi Search Project
3  * SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
4  *
5  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6  *
7  */
8 
9 #pragma once
10 
11 #include "search_pim_export.h"
12 #include <QString>
13 
14 namespace Akonadi
15 {
16 namespace Search
17 {
18 namespace PIM
19 {
20 // FIXME: Make this async!!
21 /** Contact completer. */
22 class AKONADI_SEARCH_PIM_EXPORT ContactCompleter
23 {
24 public:
25  explicit ContactCompleter(const QString &prefix, int limit = 10);
26 
27  [[nodiscard]] QStringList complete();
28 
29 private:
30  const QString m_prefix;
31  const int m_limit;
32 };
33 }
34 }
35 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:11:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.