[Kde-print-devel] [GSoC2007 openprinting.org] Update 25 June 2007
Albert Astals Cid
aacid at kde.org
Mon Jun 25 20:47:52 CEST 2007
A Dilluns 25 Juny 2007, Gavin Beatty va escriure:
> Code has now been uploaded to
> [1]branches/work/soc-kdeprint-openprintingdotorg. At the moment the code
> does not compile. This is a C++ issue more than anything - a type issue
> (even worse! >:( ).
>
> Right now, cmakekde/g++ gives this error:
> <error>
> .../mainwidget.cpp: In constructor ‘MainWidget::MainWidget(QWidget*)’:
> .../mainwidget.cpp:30: error: no matching function for call
> to ‘XmlQueryJob::XmlQueryJob(MainWidget* const, KUrl*&, MainWidget* const)’
> .../xmlqueryjob.h:16: note: candidates are: XmlQueryJob::XmlQueryJob(const
> QWidget*, const KUrl&, QObject*)
> .../xmlqueryjob.h:11: note: XmlQueryJob::XmlQueryJob(const
> XmlQueryJob&)
> </error>
XmlQueryJob wants a const KUrl &url, you are passing it a KUrl *
so the attached patch fixes the compilation of that class.
It still does not link as you've defined
void slotXmlDownloadResult(KJob *job);
but not implemented it.
Albert
>
> I'm hesitant to just try casting it all to hell as the problem likely lies
> somewhere else. And I _hate_ casting const values.
>
> I will spend some time on this issue (an annoying enough roadblock) today
> but will try to work on parsing XML too. I'll just make some queries with
> wget and try my hand there.
>
> [1] http://websvn.kde.org/branches/work/soc-kdeprint-openprintingdotorg/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 573 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-print-devel/attachments/20070625/1516c8aa/attachment.bin
More information about the Kde-print-devel
mailing list