00001 #ifndef PROFILEBROWSER_H
00002 #define PROFILEBROWSER_H
00003
00010 #include <QWidget>
00011 #include <QPushButton>
00012 #include <QListWidget>
00013
00014 #include "datatypes/friend.h"
00015 #include "servicemgr.h"
00016
00017 namespace Ui {
00018 class ProfileBrowser;
00019 }
00020
00026 class ProfileBrowser : public QWidget
00027 {
00028 Q_OBJECT
00029 public:
00037 explicit ProfileBrowser(ServiceMgr *sm, bool showAvatar, QWidget *parent = 0);
00038
00049 explicit ProfileBrowser(ServiceMgr *sm, Friend profile, bool showAvatar, QWidget *parent = 0);
00050
00054 ~ProfileBrowser();
00055
00056 public slots:
00062 void setProfile(Friend profile);
00063
00064 private:
00065 void init();
00066
00067
00068 void showProfile(Friend fd);
00069
00070
00071 ServiceMgr *sm;
00072
00073 Ui::ProfileBrowser *ui;
00074
00075 Friend currentProfile;
00076 bool showAvatar;
00077
00078 private slots:
00079 void profileSelected(QListWidgetItem*);
00080 };
00081
00082 #endif // PROFILEBROWSER_H
00083
00084 #if 0
00085 class ProfileBrowser
00086 {
00087 QT_TR_NOOP("male")
00088 QT_TR_NOOP("female")
00089
00090 };
00091 #endif