#ifndef __bugdetails_h__ #define __bugdetails_h__ #include "person.h" #include "bugdetailspart.h" #include "bugdetailsimpl.h" #include #include class BugDetailsImpl; class BugDetails { public: typedef QValueList List; struct Attachment { QByteArray contents; QString filename; }; BugDetails(); BugDetails( BugDetailsImpl *impl ); BugDetails( const BugDetails &other ); BugDetails &operator=( const BugDetails &rhs ); ~BugDetails(); QString version() const; QString source() const; QString compiler() const; QString os() const; BugDetailsPart::List parts() const; void addAttachmentDetails( const QValueList& attch ); QValueList attachmentDetails() const; QValueList extractAttachments() const; static QValueList extractAttachments( const QString& text ); QDateTime submissionDate() const; int age() const; bool operator==( const BugDetails &rhs ); bool isNull() const { return m_impl == 0; } private: BugDetailsImpl *impl() const { return m_impl; } KSharedPtr m_impl; }; #endif /* vim: set sw=4 ts=4 et softtabstop=4: */