blob: 60f55b012b4c8260b88ff0ebc759640a12253076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
Kopete Groupwise Protocol
chatroommanager.h - tracks our knowledge of server side chatrooms
Copyright (c) 2005 SUSE Linux Products GmbH http://www.suse.com
Kopete (c) 2002-2005 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef CHATROOMMANAGER_H
#define CHATROOMMANAGER_H
#include <tqobject.h>
#include "gwchatrooms.h"
class Client;
/**
* Keeps a record of the server side chatrooms
* @author SUSE Linux Products GmbH
*/
class ChatroomManager : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
ChatroomManager( Client * client, const char *name = 0);
~ChatroomManager();
GroupWise::ChatroomMap rooms();
void requestProperties( const TQString & displayName );
void updateRooms();
void updateCounts();
signals:
void gotProperties( const GroupWise::Chatroom & );
void updated();
protected:
void getChatrooms( bool refresh );
protected slots:
/**
* Used to initialise the list of chatrooms in response to a SearchChatTask.
*/
void slotGotChatroomList();
/**
* Used to update the user counts of chatrooms.
*/
void slotGotChatCounts();
/**
* Get the properties of a specific room.
*/
void slotGotChatProperties();
private:
Client * m_client;
GroupWise::ChatroomMap m_rooms;
bool m_tqreplace;
};
#endif
|