Akonadi Search

akonadisearchdebugsearchpathcombobox.h
1 /*
2  SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "search_debug_export.h"
10 #include <QComboBox>
11 namespace Akonadi
12 {
13 namespace Search
14 {
15 /**
16  * @brief The AkonadiSearchDebugSearchPathComboBox class
17  * @author Laurent Montel <[email protected]>
18  */
19 class AKONADI_SEARCH_DEBUG_EXPORT AkonadiSearchDebugSearchPathComboBox : public QComboBox
20 {
21  Q_OBJECT
22 public:
23  explicit AkonadiSearchDebugSearchPathComboBox(QWidget *parent = nullptr);
24  enum SearchType {
25  Contacts = 0,
26  ContactCompleter,
27  Emails,
28  Notes,
29  Calendars,
30  };
32 
33  [[nodiscard]] QString searchPath() const;
34 
35  [[nodiscard]] QString pathFromEnum(SearchType type) const;
36  void setSearchType(SearchType type);
37 
38 private:
39  AKONADI_SEARCH_DEBUG_NO_EXPORT const QString defaultLocations(const QString &dbname) const;
40  AKONADI_SEARCH_DEBUG_NO_EXPORT void initialize();
41 };
42 }
43 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:11:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.