summaryrefslogtreecommitdiffstats
path: root/k9devices/k9haldevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'k9devices/k9haldevice.cpp')
-rw-r--r--k9devices/k9haldevice.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/k9devices/k9haldevice.cpp b/k9devices/k9haldevice.cpp
index 0f70c42..f42ead8 100644
--- a/k9devices/k9haldevice.cpp
+++ b/k9devices/k9haldevice.cpp
@@ -17,17 +17,17 @@
#include <hal/libhal.h>
#include <hal/libhal-storage.h>
-k9HalDevice::k9HalDevice(QObject *parent, const char *udi)
- : QObject(parent, udi) {
+k9HalDevice::k9HalDevice(TQObject *tqparent, const char *udi)
+ : TQObject(tqparent, udi) {
- m_connection=(k9HalConnection*)parent;
+ m_connection=(k9HalConnection*)tqparent;
getDriveProperties();
}
k9HalDevice::~k9HalDevice() {}
-QString k9HalDevice::volumeName() {
- QString sVol("");
+TQString k9HalDevice::volumeName() {
+ TQString sVol("");
LibHalDrive *drive= libhal_drive_from_udi ((LibHalContext *)m_connection->m_context, name());
int num_volumes;
if (drive !=NULL) {
@@ -37,11 +37,11 @@ QString k9HalDevice::volumeName() {
char *volume_udi;
LibHalVolume *volume;
volume_udi = volumes[i];
- QString s(volume_udi);
+ TQString s(volume_udi);
m_volumeUdi=s;
volume = libhal_volume_from_udi ((LibHalContext *)m_connection->m_context, volume_udi);
if (volume != NULL) {
- sVol=QString(libhal_volume_get_label (volume));
+ sVol=TQString(libhal_volume_get_label (volume));
libhal_volume_free (volume);
}
}
@@ -53,8 +53,8 @@ QString k9HalDevice::volumeName() {
return sVol;
}
-QString k9HalDevice::mountPoint() {
- QString sMountPoint("");
+TQString k9HalDevice::mountPoint() {
+ TQString sMountPoint("");
LibHalDrive *drive= libhal_drive_from_udi ((LibHalContext *)m_connection->m_context, name());
if (drive !=NULL) {
int num_volumes;
@@ -66,7 +66,7 @@ QString k9HalDevice::mountPoint() {
volume_udi = volumes[i];
volume = libhal_volume_from_udi ((LibHalContext *)m_connection->m_context, volume_udi);
if (volume != NULL) {
- sMountPoint=QString(libhal_volume_get_mount_point (volume));
+ sMountPoint=TQString(libhal_volume_get_mount_point (volume));
libhal_volume_free (volume);
}
}
@@ -94,8 +94,8 @@ void k9HalDevice::getDriveProperties() {
m_canBurnCd= (caps & LIBHAL_DRIVE_CDROM_CAPS_CDR)==LIBHAL_DRIVE_CDROM_CAPS_CDR;
m_canReadDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDROM)==LIBHAL_DRIVE_CDROM_CAPS_DVDROM;
m_canBurnDvd=(caps & LIBHAL_DRIVE_CDROM_CAPS_DVDR)==LIBHAL_DRIVE_CDROM_CAPS_DVDR;
- m_model=QString(libhal_drive_get_model(drive));
- // qDebug(QString("canReadDvd:%1 canBurnDvd:%2 model:%3").arg(m_canReadDvd).arg(m_canBurnDvd).arg(m_model));
+ m_model=TQString(libhal_drive_get_model(drive));
+ // qDebug(TQString("canReadDvd:%1 canBurnDvd:%2 model:%3").tqarg(m_canReadDvd).tqarg(m_canBurnDvd).tqarg(m_model));
libhal_drive_free(drive);
@@ -103,7 +103,7 @@ void k9HalDevice::getDriveProperties() {
m_maxWriteSpeed= libhal_device_get_property_int( (LibHalContext*)m_connection->m_context, name(), "storage.cdrom.write_speed", 0 );
}
char* dev = libhal_device_get_property_string( (LibHalContext*) m_connection->m_context, name(), "block.device", 0 );
- m_deviceName=QString ( dev );
+ m_deviceName=TQString ( dev );
libhal_free_string( dev );
m_volumeName=volumeName();