File indexing completed on 2025-01-19 03:57:55

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2009-02-15
0007  * Description : Plasma Address Book contacts interface
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_AKONADI_IFACE_H
0016 #define DIGIKAM_AKONADI_IFACE_H
0017 
0018 // Qt includes
0019 
0020 #include <QObject>
0021 #include <QMenu>
0022 #include <QAction>
0023 
0024 // Local includes
0025 
0026 #include "digikam_export.h"
0027 #include "digikam_config.h"
0028 
0029 class KJob;
0030 
0031 namespace Digikam
0032 {
0033 
0034 class DIGIKAM_EXPORT AkonadiIface : public QObject
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     explicit AkonadiIface(QMenu* const parent);
0041     virtual ~AkonadiIface();
0042 
0043 Q_SIGNALS:
0044 
0045     void signalContactTriggered(const QString&);
0046 
0047 private Q_SLOTS:
0048 
0049     void slotABCSearchResult(KJob*);
0050     void slotABCMenuTriggered(QAction*);
0051 
0052 private:
0053 
0054     QMenu* m_parent;
0055     QMenu* m_ABCmenu;
0056 };
0057 
0058 } // namespace Digikam
0059 
0060 #endif // DIGIKAM_AKONADI_IFACE_H