All pastes #1223879 Raw Edit

dbusReceiver.h

public cpp v1 · immutable
#1223879 ·published 2008-10-09 17:54 UTC
rendered paste body
/* * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jason/dev/FF/src/extensions/nmautologin/public/dbusReceiver.idl */#ifndef __gen_dbusReceiver_h__#define __gen_dbusReceiver_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/* starting interface:    dbusReceiver */#define DBUSRECEIVER_IID_STR "bb875df3-8150-4df1-8ea7-8752235a2ee4"#define DBUSRECEIVER_IID \  {0xbb875df3, 0x8150, 0x4df1, \    { 0x8e, 0xa7, 0x87, 0x52, 0x23, 0x5a, 0x2e, 0xe4 }}class NS_NO_VTABLE NS_SCRIPTABLE dbusReceiver : public nsISupports { public:   NS_DECLARE_STATIC_IID_ACCESSOR(DBUSRECEIVER_IID)  /* boolean connect (); */  NS_SCRIPTABLE NS_IMETHOD Connect(PRBool *_retval NS_OUTPARAM) = 0;  /* boolean getSignal (in ACString name, out ACString message); */  NS_SCRIPTABLE NS_IMETHOD GetSignal(const nsACString & name, nsACString & message NS_OUTPARAM, PRBool *_retval NS_OUTPARAM) = 0;};  NS_DEFINE_STATIC_IID_ACCESSOR(dbusReceiver, DBUSRECEIVER_IID)/* Use this macro when declaring classes that implement this interface. */#define NS_DECL_DBUSRECEIVER \  NS_SCRIPTABLE NS_IMETHOD Connect(PRBool *_retval NS_OUTPARAM); \  NS_SCRIPTABLE NS_IMETHOD GetSignal(const nsACString & name, nsACString & message NS_OUTPARAM, PRBool *_retval NS_OUTPARAM); /* Use this macro to declare functions that forward the behavior of this interface to another object. */#define NS_FORWARD_DBUSRECEIVER(_to) \  NS_SCRIPTABLE NS_IMETHOD Connect(PRBool *_retval NS_OUTPARAM) { return _to Connect(_retval); } \  NS_SCRIPTABLE NS_IMETHOD GetSignal(const nsACString & name, nsACString & message NS_OUTPARAM, PRBool *_retval NS_OUTPARAM) { return _to GetSignal(name, message, _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_DBUSRECEIVER(_to) \  NS_SCRIPTABLE NS_IMETHOD Connect(PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(_retval); } \  NS_SCRIPTABLE NS_IMETHOD GetSignal(const nsACString & name, nsACString & message NS_OUTPARAM, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignal(name, message, _retval); } #if 0/* Use the code below as a template for the implementation class for this interface. *//* Header file */class _MYCLASS_ : public dbusReceiver{public:  NS_DECL_ISUPPORTS  NS_DECL_DBUSRECEIVER  _MYCLASS_();private:  ~_MYCLASS_();protected:  /* additional members */};/* Implementation file */NS_IMPL_ISUPPORTS1(_MYCLASS_, dbusReceiver)_MYCLASS_::_MYCLASS_(){  /* member initializers and constructor code */}_MYCLASS_::~_MYCLASS_(){  /* destructor code */}/* boolean connect (); */NS_IMETHODIMP _MYCLASS_::Connect(PRBool *_retval NS_OUTPARAM){    return NS_ERROR_NOT_IMPLEMENTED;}/* boolean getSignal (in ACString name, out ACString message); */NS_IMETHODIMP _MYCLASS_::GetSignal(const nsACString & name, nsACString & message NS_OUTPARAM, PRBool *_retval NS_OUTPARAM){    return NS_ERROR_NOT_IMPLEMENTED;}/* End of implementation class template. */#endif#endif /* __gen_dbusReceiver_h__ */