2 meanwhilecontact.h - a contact
4 Copyright (c) 2003-2004 by Sivaram Gottimukkala <suppandi@gmail.com>
6 Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
8 *************************************************************************
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
15 *************************************************************************
17 #ifndef MEANWHILECONTACT_H
18 #define MEANWHILECONTACT_H
21 #include "kopetecontact.h"
22 #include "kopetemessage.h"
23 #include "meanwhileaccount.h"
26 namespace Kopete
{ class Account
; }
27 namespace Kopete
{ class ChatSession
; }
28 namespace Kopete
{ class MetaContact
; }
30 class MeanwhileContact
: public Kopete::Contact
35 MeanwhileContact(QString userId
, QString nickname
,
36 MeanwhileAccount
*account
, Kopete::MetaContact
*parent
);
39 virtual bool isReachable();
41 virtual void serialize(QMap
<QString
, QString
> &serializedData
,
42 QMap
<QString
, QString
> &addressBookData
);
44 virtual Kopete::ChatSession
*manager(
45 CanCreateFlags canCreate
= CanCreate
);
47 QString
meanwhileId() const;
49 virtual void sync(unsigned int changed
= 0xff);
53 void sendMessage( Kopete::Message
&message
);
54 void receivedMessage( const QString
&message
);
55 virtual void slotUserInfo();
58 void showContactSettings();
59 void slotChatSessionDestroyed();
60 void slotSendTyping(bool isTyping
);
63 QString m_meanwhileId
;
64 Kopete::ChatSession
*m_msgManager
;