attachment.cpp
1 
21 #include "attachment.h"
22 
23 using namespace Komposer;
24 
25 class Attachment::Private
26 {
27 public:
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 
38 Attachment::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 
58 Attachment::~Attachment()
59 {
60  delete d; d = 0;
61 }
62 
63 TQString
64 Attachment::name() const
65 {
66  return d->name;
67 }
68 
69 TQCString
70 Attachment::cte() const
71 {
72  return d->cte;
73 }
74 
75 TQByteArray
76 Attachment::data() const
77 {
78  return d->data;
79 }
80 
81 TQCString
82 Attachment::type() const
83 {
84  return d->type;
85 }
86 
87 
88 TQCString
89 Attachment::subType() const
90 {
91  return d->subType;
92 }
93 
94 TQCString
95 Attachment::paramAttr() const
96 {
97  return d->paramAttr;
98 }
99 
100 TQString
101 Attachment::paramValue() const
102 {
103  return d->paramValue;
104 }
105 
106 TQCString
107 Attachment::contentDisposition() const
108 {
109  return d->contDisp;
110 }
111 
attachment.h
Definition: attachment.h:29