summaryrefslogtreecommitdiffabout
path: root/libkcal/attachment.h
Unidiff
Diffstat (limited to 'libkcal/attachment.h') (more/less context) (show whitespace changes)
-rw-r--r--libkcal/attachment.h51
1 files changed, 38 insertions, 13 deletions
diff --git a/libkcal/attachment.h b/libkcal/attachment.h
index cdf2458..5301420 100644
--- a/libkcal/attachment.h
+++ b/libkcal/attachment.h
@@ -2,2 +2,3 @@
2 This file is part of libkcal. 2 This file is part of libkcal.
3
3 Copyright (c) 2002 Michael Brade <brade@kde.org> 4 Copyright (c) 2002 Michael Brade <brade@kde.org>
@@ -19,8 +20,8 @@
19*/ 20*/
21#ifndef KCAL_ATTACHMENT_H
22#define KCAL_ATTACHMENT_H
20 23
21#ifndef _ATTACHMENT_H
22#define _ATTACHMENT_H
23 24
24#include <qstring.h>
25 25
26#include <qstring.h>
26 27
@@ -29,3 +30,3 @@ namespace KCal {
29/** 30/**
30 * This class represents information related to an attachment. 31 This class represents information related to an attachment.
31 */ 32 */
@@ -34,6 +35,15 @@ class Attachment
34public: 35public:
36
37 /**
38 Create a Reference to some URI by copying an existing Attachment.
39
40 @param attachment the attachment to be duplicated
41 */
42 Attachment( const Attachment &attachment );
43
35 /** 44 /**
36 * Create a Reference to some URI. 45 Create a Reference to some URI.
37 * @param uri the uri this attachment refers to 46
38 * @param mime the mime type of the resource being linked to 47 @param uri the uri this attachment refers to
48 @param mime the mime type of the resource being linked to
39 */ 49 */
@@ -42,5 +52,6 @@ public:
42 /** 52 /**
43 * Create a binary attachment. 53 Create a binary attachment.
44 * @param base64 the attachment in base64 format 54
45 * @param mime the mime type of the attachment 55 @param base64 the attachment in base64 format
56 @param mime the mime type of the attachment
46 */ 57 */
@@ -48,6 +59,6 @@ public:
48 59
49 /* The VALUE parameter in Cal */ 60 /* The VALUE parameter in iCal */
50 bool isURI() const; 61 bool isUri() const;
51 QString uri() const; 62 QString uri() const;
52 void setURI(const QString& uri); 63 void setUri( const QString &uri );
53 64
@@ -60,2 +71,11 @@ public:
60 void setMimeType(const QString& mime); 71 void setMimeType(const QString& mime);
72
73 /* The custom X-CONTENT-DISPOSITION parameter, used by OGo etc. */
74 bool showInline() const;
75 void setShowInline( bool showinline );
76
77 /* The custom X-LABEL parameter to show a human-readable title */
78 QString label() const;
79 void setLabel( const QString &label );
80
61private: 81private:
@@ -64,2 +84,7 @@ private:
64 bool mBinary; 84 bool mBinary;
85 bool mShowInline;
86 QString mLabel;
87
88 class Private;
89 Private *d;
65}; 90};