On Wednesday 08 August 2012 03:05:43 Anant Kamath wrote: > Hi, > > I'm trying to use libk3b for burning an ISO file : > > Here is the portion of code that I'm using (after creating a Kapplication > object) : > > -------------------------------------------------------------------------- > QString imageFile = "/home/anant/test.iso"; > K3b::Core *c = new K3b::Core; > qDebug()<<k3bcore; > c->init(); > K3b::Device::DeviceManager* manager = new K3b::Device::DeviceManager( > &app ); > manager->scanBus(); > K3b::Device::Device* dev = manager->cdWriter().at( 0 ); > qDebug()<< dev->vendor(); > > K3b::SimpleJobHandler* hdl = new K3b::SimpleJobHandler ( &app ); > K3b::Iso9660ImageWritingJob* job = new K3b::Iso9660ImageWritingJob( hdl > ); > > job->setBurnDevice( dev ); > job->setSpeed( 0 ); //Auto > job->setSimulate( 0 ); > job->setVerifyData( 0 ); > job->setNoFix( 0 ); // No multisession > job->setDataMode( K3b::DataModeAuto ); > job->setImagePath( imageFile ); > job->setCopies( 1 ); > job->setWritingApp( K3b::WritingAppAuto ); > > qDebug()<<job; > job->start();
What's the next line after that (here or probably in the caller, i.e. main(), I guess)? return 0, or return app.exec()? :-) -- David Faure, fa...@kde.org, http://www.davidfaure.fr Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<