Project

General

Profile

NetworkListener » History » Version 2

Maximilien Cuony, 10/15/2009 05:54 PM

1 1 Maximilien Cuony
h1. NetworkListener
2
3
h2. Chat
4
5
To use the chat, you need to get the pointer of the chat object with the method _getChat_.
6
7
h3. Send message
8
9
Use the _send_ method of the chat object. You will get back your own message.
10
11
h3. Get messages
12
13
You need to register the _newChatMessage_ signal who will be called for each message get.
14
15
h2. Search
16
17
Use the method _search_ to create a new search object. Register the _found_ signal to get back the search result. The signal can be emitted several time. 
18
19
Use _search_ on the search object to begin the search. This function can be called only one time, to make a new search create a new search object. You must (except if you don't care about results but...) have registered to the signal before launching the search !