libkcal Library API Documentation

attendee.h

00001 /*
00002     This file is part of libkcal.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef _ATTENDEE_H
00022 #define _ATTENDEE_H
00023 
00024 #include <qstring.h>
00025 
00026 #include "person.h"
00027 
00028 namespace KCal {
00029 
00033 class Attendee : public Person
00034 {
00035   public:
00036     enum PartStat { NeedsAction, Accepted, Declined, Tentative,
00037                     Delegated, Completed, InProcess };
00038     enum Role { ReqParticipant, OptParticipant, NonParticipant, Chair };
00039   
00049     Attendee(const QString& name, const QString &email,
00050              bool rsvp=false, PartStat status=NeedsAction,
00051              Role role=ReqParticipant,const QString& u=QString::null);
00053     virtual ~Attendee();
00054 
00056     void setRole( Role );
00058     Role role() const;
00060     QString roleStr() const;
00061     static QString roleName( Role );
00062     static QStringList roleList();
00063 
00065     QString uid();
00066     void setUid (QString);
00067 
00069     void setStatus(PartStat s);
00071     PartStat status() const;
00073     QString statusStr() const;
00074     static QString statusName( PartStat );
00075     static QStringList statusList();
00076 
00078     void setRSVP(bool r) { mRSVP = r; }
00080     bool RSVP() const { return mRSVP; }
00081 
00082   private:
00083     bool mRSVP;
00084     Role mRole;
00085     PartStat mStatus;
00086     QString mUid;
00087 
00088     // used to tell whether we have need to mail this person or not.
00089     bool mFlag;
00090 };
00091 
00092 }
00093 
00094 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:26 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001