summaryrefslogtreecommitdiffstats
path: root/mailnews/compose/public/nsIMsgAttachmentHandler.idl
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/compose/public/nsIMsgAttachmentHandler.idl')
-rw-r--r--mailnews/compose/public/nsIMsgAttachmentHandler.idl45
1 files changed, 45 insertions, 0 deletions
diff --git a/mailnews/compose/public/nsIMsgAttachmentHandler.idl b/mailnews/compose/public/nsIMsgAttachmentHandler.idl
new file mode 100644
index 000000000..ac7c4f825
--- /dev/null
+++ b/mailnews/compose/public/nsIMsgAttachmentHandler.idl
@@ -0,0 +1,45 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#include "nsISupports.idl"
+interface nsIFile;
+
+// This interface provides minimal XPCONNECT access to objects of type
+// nsMsgAttachmentHandler. This is primarily for use with new account
+// types and JsAccount, so this is probably not the interface that you
+// want if you are working with standard account types.
+
+[scriptable, uuid(1731283c-60fe-4102-a804-622a84cc1a08)]
+interface nsIMsgAttachmentHandler : nsISupports
+{
+ /// The real type, once we know it.
+ readonly attribute ACString type;
+
+ /// URI with link to the attachment.
+ readonly attribute ACString uri;
+
+ /// The temp file to which we save it.
+ readonly attribute nsIFile tmpFile;
+
+ /// The name for the headers, if different from the URL.
+ readonly attribute AUTF8String name;
+
+ /// Size of the attachment, in bytes.
+ readonly attribute unsigned long size;
+
+ /// This is for multipart/related Content-ID's.
+ readonly attribute ACString contentId;
+
+ /// True if this should be sent as a link to a file.
+ readonly attribute boolean sendViaCloud;
+
+ /// Name of the character set for the attachment.
+ readonly attribute ACString charset;
+
+ /// The encoding, once we've decided.
+ readonly attribute ACString encoding;
+
+ /// Whether the attachment has been encoded, for example to base64.
+ readonly attribute boolean alreadyEncoded;
+};