Panel for browsing friend profiles.
More...
#include <profilebrowserpanel.h>
List of all members.
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:
-
parent | Pointer to parent widget. |
ProfileBrowserPanel::ProfileBrowserPanel |
( |
ServiceMgr * |
mgr = NULL , |
|
|
QWidget * |
parent = 0 |
|
) |
| [explicit] |
A panel constructor.
- Parameters:
-
sm | Pointer to Service Manager. |
parent | Pointer to parent widget. |
Member Function Documentation
void ProfileBrowserPanel::hideAll |
( |
QLayout * |
layout | ) |
|
Hides specified layout and all layouts contained in it.
- Parameters:
-
layout | Pointer 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:
-
void ProfileBrowserPanel::sendMessage |
( |
Friend |
fd | ) |
[signal] |
This signal is emitted when user click sending message button
- Parameters:
-
void ProfileBrowserPanel::setState |
( |
WindowState |
state | ) |
|
Sets state of window.
- Parameters:
-
state | The new state of window. |
void ProfileBrowserPanel::showAll |
( |
QLayout * |
layout | ) |
|
Shows specified layout and all layouts contained in it.
- Parameters:
-
layout | Pointer to layout which must be shown. |
void ProfileBrowserPanel::showFriendAlbums |
( |
Friend |
fd | ) |
[signal] |
This signal is emitted when user click albums button
- Parameters:
-
fd | profile of current friend |
void ProfileBrowserPanel::showFriendInfo |
( |
Friend |
fd | ) |
|
Selects friend and shows his profile.
- Parameters:
-
void ProfileBrowserPanel::showFriendMessages |
( |
Friend |
fd | ) |
[signal] |
This signal is emitted when user click messages button
- Parameters:
-
fd | profile of current friend |
The documentation for this class was generated from the following files: