krfb
invitationmanager.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 */ 00009 #ifndef INVITATIONMANAGER_H 00010 #define INVITATIONMANAGER_H 00011 00012 #include <QObject> 00013 #include <QList> 00014 #include "invitation.h" 00015 00016 00017 class InvitationManagerPrivate; 00021 class InvitationManager : public QObject 00022 { 00023 Q_OBJECT 00024 friend class InvitationManagerPrivate; 00025 public: 00026 static InvitationManager *self(); 00027 00028 ~InvitationManager(); 00029 00030 Invitation addInvitation(); 00031 00032 int activeInvitations(); 00033 00034 void removeInvitation(const Invitation &inv); 00035 void removeAllInvitations(); 00036 00037 const QList<Invitation> &invitations(); 00038 00039 signals: 00040 void invitationNumChanged(int); 00041 00042 public Q_SLOTS: 00043 00044 void loadInvitations(); 00045 void saveInvitations(); 00046 00047 private: 00048 00049 void invalidateOldInvitations(); 00050 InvitationManager(); 00051 static InvitationManager *_self; 00052 00053 QList<Invitation> invitationList; 00054 00055 00056 }; 00057 00058 #endif
KDE 4.2 API Reference