person.hGo 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
00031 #ifndef KCAL_PERSON_H
00032 #define KCAL_PERSON_H
00033
00034 #include <QtCore/QString>
00035 #include <QtCore/QHash>
00036
00037 #include "kcal_export.h"
00038
00039 namespace KCal {
00040
00048 class KCAL_EXPORT Person
00049 {
00050 public:
00054 Person();
00055
00062 static Person fromFullName( const QString &fullName );
00063
00072 KDE_CONSTRUCTOR_DEPRECATED explicit Person( const QString &fullName );
00073
00080 Person( const QString &name, const QString &email );
00081
00087 Person( const Person &person );
00088
00092 ~Person();
00093
00097 bool isEmpty() const;
00098
00102 QString fullName( ) const;
00103
00111 void setName( const QString &name );
00112
00118 QString name() const;
00119
00127 void setEmail( const QString &email );
00128
00134 QString email() const;
00135
00141
00142 #if defined(Q_CC_MSVC)
00143 bool operator==( const Person &person ) const;
00144 #else
00145 bool operator==( const Person &person );
00146 #endif
00147
00152 Person &operator=( const Person &person );
00153
00154 private:
00155
00156 class Private;
00157 Private *const d;
00158
00159 };
00160
00161 }
00162
00163
00164
00165
00166
00167
00168 inline uint qHash( const KCal::Person &key )
00169 {
00170 return qHash( key.fullName() );
00171 }
00172
00173 #endif
|