FriendScreen Class Reference

The screen in which all Friends are displayed. More...

#include <Friendscreen.h>

List of all members.

Signals

void focusFriend (QAbstractButton *fpb)
void focusFriendAndMe (QAbstractButton *fpb)

Public Member Functions

 FriendScreen (Friend *f, QHash< QString, Friend * > fl, QWidget *parent=0)
 Construct a FriendScreen object.
void updateFriends (Friend *f, QHash< QString, Friend * > fl)
 update the user and friend information
void addFriends (Friend *f, QHash< QString, Friend * > fl)
void removeFriends ()
void setSize (int w, int h)
 Set the Size of the screen.
void setStatus (QString txt)
 Display a status message on this screen.
QPushButton * getBackButton ()
 Get a pointer to the Back Button.
QListWidget * getListWidget ()
QHash< int, Friend * > getFriendIndexHash ()
 Get the friend Index hash which is used to map the friend's offset in the visual element to his pointer.

Public Attributes

QHash< QString, QPushButton * > pbl

Detailed Description

The screen in which all Friends are displayed.


Constructor & Destructor Documentation

FriendScreen::FriendScreen ( Friend f,
QHash< QString, Friend * >  fl,
QWidget *  parent = 0 
)

Construct a FriendScreen object.

Parameters:
f is a pointer to the user
fl is a pointer to the friend list

Member Function Documentation

void FriendScreen::addFriends ( Friend me,
QHash< QString, Friend * >  fl 
)

Add the user an his friends to the Visual Element

Parameters:
me is a pointer to the user
fl is a pointer to the friendlist
QPushButton * FriendScreen::getBackButton (  ) 

Get a pointer to the Back Button.

Returns:
a pointer to the back button
QHash< int, Friend * > FriendScreen::getFriendIndexHash (  ) 

Get the friend Index hash which is used to map the friend's offset in the visual element to his pointer.

Returns:
the freind index hash
QListWidget * FriendScreen::getListWidget (  ) 

Get a pointer to the list Widget

Returns:
a pointer to the list widget
void FriendScreen::removeFriends (  ) 

brief Remove all people from the visual element

void FriendScreen::updateFriends ( Friend f,
QHash< QString, Friend * >  fl 
)

update the user and friend information

Parameters:
f a pointer to the user
fl a pointer to the friend list

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3