#ifndef CONTENTDISPOSITIONPHARSER_H #define CONTENTDISPOSITIONPHARSER_H #include #include namespace Network { class ContentDispositionParser { public: ContentDispositionParser(const QString &contentDisposition); void pharse(); const QString &fileName(); bool isAttachment(); const QMap &data(); private: /*! * \brief Specifies the parsing position. */ enum PharsingPosition { FieldName, /**< file name */ Value /**< value */ }; void addData(QString fieldName, QString value); QString m_contentDisposition; QString m_fileName; bool m_attachment; QMap m_data; }; } // namespace Network #endif // CONTENTDISPOSITIONPHARSER_H