Main Page | Class Hierarchy | Class List | File List | Class Members

QAvatarFactory Class Reference

#include <QAvatarFactory.h>

Inheritance diagram for QAvatarFactory:

Inheritance graph
[legend]
List of all members.

Detailed Description

Factory class generates new QAvatar instances.

Author:
Chris Scharver
See also:
QAvatar, QAvatarManager
Revision
1.3
Date
2004/01/14 22:09:04

Definition at line 44 of file QAvatarFactory.h.

Public Member Functions

virtual ~QAvatarFactory ()
 Virtual destructor.

virtual QAvatarcreateAvatar (const long &avatarID)=0
 Constructs a new avatar. This factory method creates a new QAvatar instance. Subclasses will instantiate a new instance and return a pointer to that new instance. The QAvatarManager calls this method when it needs to create a new avatar, and it is the manager that generates the identification number for the new avatar.


Member Function Documentation

virtual QAvatar* QAvatarFactory::createAvatar const long &  avatarID  )  [pure virtual]
 

Constructs a new avatar. This factory method creates a new QAvatar instance. Subclasses will instantiate a new instance and return a pointer to that new instance. The QAvatarManager calls this method when it needs to create a new avatar, and it is the manager that generates the identification number for the new avatar.

Parameters:
avatarID unique identification number for the new avatar
Returns:
pointer to a new QAvatar instance

Referenced by QAvatarManager::handleHailingData(), and QAvatarManager::QAvatarManager().


The documentation for this class was generated from the following file:
Generated on Sat Jan 17 18:00:20 2004 for QAvatar by doxygen 1.3.4