#include <discussionmanager.h>
Inheritance diagram for DiscussionManager:

Public Member Functions | |
| DiscussionManager (KernelMessenger &rKernel, ListeWidget &rWidget) | |
| Constructor. | |
| ~DiscussionManager () | |
| Destructor. | |
| void | closeDiscussion (const int contactID) |
| Closes a discussion. (also close the widget associated). | |
| ClientWidget * | startNewDiscussion (const Contact &contact) |
| Open a new discussion widget. | |
| void | newMessage (const Contact &contact, const std::string &message) |
| Send to the corresponding widget the message received. | |
| void | closeAll () |
| Close all discussion. | |
| ClientWidget * | getWidget (const int contactID) const |
| Returns the widget corresponding to a contact ID. | |
It stores the current discussion. Hence, when the application receives a new message from a someone, we could put it in the good widget, or create one.
Yves Houpert <yves.houpert@insa-rouen.fr>
|
||||||||||||
|
Constructor.
|
|
|
Closes a discussion. (also close the widget associated).
|
|
|
Returns the widget corresponding to a contact ID.
|
|
||||||||||||
|
Send to the corresponding widget the message received. This method should be called when a new message is received from a contact ID. If the discussion doesn't yet exist, it creates a new discussion widget, otherwise it sends the message to the corresponding widget.
|
|
|
Open a new discussion widget. It creates a new discussion widget (if doesn't exist) and display
|
1.4.6