File indexing completed on 2024-11-24 04:50:41

0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: LGPL-2.1-or-later
0003 #pragma once
0004 #include "abstractapplication.h"
0005 class QQuickWindow;
0006 class ContactApplication : public AbstractApplication
0007 {
0008     Q_OBJECT
0009 
0010 public:
0011     explicit ContactApplication(QObject *parent = nullptr);
0012 
0013     QList<KActionCollection *> actionCollections() const override;
0014 
0015     Q_INVOKABLE void saveWindowGeometry(QQuickWindow *window);
0016 
0017 Q_SIGNALS:
0018     void createNewContact();
0019     void createNewContactGroup();
0020     void refreshAll();
0021 
0022 private:
0023     void setupActions() override;
0024     KActionCollection *mContactCollection = nullptr;
0025 };