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

#ifndef __gen_IMole_h__
#define __gen_IMole_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:    IMole */
#define IMOLE_IID_STR "eeae0a51-59a8-4d4d-81bc-dd3bb3fc1264"

#define IMOLE_IID \
  {0xeeae0a51, 0x59a8, 0x4d4d, \
    { 0x81, 0xbc, 0xdd, 0x3b, 0xb3, 0xfc, 0x12, 0x64 }}

class NS_NO_VTABLE IMole : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(IMOLE_IID)

  /* boolean init (in string ip, in string path, in long port); */
  NS_IMETHOD Init(const char *ip, const char *path, PRInt32 port, PRBool *_retval) = 0;

  /* string hello (in string entry); */
  NS_IMETHOD Hello(const char *entry, char **_retval) = 0;

  /* string connect (in string login, in string ip, in long port); */
  NS_IMETHOD Connect(const char *login, const char *ip, PRInt32 port, char **_retval) = 0;

  /* string joinChannel (in string chan); */
  NS_IMETHOD JoinChannel(const char *chan, char **_retval) = 0;

  /* void listChannels (out PRUint32 count, [array, size_is (count), retval] out string str); */
  NS_IMETHOD ListChannels(PRUint32 *count, char ***str) = 0;

  /* void listChannelUsers (in string chan, out PRUint32 count, [array, size_is (count), retval] out string str); */
  NS_IMETHOD ListChannelUsers(const char *chan, PRUint32 *count, char ***str) = 0;

  /* string getHomepage (in string ip, in PRUint32 port); */
  NS_IMETHOD GetHomepage(const char *ip, PRUint32 port, char **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMOLE \
  NS_IMETHOD Init(const char *ip, const char *path, PRInt32 port, PRBool *_retval); \
  NS_IMETHOD Hello(const char *entry, char **_retval); \
  NS_IMETHOD Connect(const char *login, const char *ip, PRInt32 port, char **_retval); \
  NS_IMETHOD JoinChannel(const char *chan, char **_retval); \
  NS_IMETHOD ListChannels(PRUint32 *count, char ***str); \
  NS_IMETHOD ListChannelUsers(const char *chan, PRUint32 *count, char ***str); \
  NS_IMETHOD GetHomepage(const char *ip, PRUint32 port, char **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMOLE(_to) \
  NS_IMETHOD Init(const char *ip, const char *path, PRInt32 port, PRBool *_retval) { return _to Init(ip, path, port, _retval); } \
  NS_IMETHOD Hello(const char *entry, char **_retval) { return _to Hello(entry, _retval); } \
  NS_IMETHOD Connect(const char *login, const char *ip, PRInt32 port, char **_retval) { return _to Connect(login, ip, port, _retval); } \
  NS_IMETHOD JoinChannel(const char *chan, char **_retval) { return _to JoinChannel(chan, _retval); } \
  NS_IMETHOD ListChannels(PRUint32 *count, char ***str) { return _to ListChannels(count, str); } \
  NS_IMETHOD ListChannelUsers(const char *chan, PRUint32 *count, char ***str) { return _to ListChannelUsers(chan, count, str); } \
  NS_IMETHOD GetHomepage(const char *ip, PRUint32 port, char **_retval) { return _to GetHomepage(ip, port, _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_IMOLE(_to) \
  NS_IMETHOD Init(const char *ip, const char *path, PRInt32 port, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(ip, path, port, _retval); } \
  NS_IMETHOD Hello(const char *entry, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Hello(entry, _retval); } \
  NS_IMETHOD Connect(const char *login, const char *ip, PRInt32 port, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(login, ip, port, _retval); } \
  NS_IMETHOD JoinChannel(const char *chan, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->JoinChannel(chan, _retval); } \
  NS_IMETHOD ListChannels(PRUint32 *count, char ***str) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListChannels(count, str); } \
  NS_IMETHOD ListChannelUsers(const char *chan, PRUint32 *count, char ***str) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListChannelUsers(chan, count, str); } \
  NS_IMETHOD GetHomepage(const char *ip, PRUint32 port, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHomepage(ip, port, _retval); } 

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

/* Header file */
class _MYCLASS_ : public IMole
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMOLE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* boolean init (in string ip, in string path, in long port); */
NS_IMETHODIMP _MYCLASS_::Init(const char *ip, const char *path, PRInt32 port, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string hello (in string entry); */
NS_IMETHODIMP _MYCLASS_::Hello(const char *entry, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string connect (in string login, in string ip, in long port); */
NS_IMETHODIMP _MYCLASS_::Connect(const char *login, const char *ip, PRInt32 port, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string joinChannel (in string chan); */
NS_IMETHODIMP _MYCLASS_::JoinChannel(const char *chan, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void listChannels (out PRUint32 count, [array, size_is (count), retval] out string str); */
NS_IMETHODIMP _MYCLASS_::ListChannels(PRUint32 *count, char ***str)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void listChannelUsers (in string chan, out PRUint32 count, [array, size_is (count), retval] out string str); */
NS_IMETHODIMP _MYCLASS_::ListChannelUsers(const char *chan, PRUint32 *count, char ***str)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string getHomepage (in string ip, in PRUint32 port); */
NS_IMETHODIMP _MYCLASS_::GetHomepage(const char *ip, PRUint32 port, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_IMole_h__ */
