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