KCompactDisc
kcompactdisc.cpp
77 name = (QLatin1Char('[') + type + QLatin1String( " - " ) + device.vendor() + QLatin1String( " - " ) + device.product() + QLatin1Char( ']' ));
79 name = (QLatin1Char('[') + type + QLatin1String( " - unknown vendor - " ) + device.product() + QLatin1Char( ']' ));
86 cdromsNameToDeviceUrl.insert(QString("Generic CDROM []"), QUrl::fromPath(wm_drive_default_device()));
109 if(deviceUrl.scheme() == QLatin1String( "media" ) || deviceUrl.scheme() == QLatin1String( "system" )) {
112 QDBusInterface mediamanager( QLatin1String( "org.kde.kded" ), QLatin1String( "/modules/mediamanager" ), QLatin1String( "org.kde.MediaManager" ) );
113 QDBusReply<QStringList> reply = mediamanager.call(QLatin1String( "properties" ), deviceUrl.fileName());
191 return getListOfCdromDevicesNamesAndUdi().value(cdromDeviceName, KCompactDisc::defaultCdromDeviceUdi());
static const QUrl cdromDeviceUrl(const QString &)
The Url of named CDROM device for this system.
Definition kcompactdisc.cpp:164
static const QStringList cdromDeviceNames()
All present CDROM devices.
Definition kcompactdisc.cpp:145
const QString & deviceVendor()
SCSI parameter VENDOR of current CDROM device.
Definition kcompactdisc.cpp:207
unsigned discId()
Current disc, 0 if no disc or impossible to calculate id.
Definition kcompactdisc.cpp:237
bool setDevice(const QString &device, unsigned volume=50, bool digitalPlayback=true, const QString &audioSystem=QString(), const QString &audioDevice=QString())
Definition kcompactdisc.cpp:529
const QList< unsigned > & discSignature()
CDDB signature of disc, empty if no disc or not possible to deliver.
Definition kcompactdisc.cpp:243
const QString & deviceRevision()
SCSI parameter REVISION of current CDROM device.
Definition kcompactdisc.cpp:219
static const QString defaultCdromDeviceName()
The default CDROM device for this system.
Definition kcompactdisc.cpp:150
static const QString defaultCdromDeviceUdi()
The Udi of default CDROM device for this system.
Definition kcompactdisc.cpp:182
void playPosition(unsigned int position)
Start playout or seek to given position of track.
Definition kcompactdisc.cpp:387
static const QString cdromDeviceUdi(const QString &)
The Udi of named CDROM device for this system.
Definition kcompactdisc.cpp:189
const QString & deviceModel()
SCSI parameter MODEL of current CDROM device.
Definition kcompactdisc.cpp:213
static QString urlToDevice(const QUrl &url)
If the url is a media:/ or system:/ URL returns the device it represents, otherwise returns device.
Definition kcompactdisc.cpp:107
static const QUrl defaultCdromDeviceUrl()
The Url of default CDROM device for this system.
Definition kcompactdisc.cpp:157
QString discStatusString(KCompactDisc::DiscStatus status)
Status as string.
Definition kcompactdisc.cpp:285
QString device() const
static QList< Device > listFromType(const DeviceInterface::Type &type, const QString &parentUdi=QString())
MediumTypes supportedMedia() const
Q_SCRIPTABLE CaptureState status()
QString name(GameStandardAction id)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QDBusMessage call(QDBus::CallMode mode, const QString &method, Args &&... args)
bool isValid() const const
bool isEmpty() const const
void clear()
bool empty() const const
iterator insert(const Key &key, const T &value)
T value(const Key &key, const T &defaultValue) const const
QList< T > values() const const
Q_EMITQ_EMIT
QByteArray toLatin1() const const
QString fileName(ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
QUrl fromUserInput(const QString &userInput, const QString &workingDirectory, UserInputResolutionOptions options)
bool isValid() const const
QString path(ComponentFormattingOptions options) const const
QString scheme() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.