KCal Library
person.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00034 #ifndef KCAL_PERSON_H
00035 #define KCAL_PERSON_H
00036
00037 #include <QtCore/QString>
00038
00039 #include "kcal_export.h"
00040
00041 namespace KCal {
00042
00047 class KCAL_EXPORT Person
00048 {
00049 public:
00053 Person();
00054
00061 static Person fromFullName( const QString &fullName );
00062
00067 KDE_CONSTRUCTOR_DEPRECATED explicit Person( const QString &fullName );
00068
00075 Person( const QString &name, const QString &email );
00076
00082 Person( const Person &person );
00083
00087 ~Person();
00088
00092 bool isEmpty() const;
00093
00097 QString fullName( ) const;
00098
00106 void setName( const QString &name );
00107
00113 QString name() const;
00114
00122 void setEmail( const QString &email );
00123
00129 QString email() const;
00130
00136 bool operator==( const Person &person );
00137
00143 Person &operator=( const Person &person );
00144
00145 private:
00146
00147 class Private;
00148 Private *const d;
00149
00150 };
00151
00152 }
00153
00154 #endif