Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/base/nsIKeyedUUIDMapper.idl
*/
#ifndef __gen_nsIKeyedUUIDMapper_h__
#define __gen_nsIKeyedUUIDMapper_h__
#include "nsISupports.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIKeyedUUIDMapper */
#define NS_IKEYEDUUIDMAPPER_IID_STR "424ecfce-456d-42ce-8d22-ee934f53a43f"
#define NS_IKEYEDUUIDMAPPER_IID \
{0x424ecfce, 0x456d, 0x42ce, \
{ 0x8d, 0x22, 0xee, 0x93, 0x4f, 0x53, 0xa4, 0x3f }}
class NS_NO_VTABLE nsIKeyedUUIDMapper : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IKEYEDUUIDMAPPER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIKeyedUUIDMapper;
/* Array<uint8_t> generateKey (); */
NS_IMETHOD GenerateKey(nsTArray<uint8_t >& _retval) = 0;
/* void init (in Array<uint8_t> aKey); */
NS_IMETHOD Init(const nsTArray<uint8_t >& aKey) = 0;
/* AUTF8String toUUID (in unsigned long long aValue); */
NS_IMETHOD ToUUID(uint64_t aValue, nsACString& _retval) = 0;
/* unsigned long long fromUUID (in AUTF8String aUUID); */
NS_IMETHOD FromUUID(const nsACString& aUUID, uint64_t *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIKEYEDUUIDMAPPER \
NS_IMETHOD GenerateKey(nsTArray<uint8_t >& _retval) override; \
NS_IMETHOD Init(const nsTArray<uint8_t >& aKey) override; \
NS_IMETHOD ToUUID(uint64_t aValue, nsACString& _retval) override; \
NS_IMETHOD FromUUID(const nsACString& aUUID, uint64_t *_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_NSIKEYEDUUIDMAPPER \
nsresult GenerateKey(nsTArray<uint8_t >& _retval); \
nsresult Init(const nsTArray<uint8_t >& aKey); \
nsresult ToUUID(uint64_t aValue, nsACString& _retval); \
nsresult FromUUID(const nsACString& aUUID, uint64_t *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIKEYEDUUIDMAPPER(_to) \
NS_IMETHOD GenerateKey(nsTArray<uint8_t >& _retval) override { return _to GenerateKey(_retval); } \
NS_IMETHOD Init(const nsTArray<uint8_t >& aKey) override { return _to Init(aKey); } \
NS_IMETHOD ToUUID(uint64_t aValue, nsACString& _retval) override { return _to ToUUID(aValue, _retval); } \
NS_IMETHOD FromUUID(const nsACString& aUUID, uint64_t *_retval) override { return _to FromUUID(aUUID, _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_NSIKEYEDUUIDMAPPER(_to) \
NS_IMETHOD GenerateKey(nsTArray<uint8_t >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateKey(_retval); } \
NS_IMETHOD Init(const nsTArray<uint8_t >& aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aKey); } \
NS_IMETHOD ToUUID(uint64_t aValue, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToUUID(aValue, _retval); } \
NS_IMETHOD FromUUID(const nsACString& aUUID, uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FromUUID(aUUID, _retval); }
#endif /* __gen_nsIKeyedUUIDMapper_h__ */