File indexing completed on 2024-05-19 05:14:37
0001 /* 0002 This file is part of KAddressBook. 0003 0004 SPDX-FileCopyrightText: 2009-2024 Laurent Montel <montel@kde.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <KParts/GUIActivateEvent> 0012 #include <KParts/Part> 0013 #include <kparts/readonlypart.h> 0014 0015 class MainWidget; 0016 0017 class KAddressBookPart : public KParts::Part 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit KAddressBookPart(QWidget *parentWidget, QObject *parent, const KPluginMetaData &data, const QVariantList &); 0023 ~KAddressBookPart() override; 0024 0025 public Q_SLOTS: 0026 void newContact(); 0027 void newGroup(); 0028 void updateQuickSearchText(); 0029 0030 protected: 0031 void guiActivateEvent(KParts::GUIActivateEvent *) override; 0032 void initAction(); 0033 0034 private: 0035 MainWidget *mMainWidget = nullptr; 0036 };