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