00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef LISTEWIDGET_H
00020 #define LISTEWIDGET_H
00021
00022 #include <ListeWidget.h>
00023 #include <memory>
00024 class KernelMessenger;
00025
00026 class Contact;
00027
00035 class ListeWidget : public Form1
00036 {
00037 Q_OBJECT
00038
00039 public:
00045 ListeWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00046
00048 ~ListeWidget();
00049
00054 bool removeContact(const int id);
00055
00058 void addContact(const Contact* pContact);
00059
00066 void setEnabled(const bool bEnable);
00067
00069 bool isEnabled() const {return m_bIsEnabled; }
00070
00072 void removeAllContacts();
00073
00075 void setState(int state);
00076
00081 void updateContactList();
00082 void setPseudo(const std::string& pseudo);
00083
00084 private:
00089 bool m_bIsEnabled;
00090
00094 std::auto_ptr<KernelMessenger> m_pKernel;
00095
00101 int m_iCurrentItem;
00102
00103 private slots:
00106 void statut_activated(int index);
00107
00109 void fileExit();
00110
00112 void AProposActivated();
00113 };
00114
00115 #endif
00116