Solid
storagedrive.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 "storagedrive.h"
00021 #include "storagedrive_p.h"
00022
00023 #include "soliddefs_p.h"
00024 #include <solid/ifaces/storagedrive.h>
00025
00026 Solid::StorageDrive::StorageDrive(QObject *backendObject)
00027 : DeviceInterface(*new StorageDrivePrivate(), backendObject)
00028 {
00029 }
00030
00031 Solid::StorageDrive::StorageDrive(StorageDrivePrivate &dd, QObject *backendObject)
00032 : DeviceInterface(dd, backendObject)
00033 {
00034
00035 }
00036
00037 Solid::StorageDrive::~StorageDrive()
00038 {
00039
00040 }
00041
00042 Solid::StorageDrive::Bus Solid::StorageDrive::bus() const
00043 {
00044 Q_D(const StorageDrive);
00045 return_SOLID_CALL(Ifaces::StorageDrive *, d->backendObject(), Platform, bus());
00046 }
00047
00048 Solid::StorageDrive::DriveType Solid::StorageDrive::driveType() const
00049 {
00050 Q_D(const StorageDrive);
00051 return_SOLID_CALL(Ifaces::StorageDrive *, d->backendObject(), HardDisk, driveType());
00052 }
00053
00054 bool Solid::StorageDrive::isRemovable() const
00055 {
00056 Q_D(const StorageDrive);
00057 return_SOLID_CALL(Ifaces::StorageDrive *, d->backendObject(), false, isRemovable());
00058 }
00059
00060 bool Solid::StorageDrive::isHotpluggable() const
00061 {
00062 Q_D(const StorageDrive);
00063 return_SOLID_CALL(Ifaces::StorageDrive *, d->backendObject(), false, isHotpluggable());
00064 }
00065
00066 #include "storagedrive.moc"
00067