[KDE-India] KDE programing lists
Aditya Mooley
aditya.ml at gmail.com
Thu Jan 12 08:46:43 CET 2006
On 1/12/06, Till Adam <adam at kde.org> wrote:
>
> On Thursday 12 January 2006 07:04, Aditya Mooley wrote:
> > On 1/11/06, Till Adam <adam at kde.org> wrote:
> > > On Wednesday 11 January 2006 13:37, Pradeepto Bhattacharya wrote:
>
> > 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();
> > KIO::TransferJob *job = KIO::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 KIO namespace.
> > But I am getting following warning:
> >
> > undefined reference to `KIO::http_post(KURL const&, QMemArray<char>
> const&,
> > bool)'
> > undefined reference to `KIO::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.
>
> QByteArray in Qt3 is simply QMemArray<char> so that's fine. This is
> compile
> time, not link time? Can you post the full error for the first one,
> please?
True :) it was a linking error. I had not added -lkio while linking.
Pradeepto helped me on that one via IRC.
Regards,
--
Aditya Mooley
=============================================================
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-india/attachments/20060112/04da45f5/attachment.html
More information about the KDE-india
mailing list