summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/bugdetailsimpl.h
blob: df3e5d6dada1ca7922f43c19485a83144750ac04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __bugdetails_impl_h__
#define __bugdetails_impl_h__

#include <ksharedptr.h>

#include "bugdetailspart.h"

struct BugDetailsImpl : public KShared
{
public:
    BugDetailsImpl( const QString &_version, const QString &_source,
                    const QString &_compiler, const QString &_os,
                    const BugDetailsPart::List &_parts )
        : version( _version ), source( _source ), compiler( _compiler ),
          os( _os ), parts( _parts ) {}

    struct AttachmentDetails {
        AttachmentDetails() { }
        AttachmentDetails( const QString& descr, const QString& dt,
                           const QString& idf ) : description( descr ),
                                                  date( dt ),
                                                  id( idf ) { }
        QString description;
        QString date;
        QString id;
    };

    QString version;
    QString source;
    QString compiler;
    QString os;
    BugDetailsPart::List parts;
    QValueList<BugDetailsImpl::AttachmentDetails> attachments;
};

#endif

/*
 * vim:sw=4:ts=4:et
 */