Solid
audiointerface.cpp
Go to the documentation of this file.
00001 /* 00002 Copyright 2006-2007 Kevin Ottens <ervin@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Lesser General Public 00006 License as published by the Free Software Foundation; either 00007 version 2.1 of the License, or (at your option) version 3, or any 00008 later version accepted by the membership of KDE e.V. (or its 00009 successor approved by the membership of KDE e.V.), which shall 00010 act as a proxy defined in Section 6 of version 3 of the license. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #include "audiointerface.h" 00022 #include "audiointerface_p.h" 00023 00024 #include "soliddefs_p.h" 00025 #include <solid/ifaces/audiointerface.h> 00026 #include <QtCore/QStringList> 00027 #include <QtCore/QVariant> 00028 00029 Solid::AudioInterface::AudioInterface(QObject *backendObject) 00030 : DeviceInterface(*new AudioInterfacePrivate(), backendObject) 00031 { 00032 } 00033 00034 Solid::AudioInterface::~AudioInterface() 00035 { 00036 00037 } 00038 00039 00040 Solid::AudioInterface::AudioDriver Solid::AudioInterface::driver() const 00041 { 00042 Q_D(const AudioInterface); 00043 return_SOLID_CALL(Ifaces::AudioInterface *, d->backendObject(), UnknownAudioDriver, driver()); 00044 } 00045 00046 QVariant Solid::AudioInterface::driverHandle() const 00047 { 00048 Q_D(const AudioInterface); 00049 return_SOLID_CALL(Ifaces::AudioInterface *, d->backendObject(), QVariant(), driverHandle()); 00050 } 00051 00052 QString Solid::AudioInterface::name() const 00053 { 00054 Q_D(const AudioInterface); 00055 return_SOLID_CALL(Ifaces::AudioInterface *, d->backendObject(), QString(), name()); 00056 } 00057 00058 Solid::AudioInterface::AudioInterfaceTypes Solid::AudioInterface::deviceType() const 00059 { 00060 Q_D(const AudioInterface); 00061 return_SOLID_CALL(Ifaces::AudioInterface *, d->backendObject(), UnknownAudioInterfaceType, deviceType()); 00062 } 00063 00064 Solid::AudioInterface::SoundcardType Solid::AudioInterface::soundcardType() const 00065 { 00066 Q_D(const AudioInterface); 00067 return_SOLID_CALL(Ifaces::AudioInterface *, d->backendObject(), InternalSoundcard, soundcardType()); 00068 } 00069 00070 #include "audiointerface.moc"
KDE 4.6 API Reference