Logo Search packages:      
Sourcecode: qt-at-spi version File versions  Download package

value_adaptor.cpp

/*
 * This file was generated by qdbusxml2cpp version 0.7
 * Command line was: qdbusxml2cpp -i marshallers.h -a value_adaptor ../../xml/Value.xml
 *
 * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "value_adaptor.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 ValueAdaptor
 */

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

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

double ValueAdaptor::currentValue() const
{
    // get the value of property CurrentValue
    return qvariant_cast< double >(parent()->property("CurrentValue"));
}

void ValueAdaptor::SetCurrentValue(double value)
{
    // set the value of property CurrentValue
    parent()->setProperty("CurrentValue", qVariantFromValue(value));
}

double ValueAdaptor::maximumValue() const
{
    // get the value of property MaximumValue
    return qvariant_cast< double >(parent()->property("MaximumValue"));
}

double ValueAdaptor::minimumIncrement() const
{
    // get the value of property MinimumIncrement
    return qvariant_cast< double >(parent()->property("MinimumIncrement"));
}

double ValueAdaptor::minimumValue() const
{
    // get the value of property MinimumValue
    return qvariant_cast< double >(parent()->property("MinimumValue"));
}


Generated by  Doxygen 1.6.0   Back to index