Bonjour nick name is in Latin1 encoding
[kdenetwork.git] / kopete / protocols / jabber / jabberbookmarks.h
blobcfed0c3c3cce674d911fd911a4a119d2a69a0957
1 /*
3 Copyright (c) 2006 by Olivier Goffart <ogoffart at kde.org>
5 Kopete (c) 2006 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 *************************************************************************
18 #ifndef JABBERBOOKMARKS_H
19 #define JABBERBOOKMARKS_H
21 #include <qobject.h>
22 #include <qdom.h>
23 #include <qstringlist.h>
25 namespace XMPP { class Jid; }
26 class JabberAccount;
28 class KAction;
30 /**
31 * This is a class that hanlde the bookmark collection (JEP-0048)
32 * There is one instance of that class by accounts.
33 * @author Olivier Goffart
35 class JabberBookmarks : public QObject
37 Q_OBJECT
38 public:
39 /**
40 * Constructor
42 JabberBookmarks(JabberAccount *parent);
43 ~JabberBookmarks(){}
45 /**
46 * update or create en entry with the given jid.
47 * the jid ressource is the nickname
49 void insertGroupChat(const XMPP::Jid &jid);
51 /**
52 * return an action that will be added in the jabber popup menu
54 KAction *bookmarksAction(QObject * parent);
55 private slots:
56 void accountConnected();
57 void slotReceivedBookmarks();
58 void slotJoinChatBookmark(const QString&);
61 private:
62 JabberAccount *m_account;
63 QDomDocument m_storage;
64 QStringList m_conferencesJID;
67 #endif