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();

---------------------------------------------------------------------------------

The problem is that, I get no errors while compiling or running this code,
but the job just doesn't seem to start. (i.e. I'm inserting a blank CD but
no disk is burned when this code is run. ).

Are the steps that I' m following to create & run the iso burning job
correct ?

Would really appreciate any help.

Regards,
Anant Kamath
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to