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.
9 #ifndef INVITATIONMANAGER_H
10 #define INVITATIONMANAGER_H
14 #include "invitation.h"
17 class InvitationManagerPrivate
;
19 @author Alessandro Praduroux <pradu@pradu.it>
21 class InvitationManager
: public QObject
24 friend class InvitationManagerPrivate
;
26 static InvitationManager
*self();
30 Invitation
addInvitation();
32 int activeInvitations();
34 void removeInvitation(const Invitation
&inv
);
35 void removeAllInvitations();
37 const QList
<Invitation
> &invitations();
40 void invitationNumChanged(int);
44 void loadInvitations();
45 void saveInvitations();
49 void invalidateOldInvitations();
51 static InvitationManager
*_self
;
53 QList
<Invitation
> invitationList
;