Home · All Classes · All Namespaces · Modules · Functions · Files |
00001 00023 #ifndef _TelepathyQt4_file_transfer_channel_creation_properties_h_HEADER_GUARD_ 00024 #define _TelepathyQt4_file_transfer_channel_creation_properties_h_HEADER_GUARD_ 00025 00026 #ifndef IN_TELEPATHY_QT4_HEADER 00027 #error IN_TELEPATHY_QT4_HEADER 00028 #endif 00029 00030 #include <TelepathyQt4/Constants> 00031 #include <TelepathyQt4/Global> 00032 00033 #include <QDateTime> 00034 #include <QMetaType> 00035 #include <QSharedDataPointer> 00036 #include <QString> 00037 00038 namespace Tp 00039 { 00040 00041 class TELEPATHY_QT4_EXPORT FileTransferChannelCreationProperties 00042 { 00043 public: 00044 FileTransferChannelCreationProperties(); 00045 FileTransferChannelCreationProperties(const QString &suggestedFileName, 00046 const QString &contentType, qulonglong size); 00047 FileTransferChannelCreationProperties( 00048 const FileTransferChannelCreationProperties &other); 00049 ~FileTransferChannelCreationProperties(); 00050 00051 bool isValid() const { return mPriv.constData() != 0; } 00052 00053 FileTransferChannelCreationProperties &operator=( 00054 const FileTransferChannelCreationProperties &other); 00055 bool operator==(const FileTransferChannelCreationProperties &other) const; 00056 00057 FileTransferChannelCreationProperties &setContentHash( 00058 FileHashType contentHashType, const QString &contentHash); 00059 FileTransferChannelCreationProperties &setDescription( 00060 const QString &description); 00061 FileTransferChannelCreationProperties &setLastModificationTime( 00062 const QDateTime &lastModificationTime); 00063 00064 /* mandatory parameters */ 00065 QString suggestedFileName() const; 00066 QString contentType() const; 00067 qulonglong size() const; 00068 00069 /* optional parameters */ 00070 bool hasContentHash() const; 00071 FileHashType contentHashType() const; 00072 QString contentHash() const; 00073 00074 bool hasDescription() const; 00075 QString description() const; 00076 00077 bool hasLastModificationTime() const; 00078 QDateTime lastModificationTime() const; 00079 00080 private: 00081 struct Private; 00082 friend struct Private; 00083 QSharedDataPointer<Private> mPriv; 00084 }; 00085 00086 } // Tp 00087 00088 Q_DECLARE_METATYPE(Tp::FileTransferChannelCreationProperties); 00089 00090 #endif
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.6.1 |