You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
598 B
22 lines
598 B
// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org> |
|
// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
|
|
|
#pragma once |
|
#include <KService> |
|
#include <QObject> |
|
|
|
class ApplicationIntegration : public QObject |
|
{ |
|
Q_OBJECT |
|
Q_PROPERTY(bool korganizerInstalled READ korganizerInstalled CONSTANT) |
|
|
|
public: |
|
explicit ApplicationIntegration(QObject *parent = nullptr); |
|
~ApplicationIntegration() = default; |
|
|
|
bool korganizerInstalled() const; |
|
Q_INVOKABLE void launchKorganizer() const; |
|
|
|
private: |
|
KService::Ptr m_korganizerService; |
|
};
|
|
|