attachment.cpp
1
21#include "attachment.h"
22
23using namespace Komposer;
24
25class Attachment::Private
26{
27public:
28 TQString name;
29 TQCString cte;
30 TQByteArray data;
31 TQCString type;
32 TQCString subType;
33 TQCString paramAttr;
34 TQString paramValue;
35 TQCString contDisp;
36};
37
38Attachment::Attachment( const TQString &name,
39 const TQCString &cte,
40 const TQByteArray &data,
41 const TQCString &type,
42 const TQCString &subType,
43 const TQCString &paramAttr,
44 const TQString &paramValue,
45 const TQCString &contDisp )
46 : d( new Private )
47{
48 d->name = name;
49 d->cte = cte;
50 d->data = data;
51 d->type = type;
52 d->subType = subType;
53 d->paramAttr = paramAttr;
54 d->paramValue = paramValue;
55 d->contDisp = contDisp;
56}
57
58Attachment::~Attachment()
59{
60 delete d; d = 0;
61}
62
63TQString
64Attachment::name() const
65{
66 return d->name;
67}
68
69TQCString
70Attachment::cte() const
71{
72 return d->cte;
73}
74
75TQByteArray
76Attachment::data() const
77{
78 return d->data;
79}
80
81TQCString
82Attachment::type() const
83{
84 return d->type;
85}
86
87
88TQCString
89Attachment::subType() const
90{
91 return d->subType;
92}
93
94TQCString
95Attachment::paramAttr() const
96{
97 return d->paramAttr;
98}
99
100TQString
101Attachment::paramValue() const
102{
103 return d->paramValue;
104}
105
106TQCString
107Attachment::contentDisposition() const
108{
109 return d->contDisp;
110}
111
attachment.h
Definition: attachment.h:29