Plasma5Support

appsource.h
1/*
2 SPDX-FileCopyrightText: 2009 Chani Armitage <chani@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9// plasma
10#include <Plasma5Support/DataContainer>
11
12#include <KService>
13#include <KServiceGroup>
14
15/**
16 * App Source
17 */
18class AppSource : public Plasma5Support::DataContainer
19{
21
22public:
23 AppSource(const KServiceGroup::Ptr &startup, QObject *parent);
24 AppSource(const KService::Ptr &app, QObject *parent);
25 ~AppSource() override;
26
27protected:
28 Plasma5Support::Service *createService();
29 KService::Ptr getApp();
30 bool isApp() const;
31
32private Q_SLOTS:
33 void updateGroup();
34 void updateApp();
35
36private:
37 friend class AppsEngine;
38 friend class AppJob;
39 KServiceGroup::Ptr m_group;
40 KService::Ptr m_app;
41 bool m_isApp;
42};
QExplicitlySharedDataPointer< KServiceGroup > Ptr
QExplicitlySharedDataPointer< KService > Ptr
A set of data exported via a DataEngine.
This class provides a generic API for write access to settings or services.
Definition service.h:78
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:07 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.