attachment.cpp
00001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; -*- 00022 #include "attachment.h" 00023 00024 using namespace Komposer; 00025 00026 class Attachment::Private 00027 { 00028 public: 00029 TQString name; 00030 TQCString cte; 00031 TQByteArray data; 00032 TQCString type; 00033 TQCString subType; 00034 TQCString paramAttr; 00035 TQString paramValue; 00036 TQCString contDisp; 00037 }; 00038 00039 Attachment::Attachment( const TQString &name, 00040 const TQCString &cte, 00041 const TQByteArray &data, 00042 const TQCString &type, 00043 const TQCString &subType, 00044 const TQCString ¶mAttr, 00045 const TQString ¶mValue, 00046 const TQCString &contDisp ) 00047 : d( new Private ) 00048 { 00049 d->name = name; 00050 d->cte = cte; 00051 d->data = data; 00052 d->type = type; 00053 d->subType = subType; 00054 d->paramAttr = paramAttr; 00055 d->paramValue = paramValue; 00056 d->contDisp = contDisp; 00057 } 00058 00059 Attachment::~Attachment() 00060 { 00061 delete d; d = 0; 00062 } 00063 00064 TQString 00065 Attachment::name() const 00066 { 00067 return d->name; 00068 } 00069 00070 TQCString 00071 Attachment::cte() const 00072 { 00073 return d->cte; 00074 } 00075 00076 TQByteArray 00077 Attachment::data() const 00078 { 00079 return d->data; 00080 } 00081 00082 TQCString 00083 Attachment::type() const 00084 { 00085 return d->type; 00086 } 00087 00088 00089 TQCString 00090 Attachment::subType() const 00091 { 00092 return d->subType; 00093 } 00094 00095 TQCString 00096 Attachment::paramAttr() const 00097 { 00098 return d->paramAttr; 00099 } 00100 00101 TQString 00102 Attachment::paramValue() const 00103 { 00104 return d->paramValue; 00105 } 00106 00107 TQCString 00108 Attachment::contentDisposition() const 00109 { 00110 return d->contDisp; 00111 } 00112