Back to Overview | Tutorial 1 | Tutorial 2 | Tutorial 3 | Tutorial 4 | Tutorial 5
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <QList>
00022
00023
00024 #include <solid/devicenotifier.h>
00025 #include <solid/device.h>
00026 #include <solid/deviceinterface.h>
00027
00028
00029 #include <kcomponentdata.h>
00030 #include <kcmdlineargs.h>
00031 #include <klocale.h>
00032 #include <kdebug.h>
00033
00034 #include <iostream>
00035
00036 using namespace std;
00037
00038 int main(int args, char **argv)
00039 {
00040 KComponentData componentData("tutorial2");
00041
00042
00043 foreach (const Solid::Device &device, Solid::Device::listFromType(Solid::DeviceInterface::AudioInterface, QString()))
00044 {
00045 kDebug() << device.udi().toLatin1().constData();
00046 }
00047 return 0;
00048 }
00049
00050 #include "tutorial2.moc"