DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/compose/public/nsIMsgAttachmentHandler.idl
 */

#ifndef __gen_nsIMsgAttachmentHandler_h__
#define __gen_nsIMsgAttachmentHandler_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */


/* starting interface:    nsIMsgAttachmentHandler */
#define NS_IMSGATTACHMENTHANDLER_IID_STR "1731283c-60fe-4102-a804-622a84cc1a08"

#define NS_IMSGATTACHMENTHANDLER_IID \
  {0x1731283c, 0x60fe, 0x4102, \
    { 0xa8, 0x04, 0x62, 0x2a, 0x84, 0xcc, 0x1a, 0x08 }}

class NS_NO_VTABLE nsIMsgAttachmentHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGATTACHMENTHANDLER_IID)

  /* readonly attribute ACString type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsACString& aType) = 0;

  /* readonly attribute ACString uri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUri(nsACString& aUri) = 0;

  /* readonly attribute nsIFile tmpFile; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) = 0;

  /* readonly attribute AUTF8String name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;

  /* readonly attribute unsigned long size; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSize(uint32_t *aSize) = 0;

  /* readonly attribute ACString contentId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentId(nsACString& aContentId) = 0;

  /* readonly attribute boolean sendViaCloud; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSendViaCloud(bool *aSendViaCloud) = 0;

  /* readonly attribute ACString charset; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCharset(nsACString& aCharset) = 0;

  /* readonly attribute ACString encoding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEncoding(nsACString& aEncoding) = 0;

  /* readonly attribute boolean alreadyEncoded; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAlreadyEncoded(bool *aAlreadyEncoded) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgAttachmentHandler, NS_IMSGATTACHMENTHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGATTACHMENTHANDLER \
  NS_IMETHOD GetType(nsACString& aType) override; \
  NS_IMETHOD GetUri(nsACString& aUri) override; \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override; \
  NS_IMETHOD GetName(nsACString& aName) override; \
  NS_IMETHOD GetSize(uint32_t *aSize) override; \
  NS_IMETHOD GetContentId(nsACString& aContentId) override; \
  NS_IMETHOD GetSendViaCloud(bool *aSendViaCloud) override; \
  NS_IMETHOD GetCharset(nsACString& aCharset) override; \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override; \
  NS_IMETHOD GetAlreadyEncoded(bool *aAlreadyEncoded) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGATTACHMENTHANDLER \
  nsresult GetType(nsACString& aType); \
  nsresult GetUri(nsACString& aUri); \
  nsresult GetTmpFile(nsIFile **aTmpFile); \
  nsresult GetName(nsACString& aName); \
  nsresult GetSize(uint32_t *aSize); \
  nsresult GetContentId(nsACString& aContentId); \
  nsresult GetSendViaCloud(bool *aSendViaCloud); \
  nsresult GetCharset(nsACString& aCharset); \
  nsresult GetEncoding(nsACString& aEncoding); \
  nsresult GetAlreadyEncoded(bool *aAlreadyEncoded); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGATTACHMENTHANDLER(_to) \
  NS_IMETHOD GetType(nsACString& aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetUri(nsACString& aUri) override { return _to GetUri(aUri); } \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override { return _to GetTmpFile(aTmpFile); } \
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetSize(uint32_t *aSize) override { return _to GetSize(aSize); } \
  NS_IMETHOD GetContentId(nsACString& aContentId) override { return _to GetContentId(aContentId); } \
  NS_IMETHOD GetSendViaCloud(bool *aSendViaCloud) override { return _to GetSendViaCloud(aSendViaCloud); } \
  NS_IMETHOD GetCharset(nsACString& aCharset) override { return _to GetCharset(aCharset); } \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD GetAlreadyEncoded(bool *aAlreadyEncoded) override { return _to GetAlreadyEncoded(aAlreadyEncoded); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGATTACHMENTHANDLER(_to) \
  NS_IMETHOD GetType(nsACString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetUri(nsACString& aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
  NS_IMETHOD GetTmpFile(nsIFile **aTmpFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTmpFile(aTmpFile); } \
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetSize(uint32_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  NS_IMETHOD GetContentId(nsACString& aContentId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentId(aContentId); } \
  NS_IMETHOD GetSendViaCloud(bool *aSendViaCloud) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendViaCloud(aSendViaCloud); } \
  NS_IMETHOD GetCharset(nsACString& aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  NS_IMETHOD GetEncoding(nsACString& aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD GetAlreadyEncoded(bool *aAlreadyEncoded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlreadyEncoded(aAlreadyEncoded); } 


#endif /* __gen_nsIMsgAttachmentHandler_h__ */