Euro 2008 league table

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
Score 50.0%
Description:

A simple plasmoid that pulls the current Euro 2008 tables from the UEFA website. The table will refresh every 30 mins.

This is likely to break if UEFA change the format of the page (e.g. when the group stage ends and we move into the knockout stage).

v0.2.1: Fixed a bug whereby the widgets size is set to 0. If you see this problem it can be fixed by deleting the cached image at ~/.Euro2008/Euro2008.jpg.

v0.2: Now the table is cached in ~/.Euro2008/ so the widget continues to work when you are off-line.

The tables are now timestamped.

Changed the title from "STANDINGS" to "EURO 2008 STANDINGS".

polrus

12 years ago

this is exactly what i asked for in
http://www.kde-look.org/content/show.php/Euro+2008+results,+talbles+[idea]?content=82791

You are my hero :)

If You could just add live scores using for example http://livescore.com/euro.dll and 3 miuntes refresh time this would be great

Report

morfeusz

12 years ago

I didn't have problem with compilation, but i've got a problem with installing:
(qt 4.3.4, kde 4.0.4)

Quote:# make install
[ 33%] Generating euro2008table_automoc.cpp
Scanning dependencies of target euro2008table
[ 66%] Building CXX object CMakeFiles/euro2008table.dir/euro2008table_automoc.o
[100%] Building CXX object CMakeFiles/euro2008table.dir/euro2008table.o
In file included from /home/mateusz/euro/euro2008table.cpp:20:
/home/mateusz/euro/euro2008table.h:25:21: error: QWebFrame: The file or directory does not exist.
/home/mateusz/euro/euro2008table.h:26:20: error: QWebPage: The file or directory does not exist.
In file included from /home/mateusz/euro/euro2008table.cpp:20:
/home/mateusz/euro/euro2008table.h:58: error: ISO C++ forbids declaration of ‘QWebPage’ with no type
/home/mateusz/euro/euro2008table.h:58: error: expected ‘;’ before ‘*’ token
/home/mateusz/euro/euro2008table.cpp: In constructor ‘Euro2008Table::Euro2008Table(QObject*, const QVariantList&)’:
/home/mateusz/euro/euro2008table.cpp:34: error: no matching function for call to ‘Plasma::Svg::Svg(Euro2008Table* const)’
/opt/kde4/include/KDE/Plasma/../../plasma/svg.h:88: note: candidates are: Plasma::Svg::Svg(const QString&, QObject*)
/opt/kde4/include/KDE/Plasma/../../plasma/svg.h:48: note: Plasma::Svg::Svg(const Plasma::Svg&)
/home/mateusz/euro/euro2008table.cpp:38: error: ‘class Plasma::Svg’ has no member named ‘setImagePath’
/home/mateusz/euro/euro2008table.cpp:39: error: ‘DefaultBackground’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:39: error: ‘setBackgroundHints’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:41: error: ‘page’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:41: error: expected type-specifier before ‘QWebPage’
/home/mateusz/euro/euro2008table.cpp:41: error: expected `;' before ‘QWebPage’
/home/mateusz/euro/euro2008table.cpp: In destructor ‘virtual Euro2008Table::~Euro2008Table()’:
/home/mateusz/euro/euro2008table.cpp:75: error: ‘page’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:75: error: ‘QWebPage’ has not been declared
/home/mateusz/euro/euro2008table.cpp:77: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
/home/mateusz/euro/euro2008table.cpp: In member function ‘void Euro2008Table::loaded()’:
/home/mateusz/euro/euro2008table.cpp:88: error: ‘page’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:88: error: ‘QWebPage’ has not been declared
/home/mateusz/euro/euro2008table.cpp: In member function ‘virtual void Euro2008Table::timerEvent(QTimerEvent*)’:
/home/mateusz/euro/euro2008table.cpp:179: error: invalid use of incomplete type ‘struct QTimerEvent’
/usr/lib/qt4/include/QtCore/qobject.h:62: error: forward declaration of ‘struct QTimerEvent’
/home/mateusz/euro/euro2008table.cpp:184: error: ‘page’ was not declared in this scope
/home/mateusz/euro/euro2008table.cpp:184: error: ‘QWebPage’ has not been declared
make[2]: *** [CMakeFiles/euro2008table.dir/euro2008table.o] Error 1
make[1]: *** [CMakeFiles/euro2008table.dir/all] Error 2
make: *** [all] Error 2

Report

C

GeorgeNorton

12 years ago

Hi,

This widget requires QT4.4 or higher as it uses the new webkit API's to render the table.

Regards,

George

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
WOteB2
Mar 26 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.1
updated Jun 08 2008
added Jun 08 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1