This source file includes following definitions.
- NS_IMPL_ISUPPORTS1
- Pause
- Play
- Stop
- Update
- QualitySwitch
- SetURL
#ifndef __gen_nsIOsmozilla_h__
#define __gen_nsIOsmozilla_h__
#include "osmo_npapi.h"
#ifdef GECKO_XPCOM
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#define NS_IOSMOZILLA_IID_STR "d2d536a0-b6fc-11d5-9d10-0060b0fbd80b"
#define NS_IOSMOZILLA_IID \
{0xd2d536a0, 0xb6fc, 0x11d5, \
{ 0x9d, 0x10, 0x00, 0x60, 0xb0, 0xfb, 0xd8, 0x0b }}
class NS_NO_VTABLE nsIOsmozilla : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IOSMOZILLA_IID)
NS_IMETHOD Pause(void) = 0;
NS_IMETHOD Play(void) = 0;
NS_IMETHOD Stop(void) = 0;
NS_IMETHOD Update(const char *type, const char *commands) = 0;
NS_IMETHOD QualitySwitch(int switch_up) = 0;
NS_IMETHOD SetURL(const char *url) = 0;
};
#define NS_DECL_NSIOSMOZILLA \
NS_IMETHOD Pause(void); \
NS_IMETHOD Play(void); \
NS_IMETHOD Stop(void); \
NS_IMETHOD Update(const char *type, const char *commands); \
NS_IMETHOD QualitySwitch(int switch_up); \
NS_IMETHOD SetURL(const char *type);
#define NS_FORWARD_NSIOSMOZILLA(_to) \
NS_IMETHOD Pause(void) { return _to Pause(); } \
NS_IMETHOD Play(void) { return _to Play(); } \
NS_IMETHOD Stop(void) { return _to Stop(); } \
NS_IMETHOD Update(const char *type, const char *commands) { return _to Update(type, commands); } \
NS_IMETHOD QualitySwitch(int switch_up) { return _to QualitySwitch( switch_up ); } \
NS_IMETHOD SetURL(const char *url) { return _to SetURL(url); }
#define NS_FORWARD_SAFE_NSIOSMOZILLA(_to) \
NS_IMETHOD Pause(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Pause(); } \
NS_IMETHOD Play(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Play(); } \
NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
NS_IMETHOD Update(const char *type, const char *commands) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(type, commands); } \
NS_IMETHOD QualitySwitch(int switch_up) { return !_to ? NS_ERROR_NULL_POINTER : _to->QualitySwitch(switch_up); } \
NS_IMETHOD SetURL(const char *url) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(url); } \
#if 0
class nsOsmozilla : public nsIOsmozilla
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOSMOZILLA
nsOsmozilla();
virtual ~nsOsmozilla();
};
NS_IMPL_ISUPPORTS1(nsOsmozilla, nsIOsmozilla)
nsOsmozilla::nsOsmozilla()
{
}
nsOsmozilla::~nsOsmozilla()
{
}
NS_IMETHODIMP nsOsmozilla::Pause()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOsmozilla::Play()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOsmozilla::Stop()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOsmozilla::Update(const char *type, const char *commands)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOsmozilla::QualitySwitch(int switch_up)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsOsmozilla::SetURL(const char *type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
#endif
#endif
#endif