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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/mime/public/nsICMSSecureMessage.idl
 */

#ifndef __gen_nsICMSSecureMessage_h__
#define __gen_nsICMSSecureMessage_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 nsIX509Cert; /* forward declaration */


/* starting interface:    nsICMSSecureMessage */
#define NS_ICMSSECUREMESSAGE_IID_STR "17103436-0111-4819-a751-0fc4aa6e3d79"

#define NS_ICMSSECUREMESSAGE_IID \
  {0x17103436, 0x0111, 0x4819, \
    { 0xa7, 0x51, 0x0f, 0xc4, 0xaa, 0x6e, 0x3d, 0x79 }}

class NS_NO_VTABLE nsICMSSecureMessage : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSSECUREMESSAGE_IID)

  /* nsIX509Cert decodeCert (in string value); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DecodeCert(const char * value, nsIX509Cert **_retval) = 0;

  /* string sendMessage (in string msg, in string cert); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval) = 0;

  /* string receiveMessage (in string msg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval) = 0;

  /* bool canBeUsedForEmailEncryption (in nsIX509Cert cert); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanBeUsedForEmailEncryption(nsIX509Cert *cert, bool *_retval) = 0;

  /* bool canBeUsedForEmailSigning (in nsIX509Cert cert); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanBeUsedForEmailSigning(nsIX509Cert *cert, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSSecureMessage, NS_ICMSSECUREMESSAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICMSSECUREMESSAGE \
  NS_IMETHOD DecodeCert(const char * value, nsIX509Cert **_retval) override; \
  NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval) override; \
  NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval) override; \
  NS_IMETHOD CanBeUsedForEmailEncryption(nsIX509Cert *cert, bool *_retval) override; \
  NS_IMETHOD CanBeUsedForEmailSigning(nsIX509Cert *cert, bool *_retval) 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_NSICMSSECUREMESSAGE \
  nsresult DecodeCert(const char * value, nsIX509Cert **_retval); \
  nsresult SendMessage(const char * msg, const char * cert, char * *_retval); \
  nsresult ReceiveMessage(const char * msg, char * *_retval); \
  nsresult CanBeUsedForEmailEncryption(nsIX509Cert *cert, bool *_retval); \
  nsresult CanBeUsedForEmailSigning(nsIX509Cert *cert, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICMSSECUREMESSAGE(_to) \
  NS_IMETHOD DecodeCert(const char * value, nsIX509Cert **_retval) override { return _to DecodeCert(value, _retval); } \
  NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval) override { return _to SendMessage(msg, cert, _retval); } \
  NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval) override { return _to ReceiveMessage(msg, _retval); } \
  NS_IMETHOD CanBeUsedForEmailEncryption(nsIX509Cert *cert, bool *_retval) override { return _to CanBeUsedForEmailEncryption(cert, _retval); } \
  NS_IMETHOD CanBeUsedForEmailSigning(nsIX509Cert *cert, bool *_retval) override { return _to CanBeUsedForEmailSigning(cert, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICMSSECUREMESSAGE(_to) \
  NS_IMETHOD DecodeCert(const char * value, nsIX509Cert **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeCert(value, _retval); } \
  NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMessage(msg, cert, _retval); } \
  NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReceiveMessage(msg, _retval); } \
  NS_IMETHOD CanBeUsedForEmailEncryption(nsIX509Cert *cert, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanBeUsedForEmailEncryption(cert, _retval); } \
  NS_IMETHOD CanBeUsedForEmailSigning(nsIX509Cert *cert, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanBeUsedForEmailSigning(cert, _retval); } 

#define NS_CMSSECUREMESSAGE_CONTRACTID "@mozilla.org/nsCMSSecureMessage;1"

#endif /* __gen_nsICMSSecureMessage_h__ */