summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/bugdetailsimpl.h
blob: a27ee2de326921d2d2cd11bc6c51454dcf13c49e (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
#ifndef __bugdetails_impl_h__
#define __bugdetails_impl_h__

#include <ksharedptr.h>

#include "bugdetailspart.h"

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

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

    TQString version;
    TQString source;
    TQString compiler;
    TQString os;
    BugDetailsPart::List parts;
    TQValueList<BugDetailsImpl::AttachmentDetails> attachments;
};

#endif