2
* Copyright (C) 2010 Parker Coates <parker.coates@kdemail.org>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef KSTANDARDCARDDECK_H
20
#define KSTANDARDCARDDECK_H
22
#include "kabstractcarddeck.h"
23
#include "libkcardgame_export.h"
26
class LIBKCARDGAME_EXPORT KStandardCardDeck : public KAbstractCardDeck
56
static QList<Suit> standardSuits();
57
static QList<Rank> standardRanks();
59
explicit KStandardCardDeck( const KCardTheme & theme = KCardTheme(), QObject * parent = 0 );
60
virtual ~KStandardCardDeck();
62
void setDeckContents( int copies = 1,
63
QList<Suit> suits = standardSuits(),
64
QList<Rank> ranks = standardRanks() );
67
virtual QString elementName( quint32 id, bool faceUp = true ) const;
70
class KStandardCardDeckPrivate * const d;
73
LIBKCARDGAME_EXPORT KStandardCardDeck::Suit getSuit( const KCard * card );
74
LIBKCARDGAME_EXPORT KStandardCardDeck::Rank getRank( const KCard * card );
75
LIBKCARDGAME_EXPORT bool getIsRed( const KCard * card );