Akonadi Search

akonadisearchdebugsearchpathcombobox.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
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>
11namespace Akonadi
12{
13namespace Search
14{
15/**
16 * @brief The AkonadiSearchDebugSearchPathComboBox class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class AKONADI_SEARCH_DEBUG_EXPORT AkonadiSearchDebugSearchPathComboBox : public QComboBox
20{
21 Q_OBJECT
22public:
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
38private:
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-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.