blob: 4ab05c9a5b8451756b11fdc92327ee7554de6eca (
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
68
69
70
71
72
73
74
75
76
|
/*
jabbergroupchatmanager.h - Jabber Message Manager for group chats
Copyright (c) 2004 by Till Gerken <[email protected]>
Kopete (c) 2004 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef JABBERGROUPCHATMANAGER_H
#define JABBERGROUPCHATMANAGER_H
#include "kopetechatsession.h"
#include "xmpp.h"
class JabberProtocol;
class JabberAccount;
class JabberBaseContact;
namespace Kopete { class Message; }
class TQString;
/**
* @author Till Gerken
*/
class JabberGroupChatManager : public Kopete::ChatSession
{
Q_OBJECT
public:
JabberGroupChatManager ( JabberProtocol *protocol, const JabberBaseContact *user,
Kopete::ContactPtrList others, XMPP::Jid roomJid, const char *name = 0 );
~JabberGroupChatManager();
/**
* @brief Get the local user in the session
* @return the local user in the session, same as account()->myself()
*/
const JabberBaseContact *user () const;
/**
* @brief get the account
* @return the account
*/
JabberAccount *account() const ;
/**
* Re-generate the display name
*/
void updateDisplayName ();
/**
* reimplemented from Kopete::ChatSession
* called when a contact is droped in the window
*/
virtual void inviteContact(const TQString &contactId);
private slots:
void slotMessageSent ( Kopete::Message &message, Kopete::ChatSession *kmm );
private:
XMPP::Jid mRoomJid;
};
#endif
|