diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /kbugbuster/backend/bugdetails.h | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/backend/bugdetails.h')
-rw-r--r-- | kbugbuster/backend/bugdetails.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kbugbuster/backend/bugdetails.h b/kbugbuster/backend/bugdetails.h new file mode 100644 index 00000000..08d20777 --- /dev/null +++ b/kbugbuster/backend/bugdetails.h @@ -0,0 +1,55 @@ +#ifndef __bugdetails_h__ +#define __bugdetails_h__ + +#include "person.h" +#include "bugdetailspart.h" +#include "bugdetailsimpl.h" + +#include <qvaluelist.h> + +#include <ksharedptr.h> + +class BugDetailsImpl; + +class BugDetails +{ +public: + typedef QValueList<BugDetails> 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<BugDetailsImpl::AttachmentDetails>& attch ); + QValueList<BugDetailsImpl::AttachmentDetails> attachmentDetails() const; + QValueList<BugDetails::Attachment> extractAttachments() const; + static QValueList<BugDetails::Attachment> 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<BugDetailsImpl> m_impl; +}; + +#endif + +/* vim: set sw=4 ts=4 et softtabstop=4: */ + |