comparison contact_list.h @ 4:220e5619bf87

Profiles selection now fill contact list + new Jid class
author Goffi <goffi@goffi.org>
date Thu, 11 Aug 2011 00:02:25 +0200
parents 22b44846b04b
children 48045176d1c6
comparison
equal deleted inserted replaced
3:2195295a2058 4:220e5619bf87
1 /* 1 /*
2 Mignonne: a Salut à Toi frontend 2 Bellaciao: a Salut à Toi frontend
3 Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org) 3 Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org)
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Affero General Public License as published by 6 it under the terms of the GNU Affero General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or 7 the Free Software Foundation, either version 3 of the License, or
18 18
19 #ifndef CONTACTLIST_H 19 #ifndef CONTACTLIST_H
20 #define CONTACTLIST_H 20 #define CONTACTLIST_H
21 21
22 #include <QtGui> 22 #include <QtGui>
23 #include "jid.h"
23 24
24 class ContactList : public QDockWidget { 25 class ContactList : public QDockWidget {
25 Q_OBJECT 26 Q_OBJECT
26 27
27 public: 28 public:
28 ContactList(QWidget* parent = 0); 29 ContactList(QWidget* parent = 0);
29 void addContact(const QString& jid); 30 void addContact(const Jid& jid);
31 void clear();
30 private: 32 private:
31 QWidget* mainWidget; 33 QWidget* mainWidget;
32 QListWidget* listWidget; 34 QListWidget* listWidget;
33 }; 35 };
34 36