Fix for Google Talk contacts: Google Talk does not provide the Jabber nickname proper...
[kdenetwork.git] / krfb / invitationmanager.h
blobba39e155d3307dfba36c9bda37d670eacaeaa77f
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8 */
9 #ifndef INVITATIONMANAGER_H
10 #define INVITATIONMANAGER_H
12 #include <QObject>
13 #include <QList>
14 #include "invitation.h"
17 class InvitationManagerPrivate;
18 /**
19 @author Alessandro Praduroux <pradu@pradu.it>
21 class InvitationManager : public QObject
23 Q_OBJECT
24 friend class InvitationManagerPrivate;
25 public:
26 static InvitationManager *self();
28 ~InvitationManager();
30 Invitation addInvitation();
32 int activeInvitations();
34 void removeInvitation(const Invitation &inv);
35 void removeAllInvitations();
37 const QList<Invitation> &invitations();
39 signals:
40 void invitationNumChanged(int);
42 public Q_SLOTS:
44 void loadInvitations();
45 void saveInvitations();
47 private:
49 void invalidateOldInvitations();
50 InvitationManager();
51 static InvitationManager *_self;
53 QList<Invitation> invitationList;
58 #endif