Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
A KDE plasmoid ment for quick games of Black Jack, 21 or whatever you may call it.

Use 'A' to hit, 'S' to sat and 'D' to start a new game.

This is my first plasmoid and new feature suggestions are welcome!

Ratings & Comments

1 Comment

Vistausss

1 Maybe a little screenshot? :) 2 I get an error while compiling: [100%] Building CXX object CMakeFiles/plasma_applet_blakjak.dir/blakjak.o In file included from /home/vistausss/Downloads/blakjak/blakjak.cpp:19: /home/vistausss/Downloads/blakjak/blakjak.h:23:23: error: cardcache.h: Bestand of map bestaat niet /home/vistausss/Downloads/blakjak/blakjak.cpp:29:23: error: KCardDialog: Bestand of map bestaat niet /home/vistausss/Downloads/blakjak/blakjak.cpp:30:26: error: carddeckinfo.h: Bestand of map bestaat niet In file included from /home/vistausss/Downloads/blakjak/blakjak.cpp:19: /home/vistausss/Downloads/blakjak/blakjak.h:68: error: ISO C++ forbids declaration of ‘KCardCache’ with no type /home/vistausss/Downloads/blakjak/blakjak.h:68: error: expected ‘;’ before ‘*’ token /home/vistausss/Downloads/blakjak/blakjak.h:69: error: ‘KCardInfo’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.h:69: error: template argument 1 is invalid /home/vistausss/Downloads/blakjak/blakjak.h:70: error: ‘KCardInfo’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.h:70: error: template argument 1 is invalid /home/vistausss/Downloads/blakjak/blakjak.h:78: error: ‘KCardInfo’ does not name a type /home/vistausss/Downloads/blakjak/blakjak.h:80: error: ‘KCardInfo’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.h:80: error: template argument 1 is invalid /home/vistausss/Downloads/blakjak/blakjak.cpp: In constructor ‘blaKjaK::blaKjaK(QObject*, const QVariantList&)’: /home/vistausss/Downloads/blakjak/blakjak.cpp:36: error: class ‘blaKjaK’ does not have any field named ‘_cache’ /home/vistausss/Downloads/blakjak/blakjak.cpp:36: error: expected type-specifier before ‘KCardCache’ /home/vistausss/Downloads/blakjak/blakjak.cpp:36: error: expected ‘)’ before ‘KCardCache’ /home/vistausss/Downloads/blakjak/blakjak.cpp:41: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp: In destructor ‘virtual blaKjaK::~blaKjaK()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:52: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘virtual void blaKjaK::init()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:78: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:79: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:80: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:80: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:81: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘virtual void blaKjaK::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)’: /home/vistausss/Downloads/blakjak/blakjak.cpp:97: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:99: error: request for member ‘size’ in ‘((blaKjaK*)this)->blaKjaK::_playersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:99: error: request for member ‘size’ in ‘((blaKjaK*)this)->blaKjaK::_dealersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:103: error: invalid types ‘int[quint8]’ for array subscript /home/vistausss/Downloads/blakjak/blakjak.cpp:110: error: invalid types ‘int[quint8]’ for array subscript /home/vistausss/Downloads/blakjak/blakjak.cpp:119: error: invalid types ‘int[int]’ for array subscript /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘virtual void blaKjaK::createConfigurationInterface(KConfigDialog*)’: /home/vistausss/Downloads/blakjak/blakjak.cpp:125: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:126: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:126: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:127: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:128: error: no matching function for call to ‘KConfigDialog::addPage(KCardWidget*&, QString, QString)’ /usr/include/KDE/../kconfigdialog.h:124: note: candidates are: KPageWidgetItem* KConfigDialog::addPage(QWidget*, const QString&, const QString&, const QString&, bool) /usr/include/KDE/../kconfigdialog.h:144: note: KPageWidgetItem* KConfigDialog::addPage(QWidget*, KConfigSkeleton*, const QString&, const QString&, const QString&) /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘void blaKjaK::applyNewConfig()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:143: error: ‘_cache’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:143: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:144: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp:152: error: invalid use of incomplete type ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.h:26: error: forward declaration of ‘struct KCardWidget’ /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘void blaKjaK::deal()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:193: error: request for member ‘clear’ in ‘((blaKjaK*)this)->blaKjaK::_playersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:194: error: request for member ‘clear’ in ‘((blaKjaK*)this)->blaKjaK::_dealersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:197: error: request for member ‘append’ in ‘((blaKjaK*)this)->blaKjaK::_playersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:197: error: ‘dealCard’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:199: error: request for member ‘append’ in ‘((blaKjaK*)this)->blaKjaK::_dealersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:199: error: ‘dealCard’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘void blaKjaK::hit()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:212: error: request for member ‘append’ in ‘((blaKjaK*)this)->blaKjaK::_playersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:212: error: ‘dealCard’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp: In member function ‘void blaKjaK::stay()’: /home/vistausss/Downloads/blakjak/blakjak.cpp:221: error: request for member ‘append’ in ‘((blaKjaK*)this)->blaKjaK::_dealersHand’, which is of non-class type ‘int’ /home/vistausss/Downloads/blakjak/blakjak.cpp:221: error: ‘dealCard’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp: At global scope: /home/vistausss/Downloads/blakjak/blakjak.cpp:244: error: ‘KCardInfo’ does not name a type /home/vistausss/Downloads/blakjak/blakjak.cpp:260: error: ‘KCardInfo’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:260: error: template argument 1 is invalid In file included from /usr/include/qt4/QtGui/qgraphicsitem.h:45, from /usr/include/qt4/QtGui/QGraphicsItem:1, from /usr/include/KDE/Plasma/../../plasma/applet.h:25, from /usr/include/KDE/Plasma/Applet:1, from /home/vistausss/Downloads/blakjak/blakjak.h:22, from /home/vistausss/Downloads/blakjak/blakjak.cpp:19: /usr/include/qt4/QtCore/qglobal.h: In instantiation of ‘QForeachContainer<int>’: /home/vistausss/Downloads/blakjak/blakjak.cpp:265: instantiated from here /usr/include/qt4/QtCore/qglobal.h:2246: error: ‘int’ is not a class, struct, or union type /usr/include/qt4/QtCore/qglobal.h:2246: error: ‘int’ is not a class, struct, or union type /home/vistausss/Downloads/blakjak/blakjak.cpp: In static member function ‘static quint8 blaKjaK::score(int)’: /home/vistausss/Downloads/blakjak/blakjak.cpp:265: error: ‘class QForeachContainer<int>’ has no member named ‘i’ /home/vistausss/Downloads/blakjak/blakjak.cpp:265: error: ‘class QForeachContainer<int>’ has no member named ‘e’ /home/vistausss/Downloads/blakjak/blakjak.cpp:265: error: ‘class QForeachContainer<int>’ has no member named ‘i’ /home/vistausss/Downloads/blakjak/blakjak.cpp:265: error: ‘KCardInfo’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:265: error: expected ‘;’ before ‘card’ /home/vistausss/Downloads/blakjak/blakjak.cpp:267: error: ‘card’ was not declared in this scope /home/vistausss/Downloads/blakjak/blakjak.cpp:267: error: ‘KCardInfo’ is not a class or namespace /home/vistausss/Downloads/blakjak/blakjak.cpp:268: error: ‘KCardInfo’ is not a class or namespace /home/vistausss/Downloads/blakjak/blakjak.cpp:269: error: ‘KCardInfo’ is not a class or namespace /home/vistausss/Downloads/blakjak/blakjak.cpp:284: error: request for member ‘size’ in ‘cards’, which is of non-class type ‘int’ In file included from /usr/include/qt4/QtGui/qgraphicsitem.h:45, from /usr/include/qt4/QtGui/QGraphicsItem:1, from /usr/include/KDE/Plasma/../../plasma/applet.h:25, from /usr/include/KDE/Plasma/Applet:1, from /home/vistausss/Downloads/blakjak/blakjak.h:22, from /home/vistausss/Downloads/blakjak/blakjak.cpp:19: /usr/include/qt4/QtCore/qglobal.h: In constructor ‘QForeachContainer<T>::QForeachContainer(const T&) [with T = int]’: /home/vistausss/Downloads/blakjak/blakjak.cpp:265: instantiated from here /usr/include/qt4/QtCore/qglobal.h:2243: error: using invalid field ‘QForeachContainer<T>::i’ /usr/include/qt4/QtCore/qglobal.h:2243: error: request for member ‘begin’ in ‘((QForeachContainer<int>*)this)->QForeachContainer<int>::c’, which is of non-class type ‘const int’ /usr/include/qt4/QtCore/qglobal.h:2243: error: using invalid field ‘QForeachContainer<T>::e’ /usr/include/qt4/QtCore/qglobal.h:2243: error: request for member ‘end’ in ‘((QForeachContainer<int>*)this)->QForeachContainer<int>::c’, which is of non-class type ‘const int’ make[2]: *** [CMakeFiles/plasma_applet_blakjak.dir/blakjak.o] Fout 1 make[1]: *** [CMakeFiles/plasma_applet_blakjak.dir/all] Fout 2 make: *** [all] Fout 2 vistausss@vistausss-laptop:~/Downloads/blakjak/build$ What can the problem be?

Pling
0 Affiliates
Details
license
version 1.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 15 years ago

Score 5.0

stringtune - instrument tuner
fritzvantom
last update date: 14 years ago

Score 5.0