1 /* 2 * This file is part of the KDE Akonadi Search Project 3 * SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> 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 Q_REQUIRED_RESULT QStringList complete(); 28 29 private: 30 const QString m_prefix; 31 const int m_limit; 32 }; 33 } 34 } 35 } 36