Libplasma

plasma_containmentactions_packagestructure.cpp
1/*
2 SPDX-FileCopyrightText: 2007-2009 Aaron Seigo <aseigo@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "config-plasma.h"
8#include "packages_p.h"
9#include <KPackage/Package>
10#include <KPackage/PackageStructure>
11
12class ContainmentActionsPackage : public Plasma::GenericPackage
13{
14 Q_OBJECT
15public:
16 using Plasma::GenericPackage::GenericPackage;
17
18 void initPackage(KPackage::Package *package) override
19 {
20 GenericPackage::initPackage(package);
21 package->setDefaultPackageRoot(QStringLiteral(PLASMA_RELATIVE_DATA_INSTALL_DIR "/containmentactions/"));
22 }
23};
24
25K_PLUGIN_CLASS_WITH_JSON(ContainmentActionsPackage, "plasma_containmentactions_packagestructure.json")
26
27#include "plasma_containmentactions_packagestructure.moc"
void setDefaultPackageRoot(const QString &packageRoot)
#define K_PLUGIN_CLASS_WITH_JSON(classname, jsonFile)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.