[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Kio's signals
From:       Sheraz <sakings99 () yahoo ! com>
Date:       2004-06-30 19:12:58
Message-ID: 20040630191258.15470.qmail () web13605 ! mail ! yahoo ! com
[Download RAW message or body]

Hi
I was not getting proper signals response, when i was
trying for KIO's get method

code look like following:

/** Decleration Part */
KURL m_urlHost;
KIO::TransferJob* m_httpJob;


/** Defination inside function */

m_urlHost = KURL();
m_urlHost.setProtocol("http");
m_urlHost.setHost("myserver.com");
m_urlHost.setPath("scripts/test.html");

m_httpJob = KIO::get( m_urlHost, false, true );

/**
m_httpJob->addMetaData("Host", "myserver.com\r\n");
m_httpJob->addMetaData("content-type",
"application/x-www-form-urlencoded\r\n" );
*/
   
   
connect( m_httpJob, SIGNAL( data( KIO::Job *, const
QByteArray &)), this, SLOT( slotdata ( KIO::Job *,
const QByteArray &)));
connect( m_httpJob, SIGNAL( dataReq( KIO::Job *,
QByteArray &)),this,SLOT( dataReq( KIO::Job *,
QByteArray &)));
connect( m_httpJob, SIGNAL( result(KIO::Job
*)),this,SLOT(slotresult(KIO::Job *)));


All of above code compiles and dont give any error ,
all signals/slots are connected very well..they dont
give any error infact above code making a server call
too...(i have checked the server's log..)
but data signal is not being emitted.....
(addition of metatag didn't help for above call...:( )

cany any one help me..

Thanks
SAK



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
 
>> 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