#ifndef __bugdetails_h__ #define __bugdetails_h__ #include "person.h" #include "bugdetailspart.h" #include "bugdetailsimpl.h" #include #include class BugDetailsImpl; class BugDetails { public: typedef TQValueList List; struct Attachment { TQByteArray contents; TQString filename; }; BugDetails(); BugDetails( BugDetailsImpl *impl ); BugDetails( const BugDetails &other ); BugDetails &operator=( const BugDetails &rhs ); ~BugDetails(); TQString version() const; TQString source() const; TQString compiler() const; TQString os() const; BugDetailsPart::List parts() const; void addAttachmentDetails( const TQValueList& attch ); TQValueList attachmentDetails() const; TQValueList extractAttachments() const; static TQValueList extractAttachments( const TQString& text ); TQDateTime submissionDate() const; int age() const; bool operator==( const BugDetails &rhs ); bool isNull() const { return m_impl == 0; } private: BugDetailsImpl *impl() const { return m_impl; } TDESharedPtr m_impl; }; #endif