File indexing completed on 2025-01-05 04:46:05

0001 /*
0002  * This file is part of the KDE Akonadi Search Project
0003  * SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  *
0007  */
0008 
0009 #include "calendarsearchstore.h"
0010 
0011 using namespace Akonadi::Search;
0012 
0013 CalendarSearchStore::CalendarSearchStore(QObject *parent)
0014     : PIMSearchStore(parent)
0015 {
0016     m_prefix.insert(QStringLiteral("collection"), QStringLiteral("C"));
0017     m_prefix.insert(QStringLiteral("organizer"), QStringLiteral("O"));
0018     m_prefix.insert(QStringLiteral("partstatus"), QStringLiteral("PS"));
0019     m_prefix.insert(QStringLiteral("summary"), QStringLiteral("S"));
0020     m_prefix.insert(QStringLiteral("location"), QStringLiteral("L"));
0021 
0022     m_boolWithValue << QStringLiteral("partstatus");
0023 
0024     setDbPath(findDatabase(QStringLiteral("calendars")));
0025 }
0026 
0027 QStringList CalendarSearchStore::types()
0028 {
0029     return QStringList() << QStringLiteral("Akonadi") << QStringLiteral("Calendar");
0030 }
0031 
0032 #include "moc_calendarsearchstore.cpp"