GSoC/GCI Archive
Google Code-in 2012 KDE

Create a method that checks for the availibility of a Wikipedia article.

completed by: Illya Kovalevskyy

mentors: Torsten Rahn, René Küttner, Dennis Nienhüser

A method should be created that loads a certain Url into a QWebPage

http://en.wikipedia.org/wiki/ELBRAM

or

http://de.wikipedia.org/wiki/ELBRAM

or

http://es.wikipedia.org/wiki/ELBRAM

or

http://fr.wikipedia.org/wiki/ELBRAM

or

http://ru.wikipedia.org/wiki/ELBRAM

A signal should be emitted that communicates whether the page got successfully loaded. Check this arictle for more inspiration:

http://stackoverflow.com/questions/4330274/qtwebkit-how-to-check-http-status-code

We need this method later on to determine whether we should display a Wikipedia button for each article in the WebPopup.

An alternative approach might be to use the Wikipedia API:

check Marble: http://en.wikipedia.org/w/api.php?format=json&action=query&titles=Marble
vs.: http://en.wikipedia.org/w/api.php?format=json&action=query&titles=Marble

Credits for some investigation regarding this issue go to Berthold Krevert ;-)