Purpose

youtubeplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include "youtubejob.h"
8#include "youtubejobcomposite.h"
9#include <purpose/pluginbase.h>
10
11#include <KPluginFactory>
12
13class YoutubePlugin : public Purpose::PluginBase
14{
16public:
17 using PluginBase::PluginBase;
18 Purpose::Job *createJob() const override
19 {
20 return new YoutubeJobComposite;
21 }
22};
23
24K_PLUGIN_CLASS_WITH_JSON(YoutubePlugin, "youtubeplugin.json")
25
26#include "youtubeplugin.moc"
#define K_PLUGIN_CLASS_WITH_JSON(classname, jsonFile)
Job that will actually perform the sharing.
Definition job.h:34
Base class to implement by plugins.
Definition pluginbase.h:29
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.