Team Class Reference

Contains the information and handles of a team. More...

#include <team.h>

List of all members.

Public Types

enum  Round {
  NO, SIXTEEN, EIGHT, QUARTER,
  HALF, FINAL
}

Public Member Functions

 Team (void)
 Team (QString name, QString icon)
 Team (int id, QString name, QString info, QString icon)
 ~Team (void)
QString getName (void)
QPixmap getIcon (void)
QString getInfo (void)
QString getIconFileName (void)
int getId (void)
Round getPick (void)
bool hasLost (void)
void setName (QString name)
void setPick (Round r)
void setIcon (QString iconFile)
void setIconFile (QString filename)
void setState (bool lost)

Static Public Member Functions

static Round getPickForInt (int r)

Private Attributes

int id
QString name
QPixmap icon
QString iconFile
 File name of the icon.
QString info
Round pick
bool lost
 Indicates if a Team drops out of the Tournament.

Static Private Attributes

static int count = 0

Detailed Description

Contains the information and handles of a team.

Contains information like name, icon, ect. Also contains which pick was set for this team.

Definition at line 16 of file team.h.


Member Enumeration Documentation

Enumerator:
NO 
SIXTEEN 
EIGHT 
QUARTER 
HALF 
FINAL 

Definition at line 31 of file team.h.


Constructor & Destructor Documentation

Team::Team ( void   ) 

Definition at line 3 of file team.cpp.

Team::Team ( QString  name,
QString  icon 
)

`Creates a new Team with name and an icon.

Definition at line 10 of file team.cpp.

Team::Team ( int  id,
QString  name,
QString  info,
QString  icon 
)

Creates a new Team with all information.

Definition at line 18 of file team.cpp.

Team::~Team ( void   ) 

Definition at line 23 of file team.cpp.


Member Function Documentation

QPixmap Team::getIcon ( void   ) 

Definition at line 51 of file team.cpp.

QString Team::getIconFileName ( void   ) 

Definition at line 56 of file team.cpp.

int Team::getId ( void   ) 

Definition at line 66 of file team.cpp.

QString Team::getInfo ( void   ) 

Definition at line 61 of file team.cpp.

QString Team::getName ( void   ) 

Definition at line 35 of file team.cpp.

Team::Round Team::getPick ( void   ) 

Definition at line 71 of file team.cpp.

Team::Round Team::getPickForInt ( int  r  )  [static]

Definition at line 91 of file team.cpp.

bool Team::hasLost ( void   ) 

Definition at line 81 of file team.cpp.

void Team::setIcon ( QString  iconFile  ) 

Definition at line 40 of file team.cpp.

void Team::setIconFile ( QString  filename  ) 

Definition at line 45 of file team.cpp.

void Team::setName ( QString  name  ) 

Definition at line 30 of file team.cpp.

void Team::setPick ( Team::Round  r  ) 

Definition at line 76 of file team.cpp.

void Team::setState ( bool  lost  ) 

Definition at line 86 of file team.cpp.


Member Data Documentation

int Team::count = 0 [static, private]

Definition at line 49 of file team.h.

QPixmap Team::icon [private]

Definition at line 52 of file team.h.

QString Team::iconFile [private]

File name of the icon.

Definition at line 54 of file team.h.

int Team::id [private]

Definition at line 50 of file team.h.

QString Team::info [private]

Definition at line 55 of file team.h.

bool Team::lost [private]

Indicates if a Team drops out of the Tournament.

Definition at line 58 of file team.h.

QString Team::name [private]

Definition at line 51 of file team.h.

Round Team::pick [private]

Definition at line 56 of file team.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 29 01:48:11 2010 for AdaptiviTree by  doxygen 1.6.3