Bonjour nick name is in Latin1 encoding
[kdenetwork.git] / kopete / protocols / meanwhile / meanwhilecontact.h
blob9d3261d7ed85a285f979695218fab2c3f07e65e0
1 /*
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 *************************************************************************
9 * *
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. *
14 * *
15 *************************************************************************
17 #ifndef MEANWHILECONTACT_H
18 #define MEANWHILECONTACT_H
20 #include <qmap.h>
21 #include "kopetecontact.h"
22 #include "kopetemessage.h"
23 #include "meanwhileaccount.h"
25 class KAction;
26 namespace Kopete { class Account; }
27 namespace Kopete { class ChatSession; }
28 namespace Kopete { class MetaContact; }
30 class MeanwhileContact : public Kopete::Contact
32 Q_OBJECT
33 public:
35 MeanwhileContact(QString userId, QString nickname,
36 MeanwhileAccount *account, Kopete::MetaContact *parent);
37 ~MeanwhileContact();
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);
51 public slots:
53 void sendMessage( Kopete::Message &message );
54 void receivedMessage( const QString &message );
55 virtual void slotUserInfo();
57 protected slots:
58 void showContactSettings();
59 void slotChatSessionDestroyed();
60 void slotSendTyping(bool isTyping);
62 private:
63 QString m_meanwhileId;
64 Kopete::ChatSession *m_msgManager;
67 #endif