3 Copyright (c) 2006 by Olivier Goffart <ogoffart at kde.org>
5 Kopete (c) 2006 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 *************************************************************************
18 #ifndef JABBERBOOKMARKS_H
19 #define JABBERBOOKMARKS_H
23 #include <qstringlist.h>
25 namespace XMPP
{ class Jid
; }
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
42 JabberBookmarks(JabberAccount
*parent
);
46 * update or create en entry with the given jid.
47 * the jid ressource is the nickname
49 void insertGroupChat(const XMPP::Jid
&jid
);
52 * return an action that will be added in the jabber popup menu
54 KAction
*bookmarksAction(QObject
* parent
);
56 void accountConnected();
57 void slotReceivedBookmarks();
58 void slotJoinChatBookmark(const QString
&);
62 JabberAccount
*m_account
;
63 QDomDocument m_storage
;
64 QStringList m_conferencesJID
;