Your IP : 216.73.216.48
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICMSMessage2.idl
*/
#ifndef __gen_nsICMSMessage2_h__
#define __gen_nsICMSMessage2_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISMimeVerificationListener; /* forward declaration */
/* starting interface: nsICMSMessage2 */
#define NS_ICMSMESSAGE2_IID_STR "b21a3636-2287-4b9f-9a22-25f245981ef0"
#define NS_ICMSMESSAGE2_IID \
{0xb21a3636, 0x2287, 0x4b9f, \
{ 0x9a, 0x22, 0x25, 0xf2, 0x45, 0x98, 0x1e, 0xf0 }}
class NS_NO_VTABLE nsICMSMessage2 : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSMESSAGE2_IID)
/* void asyncVerifySignature (in nsISMimeVerificationListener listener); */
NS_IMETHOD AsyncVerifySignature(nsISMimeVerificationListener *listener) = 0;
/* void asyncVerifyDetachedSignature (in nsISMimeVerificationListener listener, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
NS_IMETHOD AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSMessage2, NS_ICMSMESSAGE2_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICMSMESSAGE2 \
NS_IMETHOD AsyncVerifySignature(nsISMimeVerificationListener *listener) override; \
NS_IMETHOD AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen) 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_NSICMSMESSAGE2 \
NS_METHOD AsyncVerifySignature(nsISMimeVerificationListener *listener); \
NS_METHOD AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICMSMESSAGE2(_to) \
NS_IMETHOD AsyncVerifySignature(nsISMimeVerificationListener *listener) override { return _to AsyncVerifySignature(listener); } \
NS_IMETHOD AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen) override { return _to AsyncVerifyDetachedSignature(listener, aDigestData, aDigestDataLen); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICMSMESSAGE2(_to) \
NS_IMETHOD AsyncVerifySignature(nsISMimeVerificationListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncVerifySignature(listener); } \
NS_IMETHOD AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncVerifyDetachedSignature(listener, aDigestData, aDigestDataLen); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCMSMessage2 : public nsICMSMessage2
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICMSMESSAGE2
nsCMSMessage2();
private:
~nsCMSMessage2();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsCMSMessage2, nsICMSMessage2)
nsCMSMessage2::nsCMSMessage2()
{
/* member initializers and constructor code */
}
nsCMSMessage2::~nsCMSMessage2()
{
/* destructor code */
}
/* void asyncVerifySignature (in nsISMimeVerificationListener listener); */
NS_IMETHODIMP nsCMSMessage2::AsyncVerifySignature(nsISMimeVerificationListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void asyncVerifyDetachedSignature (in nsISMimeVerificationListener listener, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
NS_IMETHODIMP nsCMSMessage2::AsyncVerifyDetachedSignature(nsISMimeVerificationListener *listener, unsigned char *aDigestData, uint32_t aDigestDataLen)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsISMimeVerificationListener */
#define NS_ISMIMEVERIFICATIONLISTENER_IID_STR "5226d698-0773-4f25-b94c-7944b3fc01d3"
#define NS_ISMIMEVERIFICATIONLISTENER_IID \
{0x5226d698, 0x0773, 0x4f25, \
{ 0xb9, 0x4c, 0x79, 0x44, 0xb3, 0xfc, 0x01, 0xd3 }}
class NS_NO_VTABLE nsISMimeVerificationListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISMIMEVERIFICATIONLISTENER_IID)
/* void notify (in nsICMSMessage2 verifiedMessage, in nsresult verificationResultCode); */
NS_IMETHOD Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISMimeVerificationListener, NS_ISMIMEVERIFICATIONLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISMIMEVERIFICATIONLISTENER \
NS_IMETHOD Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode) 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_NSISMIMEVERIFICATIONLISTENER \
NS_METHOD Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISMIMEVERIFICATIONLISTENER(_to) \
NS_IMETHOD Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode) override { return _to Notify(verifiedMessage, verificationResultCode); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISMIMEVERIFICATIONLISTENER(_to) \
NS_IMETHOD Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Notify(verifiedMessage, verificationResultCode); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSMimeVerificationListener : public nsISMimeVerificationListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISMIMEVERIFICATIONLISTENER
nsSMimeVerificationListener();
private:
~nsSMimeVerificationListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSMimeVerificationListener, nsISMimeVerificationListener)
nsSMimeVerificationListener::nsSMimeVerificationListener()
{
/* member initializers and constructor code */
}
nsSMimeVerificationListener::~nsSMimeVerificationListener()
{
/* destructor code */
}
/* void notify (in nsICMSMessage2 verifiedMessage, in nsresult verificationResultCode); */
NS_IMETHODIMP nsSMimeVerificationListener::Notify(nsICMSMessage2 *verifiedMessage, nsresult verificationResultCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsICMSMessage2_h__ */