module.cpp 2.13 KB
Newer Older
Harald Sitter's avatar
add kcm  
Harald Sitter committed
1
/*
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
    Copyright 2014-2015 Harald Sitter <sitter@kde.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) version 3, or any
    later version accepted by the membership of KDE e.V. (or its
    successor approved by the membership of KDE e.V.), which shall
    act as a proxy defined in Section 6 of version 3 of the license.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library.  If not, see <http://www.gnu.org/licenses/>.
Harald Sitter's avatar
add kcm  
Harald Sitter committed
19 20 21 22 23
*/

#include "module.h"

#include <KAboutData>
Harald Sitter's avatar
Harald Sitter committed
24
#include <KDeclarative/KDeclarative>
Harald Sitter's avatar
add kcm  
Harald Sitter committed
25
#include <KLocalizedString>
26
#include <KPluginFactory>
Harald Sitter's avatar
add kcm  
Harald Sitter committed
27 28 29 30 31 32

#include <context.h>
#include <pulseaudio.h>

#include "version.h"

Nicolas Fella's avatar
Nicolas Fella committed
33
K_PLUGIN_CLASS_WITH_JSON(KCMPulseAudio, "metadata.json")
Harald Sitter's avatar
add kcm  
Harald Sitter committed
34

35 36
KCMPulseAudio::KCMPulseAudio(QObject *parent, const QVariantList &args)
    : KQuickAddons::ConfigModule(parent, args)
Harald Sitter's avatar
add kcm  
Harald Sitter committed
37
{
38
    KAboutData *aboutData = new KAboutData("kcm_pulseaudio",
39
                                           i18nc("@title", "Audio"),
40
                                           QStringLiteral(PLASMAPA_VERSION_STRING),
Harald Sitter's avatar
add kcm  
Harald Sitter committed
41 42
                                           QStringLiteral(""),
                                           KAboutLicense::LicenseKey::GPL_V3,
43
                                           i18nc("@info:credit", "Copyright 2015 Harald Sitter"));
Harald Sitter's avatar
Harald Sitter committed
44

Harald Sitter's avatar
add kcm  
Harald Sitter committed
45 46 47 48 49
    aboutData->addAuthor(i18nc("@info:credit", "Harald Sitter"),
                        i18nc("@info:credit", "Author"),
                        QStringLiteral("apachelogger@kubuntu.org"));

    setAboutData(aboutData);
50
    setButtons(Help);
51 52 53 54 55 56 57
}

KCMPulseAudio::~KCMPulseAudio()
{
}

void KCMPulseAudio::load()
Harald Sitter's avatar
add kcm  
Harald Sitter committed
58 59 60
{
}

61
void KCMPulseAudio::save()
Harald Sitter's avatar
add kcm  
Harald Sitter committed
62 63 64
{
}

65
void KCMPulseAudio::defaults()
Harald Sitter's avatar
add kcm  
Harald Sitter committed
66 67 68 69
{
}

#include "module.moc"