libkcal

#include <attendee.h>

Inheritance diagram for KCal::Attendee:
KCal::Person

Public Types

enum  PartStat {
  NeedsAction , Accepted , Declined , Tentative ,
  Delegated , Completed , InProcess , None
}
 
enum  Role { ReqParticipant , OptParticipant , NonParticipant , Chair }
 
typedef ListBase< AttendeeList
 

Public Member Functions

 Attendee (const TQString &name, const TQString &email, bool rsvp=false, PartStat status=None, Role role=ReqParticipant, const TQString &u=TQString())
 
virtual ~Attendee ()
 
void setRole (Role)
 
Role role () const
 
TQString roleStr () const
 
TQString uid () const
 
void setUid (const TQString &)
 
void setStatus (PartStat s)
 
PartStat status () const
 
TQString statusStr () const
 
void setRSVP (bool r)
 
bool RSVP () const
 
void setDelegate (const TQString &delegate)
 
TQString delegate () const
 
void setDelegator (const TQString &delegator)
 
TQString delegator () const
 
- Public Member Functions inherited from KCal::Person
 Person (const TQString &fullName)
 
 Person (const TQString &name, const TQString &email)
 
bool isEmpty () const
 
TQString fullName () const
 
void setName (const TQString &)
 
TQString name () const
 
void setEmail (const TQString &)
 
TQString email () const
 

Static Public Member Functions

static TQString roleName (Role)
 
static TQStringList roleList ()
 
static TQString statusName (PartStat)
 
static TQStringList statusList ()
 

Detailed Description

This class represents information related to an attendee of an event.

Definition at line 36 of file attendee.h.

Constructor & Destructor Documentation

◆ Attendee()

Attendee::Attendee ( const TQString &  name,
const TQString &  email,
bool  rsvp = false,
Attendee::PartStat  s = None,
Attendee::Role  r = ReqParticipant,
const TQString &  u = TQString() 
)

Create Attendee.

Parameters
nameName
emailEmail address
rsvpRequest for reply
statusStatus (see enum for list)
roleRole
uthe uid for the attendee

Definition at line 31 of file attendee.cpp.

◆ ~Attendee()

Attendee::~Attendee ( )
virtual

Destruct Attendee.

Definition at line 41 of file attendee.cpp.

Member Function Documentation

◆ delegate()

TQString KCal::Attendee::delegate ( ) const
inline

Returns the delegate.

Definition at line 135 of file attendee.h.

◆ delegator()

TQString KCal::Attendee::delegator ( ) const
inline

Returns the delegator.

Definition at line 144 of file attendee.h.

◆ role()

Attendee::Role Attendee::role ( ) const

Return role of Attendee.

Definition at line 122 of file attendee.cpp.

◆ roleList()

TQStringList Attendee::roleList ( )
static

Return string representations of all available roles.

Definition at line 161 of file attendee.cpp.

◆ roleName()

TQString Attendee::roleName ( Attendee::Role  r)
static

Return string represenation of role.

Definition at line 142 of file attendee.cpp.

◆ roleStr()

TQString Attendee::roleStr ( ) const

Return role as clear text string.

Definition at line 127 of file attendee.cpp.

◆ RSVP()

bool KCal::Attendee::RSVP ( ) const
inline

Return, if Attendee is asked to reply.

Definition at line 126 of file attendee.h.

◆ setDelegate()

void KCal::Attendee::setDelegate ( const TQString &  delegate)
inline

Sets the delegate.

Definition at line 131 of file attendee.h.

◆ setDelegator()

void KCal::Attendee::setDelegator ( const TQString &  delegator)
inline

Sets the delegator.

Definition at line 140 of file attendee.h.

◆ setRole()

void Attendee::setRole ( Attendee::Role  r)

Set role of Attendee.

Definition at line 117 of file attendee.cpp.

◆ setRSVP()

void KCal::Attendee::setRSVP ( bool  r)
inline

Set if Attendee is asked to reply.

Definition at line 122 of file attendee.h.

◆ setStatus()

void Attendee::setStatus ( Attendee::PartStat  s)

Set status.

See enum for definitions of possible values.

Definition at line 56 of file attendee.cpp.

◆ setUid()

void Attendee::setUid ( const TQString &  uid)

Set unique id of attendee.

Definition at line 132 of file attendee.cpp.

◆ status()

Attendee::PartStat Attendee::status ( ) const

Return status.

Definition at line 61 of file attendee.cpp.

◆ statusList()

TQStringList Attendee::statusList ( )
static

Return string representations of all available attendee status values.

Definition at line 102 of file attendee.cpp.

◆ statusName()

TQString Attendee::statusName ( Attendee::PartStat  s)
static

Return string representation of attendee status.

Definition at line 71 of file attendee.cpp.

◆ statusStr()

TQString Attendee::statusStr ( ) const

Return status as human-readable string.

Definition at line 66 of file attendee.cpp.

◆ uid()

TQString Attendee::uid ( ) const

Return unique id of the attendee.

Definition at line 137 of file attendee.cpp.


The documentation for this class was generated from the following files: