[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Problem with KIO, it seems no signals are emetted
From: Giuseppe Torelli <lcdn () inwind ! it>
Date: 2003-07-18 12:15:31
[Download RAW message or body]
Hi,
I have a problem with KIO::get. I can see
the progress window but the data are not shown.
It seems that the signals are no emetted because
nothing appears in the console window:
void GetAddress::RetrieveAddress ( QListView *view )
{
static const QString *Page[3] = {
{ new QString ("http://www.libero.it") },
{ new QString ("www.virgilio.it") },
{ new QString ("http://www.google.it")},
};
//for (int i = 0; i < 3; i++) {
job [ 0 ] = KIO::get ( Page [ 0 ]->latin1(), true );
job [ 0 ]->addMetaData ("User Agent" , "Mizio 0.1" );
connect (job [ 0 ], SIGNAL (data( KIO::Job*, const QByteArray & )) , SLOT
(slotData ( KIO::Job*, const QByteArray & )) );
connect (job [ 0 ], SIGNAL (result( KIO::Job*)) , SLOT (slotResult
(KIO::Job*)) );
connect (job [ 0 ], SIGNAL (canceled( KIO::Job*)) , SLOT (slotResult
(KIO::Job*)) );
void GetAddress::slotData (KIO::Job*, const QByteArray &data)
{
if (data.size() == 0)
{
printf ("Non ci sono dati !");
}
else
{
QCString c_string(data.data(), data.size());
kdDebug() << "Data: \"" << c_string.data() << "\"" << endl;
}
}
void GetAddress::slotResult ( KIO::Job* )
{
if (job[0]->error())
job[0]->showErrorDialog();
}
But nothing appers in the console window.
Did I commit some mistake about the signals ?
Thank you,
--
Giuseppe Torelli
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic