[KDE-India] KDE programing lists

Till Adam adam at kde.org
Thu Jan 12 08:40:48 CET 2006


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?

Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-india/attachments/20060112/358a20e4/attachment.pgp 


More information about the KDE-india mailing list