/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/session/com.deepin.daemon.SoundEffect.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffect.h
 *
 * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.SoundEffectAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
 * Implementation of adaptor class SoundEffectAdaptor
 */

SoundEffectAdaptor::SoundEffectAdaptor(QObject *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

SoundEffectAdaptor::~SoundEffectAdaptor()
{
    // destructor
}

bool SoundEffectAdaptor::enabled() const
{
    // get the value of property Enabled
    return qvariant_cast< bool >(parent()->property("Enabled"));
}

void SoundEffectAdaptor::setEnabled(bool value)
{
    // set the value of property Enabled
    parent()->setProperty("Enabled", QVariant::fromValue(value));
}

void SoundEffectAdaptor::EnableSound(const QString &name, bool enabled)
{
    // handle method call com.deepin.daemon.SoundEffect.EnableSound
    QMetaObject::invokeMethod(parent(), "EnableSound", Q_ARG(QString, name), Q_ARG(bool, enabled));
}

QMap<QString,bool> SoundEffectAdaptor::GetSoundEnabledMap()
{
    // handle method call com.deepin.daemon.SoundEffect.GetSoundEnabledMap
    QMap<QString,bool> result;
    QMetaObject::invokeMethod(parent(), "GetSoundEnabledMap", Q_RETURN_ARG(QMap<QString,bool>, result));
    return result;
}

QString SoundEffectAdaptor::GetSoundFile(const QString &name)
{
    // handle method call com.deepin.daemon.SoundEffect.GetSoundFile
    QString file;
    QMetaObject::invokeMethod(parent(), "GetSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name));
    return file;
}

QString SoundEffectAdaptor::GetSystemSoundFile(const QString &name)
{
    // handle method call com.deepin.daemon.SoundEffect.GetSystemSoundFile
    QString file;
    QMetaObject::invokeMethod(parent(), "GetSystemSoundFile", Q_RETURN_ARG(QString, file), Q_ARG(QString, name));
    return file;
}

bool SoundEffectAdaptor::IsSoundEnabled(const QString &name)
{
    // handle method call com.deepin.daemon.SoundEffect.IsSoundEnabled
    bool enabled;
    QMetaObject::invokeMethod(parent(), "IsSoundEnabled", Q_RETURN_ARG(bool, enabled), Q_ARG(QString, name));
    return enabled;
}

void SoundEffectAdaptor::PlaySound(const QString &name)
{
    // handle method call com.deepin.daemon.SoundEffect.PlaySound
    QMetaObject::invokeMethod(parent(), "PlaySound", Q_ARG(QString, name));
}

void SoundEffectAdaptor::PlaySystemSound(const QString &name)
{
    // handle method call com.deepin.daemon.SoundEffect.PlaySystemSound
    QMetaObject::invokeMethod(parent(), "PlaySystemSound", Q_ARG(QString, name));
}

