summaryrefslogtreecommitdiffstats
path: root/mailnews/compose/public/nsIMsgAttachmentHandler.idl
blob: ac7c4f8256d7362ffa6273a527c6f33dd9083e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
};