23 #ifndef _TelepathyQt_avatar_h_HEADER_GUARD_
24 #define _TelepathyQt_avatar_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
30 #include <TelepathyQt/Global>
32 #include <QSharedDataPointer>
34 #include <QStringList>
43 inline AvatarData(
const QString &fileName,
const QString &mimeType)
44 : fileName(fileName), mimeType(mimeType) {}
55 AvatarSpec(
const QStringList &supportedMimeTypes,
56 uint minHeight, uint maxHeight, uint recommendedHeight,
57 uint minWidth, uint maxWidth, uint recommendedWidth,
62 bool isValid()
const {
return mPriv.constData() != 0; }
66 QStringList supportedMimeTypes()
const;
67 uint minimumHeight()
const;
68 uint maximumHeight()
const;
69 uint recommendedHeight()
const;
70 uint minimumWidth()
const;
71 uint maximumWidth()
const;
72 uint recommendedWidth()
const;
73 uint maximumBytes()
const;
77 friend struct Private;
78 QSharedDataPointer<Private> mPriv;
The AvatarSpec class represents a Telepathy avatar information supported by a protocol.
Definition: avatar.h:51
QString fileName
Definition: avatar.h:47
The AvatarData class represents a Telepathy avatar.
Definition: avatar.h:40
AvatarData()
Definition: avatar.h:45
AvatarData(const QString &fileName, const QString &mimeType)
Definition: avatar.h:43
QString mimeType
Definition: avatar.h:48
bool isValid() const
Definition: avatar.h:62