Your IP : 216.73.216.48
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIGamepadServiceTest.idl
*/
#ifndef __gen_nsIGamepadServiceTest_h__
#define __gen_nsIGamepadServiceTest_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 nsIVariant; /* forward declaration */
/* starting interface: nsIGamepadServiceTest */
#define NS_IGAMEPADSERVICETEST_IID_STR "c03ec4ed-8a7e-40e7-99da-c609f1760d0c"
#define NS_IGAMEPADSERVICETEST_IID \
{0xc03ec4ed, 0x8a7e, 0x40e7, \
{ 0x99, 0xda, 0xc6, 0x09, 0xf1, 0x76, 0x0d, 0x0c }}
class NS_NO_VTABLE nsIGamepadServiceTest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGAMEPADSERVICETEST_IID)
enum {
NO_MAPPING = 0U,
STANDARD_MAPPING = 1U
};
/* unsigned long addGamepad (in string id, in unsigned long mapping, in unsigned long numButtons, in unsigned long numAxes); */
NS_IMETHOD AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval) = 0;
/* void removeGamepad (in unsigned long index); */
NS_IMETHOD RemoveGamepad(uint32_t index) = 0;
/* void newButtonEvent (in unsigned long index, in unsigned long button, in boolean pressed); */
NS_IMETHOD NewButtonEvent(uint32_t index, uint32_t button, bool pressed) = 0;
/* void newButtonValueEvent (in unsigned long index, in unsigned long button, in boolean pressed, in double value); */
NS_IMETHOD NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value) = 0;
/* void newAxisMoveEvent (in unsigned long index, in unsigned long axis, in double value); */
NS_IMETHOD NewAxisMoveEvent(uint32_t index, uint32_t axis, double value) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGamepadServiceTest, NS_IGAMEPADSERVICETEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGAMEPADSERVICETEST \
NS_IMETHOD AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval) override; \
NS_IMETHOD RemoveGamepad(uint32_t index) override; \
NS_IMETHOD NewButtonEvent(uint32_t index, uint32_t button, bool pressed) override; \
NS_IMETHOD NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value) override; \
NS_IMETHOD NewAxisMoveEvent(uint32_t index, uint32_t axis, double value) 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_NSIGAMEPADSERVICETEST \
NS_METHOD AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval); \
NS_METHOD RemoveGamepad(uint32_t index); \
NS_METHOD NewButtonEvent(uint32_t index, uint32_t button, bool pressed); \
NS_METHOD NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value); \
NS_METHOD NewAxisMoveEvent(uint32_t index, uint32_t axis, double value);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGAMEPADSERVICETEST(_to) \
NS_IMETHOD AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval) override { return _to AddGamepad(id, mapping, numButtons, numAxes, _retval); } \
NS_IMETHOD RemoveGamepad(uint32_t index) override { return _to RemoveGamepad(index); } \
NS_IMETHOD NewButtonEvent(uint32_t index, uint32_t button, bool pressed) override { return _to NewButtonEvent(index, button, pressed); } \
NS_IMETHOD NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value) override { return _to NewButtonValueEvent(index, button, pressed, value); } \
NS_IMETHOD NewAxisMoveEvent(uint32_t index, uint32_t axis, double value) override { return _to NewAxisMoveEvent(index, axis, value); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGAMEPADSERVICETEST(_to) \
NS_IMETHOD AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddGamepad(id, mapping, numButtons, numAxes, _retval); } \
NS_IMETHOD RemoveGamepad(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveGamepad(index); } \
NS_IMETHOD NewButtonEvent(uint32_t index, uint32_t button, bool pressed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewButtonEvent(index, button, pressed); } \
NS_IMETHOD NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewButtonValueEvent(index, button, pressed, value); } \
NS_IMETHOD NewAxisMoveEvent(uint32_t index, uint32_t axis, double value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewAxisMoveEvent(index, axis, value); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsGamepadServiceTest : public nsIGamepadServiceTest
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIGAMEPADSERVICETEST
nsGamepadServiceTest();
private:
~nsGamepadServiceTest();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsGamepadServiceTest, nsIGamepadServiceTest)
nsGamepadServiceTest::nsGamepadServiceTest()
{
/* member initializers and constructor code */
}
nsGamepadServiceTest::~nsGamepadServiceTest()
{
/* destructor code */
}
/* unsigned long addGamepad (in string id, in unsigned long mapping, in unsigned long numButtons, in unsigned long numAxes); */
NS_IMETHODIMP nsGamepadServiceTest::AddGamepad(const char * id, uint32_t mapping, uint32_t numButtons, uint32_t numAxes, uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeGamepad (in unsigned long index); */
NS_IMETHODIMP nsGamepadServiceTest::RemoveGamepad(uint32_t index)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void newButtonEvent (in unsigned long index, in unsigned long button, in boolean pressed); */
NS_IMETHODIMP nsGamepadServiceTest::NewButtonEvent(uint32_t index, uint32_t button, bool pressed)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void newButtonValueEvent (in unsigned long index, in unsigned long button, in boolean pressed, in double value); */
NS_IMETHODIMP nsGamepadServiceTest::NewButtonValueEvent(uint32_t index, uint32_t button, bool pressed, double value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void newAxisMoveEvent (in unsigned long index, in unsigned long axis, in double value); */
NS_IMETHODIMP nsGamepadServiceTest::NewAxisMoveEvent(uint32_t index, uint32_t axis, double value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIGamepadServiceTest_h__ */