Solid
serialinterface.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "serialinterface.h"
00021 #include "serialinterface_p.h"
00022
00023 #include <QtCore/qvariant.h>
00024
00025 #include "soliddefs_p.h"
00026 #include <solid/ifaces/serialinterface.h>
00027
00028 Solid::SerialInterface::SerialInterface(QObject *backendObject)
00029 : DeviceInterface(*new SerialInterfacePrivate(), backendObject)
00030 {
00031 }
00032
00033 Solid::SerialInterface::~SerialInterface()
00034 {
00035
00036 }
00037
00038 QVariant Solid::SerialInterface::driverHandle() const
00039 {
00040 Q_D(const SerialInterface);
00041 return_SOLID_CALL(Ifaces::SerialInterface *, d->backendObject(), QVariant(), driverHandle());
00042 }
00043
00044 Solid::SerialInterface::SerialType Solid::SerialInterface::serialType() const
00045 {
00046 Q_D(const SerialInterface);
00047 return_SOLID_CALL(Ifaces::SerialInterface *, d->backendObject(), Unknown, serialType());
00048 }
00049
00050 int Solid::SerialInterface::port() const
00051 {
00052 Q_D(const SerialInterface);
00053 return_SOLID_CALL(Ifaces::SerialInterface *, d->backendObject(), -1, port());
00054 }
00055
00056 #include "serialinterface.moc"