/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Source file was org.mauiman.FormFactor.xml
 *
 * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "formfactoradaptor.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 FormFactorAdaptor
 */

FormFactorAdaptor::FormFactorAdaptor(FormFactor *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

uint FormFactorAdaptor::bestMode() const
{
    // get the value of property bestMode
    return qvariant_cast< uint >(parent()->property("bestMode"));
}

uint FormFactorAdaptor::defaultMode() const
{
    // get the value of property defaultMode
    return qvariant_cast< uint >(parent()->property("defaultMode"));
}

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

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

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

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

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

uint FormFactorAdaptor::preferredMode() const
{
    // get the value of property preferredMode
    return qvariant_cast< uint >(parent()->property("preferredMode"));
}

void FormFactorAdaptor::setForceTouchScreen(bool forceTouchScreen)
{
    // handle method call org.mauiman.FormFactor.setForceTouchScreen
    parent()->setForceTouchScreen(forceTouchScreen);
}

void FormFactorAdaptor::setPreferredMode(uint preferredMode)
{
    // handle method call org.mauiman.FormFactor.setPreferredMode
    parent()->setPreferredMode(preferredMode);
}


#include "moc_formfactoradaptor.cpp"
