mysocials-core 1.0
Public Types | Signals | Public Member Functions

ProfileBrowserPanel Class Reference

Panel for browsing friend profiles. More...

#include <profilebrowserpanel.h>

List of all members.

Public Types

enum  WindowState { WindowFriendList, WindowProfile }
 

States of window.

More...

Signals

void openProfile (Friend profile)
void showFriendAlbums (Friend fd)
void sendMessage (Friend fd)
void showFriendMessages (Friend fd)

Public Member Functions

 ProfileBrowserPanel (QWidget *parent=0)
 ProfileBrowserPanel (ServiceMgr *mgr=NULL, QWidget *parent=0)
 ~ProfileBrowserPanel ()
 A destructor.
void clearEditOwnr ()
void showFriendInfo (Friend fd)
 Selects friend and shows his profile.
void init ()
 Initialization function.
void hideAll (QLayout *layout)
void showAll (QLayout *layout)
void setState (WindowState state)
 Sets state of window.
void setState ()
 Updates window corresponding current state.

Detailed Description

Panel for browsing friend profiles.

This class is based on QWidget. It allows browsing friend profiles, going to their albums or sending messages to them. The list of friends gets from Service Manager (see ServiceMgr).

See also:
ServiceMgr

Member Enumeration Documentation

States of window.

It is using for single-panel mode for defining which layout must be shown at current moment.

Enumerator:
WindowFriendList 

State when list of friends is shown.

WindowProfile 

State when profile for selected friend is shown.


Constructor & Destructor Documentation

ProfileBrowserPanel::ProfileBrowserPanel ( QWidget *  parent = 0) [explicit]

A panel constructor.

Parameters:
parentPointer to parent widget.
ProfileBrowserPanel::ProfileBrowserPanel ( ServiceMgr mgr = NULL,
QWidget *  parent = 0 
) [explicit]

A panel constructor.

Parameters:
smPointer to Service Manager.
parentPointer to parent widget.

Member Function Documentation

void ProfileBrowserPanel::hideAll ( QLayout *  layout)

Hides specified layout and all layouts contained in it.

Parameters:
layoutPointer to layout which must be hidden.
void ProfileBrowserPanel::init ( )

Initialization function.

Initializes UI elements of panel and connects signals to slots.

void ProfileBrowserPanel::openProfile ( Friend  profile) [signal]

This signal is emitted when user selects a friend.

Parameters:
profileof friend
void ProfileBrowserPanel::sendMessage ( Friend  fd) [signal]

This signal is emitted when user click sending message button

Parameters:
fdprofile of current Friend
void ProfileBrowserPanel::setState ( WindowState  state)

Sets state of window.

Parameters:
stateThe new state of window.
void ProfileBrowserPanel::showAll ( QLayout *  layout)

Shows specified layout and all layouts contained in it.

Parameters:
layoutPointer to layout which must be shown.
void ProfileBrowserPanel::showFriendAlbums ( Friend  fd) [signal]

This signal is emitted when user click albums button

Parameters:
fdprofile of current friend
void ProfileBrowserPanel::showFriendInfo ( Friend  fd)

Selects friend and shows his profile.

Parameters:
fdfriend's profile
void ProfileBrowserPanel::showFriendMessages ( Friend  fd) [signal]

This signal is emitted when user click messages button

Parameters:
fdprofile of current friend

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