kopete/protocols/messenger/libpapillon
contact.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PAPILLONCONTACT_H
00016 #define PAPILLONCONTACT_H
00017
00018 #include <Papillon/Macros>
00019 #include <Papillon/Enums>
00020
00021 #include <QtCore/QObject>
00022
00023
00024 namespace Papillon
00025 {
00026
00034 class PAPILLON_EXPORT Contact : public QObject
00035 {
00036 Q_OBJECT
00037 public:
00041 Contact(QObject *parent = 0);
00045 ~Contact();
00046
00052 QString contactId() const;
00057 void setContactId(const QString &contactId);
00058
00064 QString passportId() const;
00069 void setPassportId(const QString &passportId);
00070
00074 ClientInfo::Features clientFeatures() const;
00079 void setClientFeatures(const ClientInfo::Features &features);
00080
00085 Papillon::ContactListEnums::ListFlags lists() const;
00086
00093 void addToList(const Papillon::ContactListEnums::ListFlags &list);
00094
00101 void removeFromList(const Papillon::ContactListEnums::ListFlags &list);
00102
00103
00108 QString displayName() const;
00113 void setDisplayName(const QString &displayName);
00114
00115
00116 private:
00121 Contact(const Contact ©);
00126 Contact &operator=(const Contact &other);
00127
00128 class Private;
00129 Private *d;
00130 };
00131
00132 }
00133
00134 #endif