KDE
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists KDE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old January 12th, 2006, 01:33 AM
Aditya Mooley
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
KIO::http_post problem

Hi,

I am trying to create a KDE application to uplaod photos to Coppermine Photo
Gallery. I was able to upload using QHttp but I want syncronous calls so
that progress bar, etc can be done.
I am trying with KI namespace but I am getting error of undefined
reference.

Here's what I am trying to do:

QByteArray array;
QBuffer buffer(array);
QTextStream textStream(&buffer);
textStream.setEncoding(QTextStream::UnicodeUTF8);
textStream << dd << boundary << crlf;

buffer.close();
KI::TransferJob *job = KI::http_post(url, array, false);
job->addMetaData("content-type", "Content-Type: multipart/form-data;
boundary=" + boundary);

I have include kio/job.h to get the KI namespace.

I am getting following errors:

undefined reference to `KI::http_post(KURL const&, QMemArray<charconst&,
bool)'
undefined reference to `KI::Job::addMetaData(QString const&, QString
const&)'

The second argument required for http_post should be of type QByteArray and
my variable array is of that type but still it is considered as an object of
QMemArray.

Thanks in advance for all your help.

Regards,

--
Aditya Mooley

PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net



>Visit #unsub to unsubscribe <<

Reply With Quote
  #2  
Old January 12th, 2006, 03:36 AM
David Faure
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
KIO::http_post problem

Thursday 12 January 2006 07:20, Aditya Mooley wrote:
undefined reference to `KI::http_post(KURL const&, QMemArray<charconst&,
bool)'

You need to link to the kio library.
Add $(LIB_KI) to your Makefile.am, or -lkio if not using the standard kde build system.

--
David Faure, faure (AT) kde (DOT) org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and K (http://www.koffice.org).


>Visit #unsub to unsubscribe <<

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists KDE > KIO::http_post problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT