mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
Merge branch 'master' of ssh://github.com/fluxer/kdelibs into devinfo
This commit is contained in:
commit
c323c097d9
5 changed files with 29 additions and 2 deletions
|
@ -31,4 +31,9 @@ Graphic::~Graphic()
|
|||
{
|
||||
}
|
||||
|
||||
QString Graphic::driver() const
|
||||
{
|
||||
return m_device->udevDevice().driver();
|
||||
}
|
||||
|
||||
#include "moc_udevgraphic.cpp"
|
||||
|
|
|
@ -38,6 +38,8 @@ class Graphic : public DeviceInterface, virtual public Solid::Ifaces::Graphic
|
|||
public:
|
||||
Graphic(UDevDevice *device);
|
||||
virtual ~Graphic();
|
||||
|
||||
virtual QString driver() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,8 +31,14 @@ Solid::Graphic::Graphic(QObject *backendObject)
|
|||
|
||||
Solid::Graphic::~Graphic()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QString Solid::Graphic::driver() const
|
||||
{
|
||||
Q_D(const Graphic);
|
||||
return_SOLID_CALL(Ifaces::Graphic *, d->backendObject(), QString(), driver());
|
||||
}
|
||||
|
||||
|
||||
#include "moc_graphic.cpp"
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ namespace Solid
|
|||
class SOLID_EXPORT Graphic : public DeviceInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString driver READ driver)
|
||||
Q_DECLARE_PRIVATE(Graphic)
|
||||
friend class Device;
|
||||
|
||||
|
@ -58,7 +59,6 @@ namespace Solid
|
|||
*/
|
||||
virtual ~Graphic();
|
||||
|
||||
|
||||
/**
|
||||
* Get the Solid::DeviceInterface::Type of the Graphic device interface.
|
||||
*
|
||||
|
@ -66,6 +66,13 @@ namespace Solid
|
|||
* @see Solid::DeviceInterface::Type
|
||||
*/
|
||||
static Type deviceInterfaceType() { return DeviceInterface::Graphic; }
|
||||
|
||||
/**
|
||||
* Retrieves the driver used by the device.
|
||||
*
|
||||
* @return the driver name
|
||||
*/
|
||||
QString driver() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,13 @@ namespace Ifaces
|
|||
* Destroys a Graphic object.
|
||||
*/
|
||||
virtual ~Graphic();
|
||||
|
||||
/**
|
||||
* Retrieves the driver used by the device.
|
||||
*
|
||||
* @return the driver name
|
||||
*/
|
||||
virtual QString driver() const = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue