/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM flockISystemInfo.idl
 */

#ifndef __gen_flockISystemInfo_h__
#define __gen_flockISystemInfo_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:    flockISystemInfo */
#define FLOCKISYSTEMINFO_IID_STR "5c287353-7c85-4cd9-a851-3213e3f40c5c"

#define FLOCKISYSTEMINFO_IID \
  {0x5c287353, 0x7c85, 0x4cd9, \
    { 0xa8, 0x51, 0x32, 0x13, 0xe3, 0xf4, 0x0c, 0x5c }}

class NS_NO_VTABLE NS_SCRIPTABLE flockISystemInfo : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISYSTEMINFO_IID)

  /* PRInt32 getCPU (); */
  NS_SCRIPTABLE NS_IMETHOD GetCPU(PRInt32 *_retval) = 0;

  /* PRInt64 getMem (); */
  NS_SCRIPTABLE NS_IMETHOD GetMem(PRInt64 *_retval) = 0;

  /* AString getBuildInfo (); */
  NS_SCRIPTABLE NS_IMETHOD GetBuildInfo(nsAString & _retval) = 0;

  /* AString getStartTime (); */
  NS_SCRIPTABLE NS_IMETHOD GetStartTime(nsAString & _retval) = 0;

  /** On Mac, check whether the current process is the "front" process. */
  /* boolean isFrontProcess (); */
  NS_SCRIPTABLE NS_IMETHOD IsFrontProcess(PRBool *_retval) = 0;

  /** On Mac, set the Flock process as the "front" process. */
  /* void setFrontProcess (); */
  NS_SCRIPTABLE NS_IMETHOD SetFrontProcess(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockISystemInfo, FLOCKISYSTEMINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISYSTEMINFO \
  NS_SCRIPTABLE NS_IMETHOD GetCPU(PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetMem(PRInt64 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetBuildInfo(nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD GetStartTime(nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD IsFrontProcess(PRBool *_retval); \
  NS_SCRIPTABLE NS_IMETHOD SetFrontProcess(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISYSTEMINFO(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCPU(PRInt32 *_retval) { return _to GetCPU(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMem(PRInt64 *_retval) { return _to GetMem(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetBuildInfo(nsAString & _retval) { return _to GetBuildInfo(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetStartTime(nsAString & _retval) { return _to GetStartTime(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD IsFrontProcess(PRBool *_retval) { return _to IsFrontProcess(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFrontProcess(void) { return _to SetFrontProcess(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISYSTEMINFO(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetCPU(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCPU(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMem(PRInt64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMem(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetBuildInfo(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuildInfo(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetStartTime(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartTime(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD IsFrontProcess(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFrontProcess(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFrontProcess(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFrontProcess(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public flockISystemInfo
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISYSTEMINFO

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockISystemInfo)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* PRInt32 getCPU (); */
NS_IMETHODIMP _MYCLASS_::GetCPU(PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* PRInt64 getMem (); */
NS_IMETHODIMP _MYCLASS_::GetMem(PRInt64 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getBuildInfo (); */
NS_IMETHODIMP _MYCLASS_::GetBuildInfo(nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getStartTime (); */
NS_IMETHODIMP _MYCLASS_::GetStartTime(nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean isFrontProcess (); */
NS_IMETHODIMP _MYCLASS_::IsFrontProcess(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setFrontProcess (); */
NS_IMETHODIMP _MYCLASS_::SetFrontProcess()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define FLOCK_SYSTEMINFO_CID { 0x7386b0e1, 0x1a16, 0x46aa, { 0x9e, 0x8c, 0xe5, 0x11, 0x10, 0x76, 0x13, 0xeb } }
#define FLOCK_SYSTEMINFO_CLASSNAME "Flock System Info"
#define FLOCK_SYSTEMINFO_CONTRACTID "@flock.com/sysinfo;1"

#endif /* __gen_flockISystemInfo_h__ */
