SuitRequest Class Reference

#include <suitrequest.h>

List of all members.


Detailed Description

This displays a dialogue that allows a player to select a suit from a standard US or UK pack.

Author:
John Schneiderman

Public Member Functions

Card::Suit suit () const
 SuitRequest (const QString &caption, bool canPass, bool canBidNoSuit, QWidget *parent=0, bool modal=true)
 ~SuitRequest ()

Constructor & Destructor Documentation

SuitRequest::SuitRequest ( const QString &  caption,
bool  canPass,
bool  canBidNoSuit,
QWidget *  parent = 0,
bool  modal = true 
)

Constructor for a suit request widget dialogue.

Parameters:
caption is the caption for the dialogue.
canPass is true if the player can pass, false if he cannot.
canBidNoSuit is true if the player can select no suit, false if he cannot
parent is the parent of our dialogue.
modal is true if we want our dialogue to be modal, false elsewise.

SuitRequest::~SuitRequest (  ) 

The destructor for our dialogue.


Member Function Documentation

Card::Suit SuitRequest::suit (  )  const

An accessor to the suit the player selected.

Returns:
the suit the player selected.
Note:
If a player can pass and selects to pass, then SUIT_ERR is returned.
Exceptions:
KardsGTError if cannot determine suit selection.


The documentation for this class was generated from the following files:

Generated on Tue Aug 12 23:24:02 2008 for KardsGT by  doxygen 1.5.5