⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moz0811ex.txt

📁 mozilla developer book examples.
💻 TXT
字号:
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISimple.idl
 */
#ifndef _ _gen_nsISimple_h_ _
#define _ _gen_nsISimple_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:    nsISimple */
#define NS_ISIMPLE_IID_STR "ce32e3ff-36f8-425f-94be-d85b26e634ee"
#define NS_ISIMPLE_IID \
  {0xce32e3ff, 0x36f8, 0x425f, \
    { 0x94, 0xbe, 0xd8, 0x5b, 0x26, 0xe6, 0x34, 0xee }}
class NS_NO_VTABLE nsISimple : public nsISupports {
 public:
  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISIMPLE_IID)
  /* attribute string yourName; */
  NS_IMETHOD GetYourName(char * *aYourName) = 0;
  NS_IMETHOD SetYourName(const char * aYourName) = 0;
  /* void write ( ); */
  NS_IMETHOD Write(void) = 0;
  /* void change (in string aName); */
  NS_IMETHOD Change(const char *aName) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISIMPLE \
  NS_IMETHOD GetYourName(char * *aYourName); \
  NS_IMETHOD SetYourName(const char * aYourName); \
  NS_IMETHOD Write(void); \
  NS_IMETHOD Change(const char *aName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISIMPLE(_to) \
  NS_IMETHOD GetYourName(char * *aYourName) { return _to ## GetYourName(aYourName); } \
  NS_IMETHOD SetYourName(const char * aYourName) { return _to ## SetYourName(aYourName); } \
  NS_IMETHOD Write(void) { return _to ## Write( ); } \
  NS_IMETHOD Change(const char *aName) { return _to ## Change(aName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISIMPLE(_to) \
  NS_IMETHOD GetYourName(char * *aYourName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetYourName(aYourName); } \
  NS_IMETHOD SetYourName(const char * aYourName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetYourName(aYourName); } \
  NS_IMETHOD Write(void) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Write( ); } \
  NS_IMETHOD Change(const char *aName) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Change(aName); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSimple : public nsISimple
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISIMPLE
  nsSimple( );
  virtual ~nsSimple( );
  /* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSimple, nsISimple)
nsSimple::nsSimple( )
{
  NS_INIT_ISUPPORTS( );
  /* member initializers and constructor code */
}
nsSimple::~nsSimple( )
{
  /* destructor code */
}
/* attribute string yourName; */
NS_IMETHODIMP nsSimple::GetYourName(char * *aYourName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSimple::SetYourName(const char * aYourName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write ( ); */
NS_IMETHODIMP nsSimple::Write( )
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
/* void change (in string aName); */
NS_IMETHODIMP nsSimple::Change(const char *aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* _ _gen_nsISimple_h_ _ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -