Warning, file /pim/akonadi-search/lib/contactcompleter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * This file is part of the KDE Akonadi Search Project 0003 * SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 * 0007 */ 0008 0009 #pragma once 0010 0011 #include "search_pim_export.h" 0012 #include <QString> 0013 0014 namespace Akonadi 0015 { 0016 namespace Search 0017 { 0018 namespace PIM 0019 { 0020 // FIXME: Make this async!! 0021 /** Contact completer. */ 0022 class AKONADI_SEARCH_PIM_EXPORT ContactCompleter 0023 { 0024 public: 0025 explicit ContactCompleter(const QString &prefix, int limit = 10); 0026 0027 [[nodiscard]] QStringList complete(); 0028 0029 private: 0030 const QString m_prefix; 0031 const int m_limit; 0032 }; 0033 } 0034 } 0035 }