-rw-r--r-- | libkcal/attachment.cpp | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/libkcal/attachment.cpp b/libkcal/attachment.cpp index 1ead923..520ac95 100644 --- a/libkcal/attachment.cpp +++ b/libkcal/attachment.cpp @@ -1,4 +1,5 @@ /* This file is part of libkcal. + Copyright (c) 2002 Michael Brade <brade@kde.org> @@ -23,4 +24,13 @@ using namespace KCal; +Attachment::Attachment( const Attachment &attachment) +{ + mMimeType = attachment.mMimeType; + mData = attachment.mData; + mBinary = attachment.mBinary; + mShowInline = attachment.mShowInline; + mLabel = attachment.mLabel; +} + Attachment::Attachment(const QString& uri, const QString& mime) { @@ -28,4 +38,6 @@ Attachment::Attachment(const QString& uri, const QString& mime) mData = uri; mBinary = false; + mShowInline = false; + mLabel = QString::null; } @@ -35,7 +47,9 @@ Attachment::Attachment(const char *base64, const QString& mime) mData = QString::fromUtf8(base64); mBinary = true; + mShowInline = false; + mLabel = QString::null; } -bool Attachment::isURI() const +bool Attachment::isUri() const { return !mBinary; @@ -50,5 +64,5 @@ QString Attachment::uri() const } -void Attachment::setURI(const QString& uri) +void Attachment::setUri(const QString& uri) { mData = uri; @@ -85,2 +99,22 @@ void Attachment::setMimeType(const QString& mime) } +bool Attachment::showInline() const +{ + return mShowInline; +} + +void Attachment::setShowInline( bool showinline ) +{ + mShowInline = showinline; +} + +QString Attachment::label() const +{ + return mLabel; +} + +void Attachment::setLabel( const QString& label ) +{ + mLabel = label; +} + |