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

#ifndef __gen_calIOperation_h__
#define __gen_calIOperation_h__


#ifndef __gen_nsIVariant_h__
#include "nsIVariant.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:    calIOperation */
#define CALIOPERATION_IID_STR "b96c2997-7aaa-4619-ad48-b7ebd9236c93"

#define CALIOPERATION_IID \
  {0xb96c2997, 0x7aaa, 0x4619, \
    { 0xad, 0x48, 0xb7, 0xeb, 0xd9, 0x23, 0x6c, 0x93 }}

class NS_NO_VTABLE calIOperation : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIOPERATION_IID)

  /* readonly attribute AUTF8String id; */
  NS_IMETHOD GetId(nsACString & aId) = 0;

  /* readonly attribute boolean isPending; */
  NS_IMETHOD GetIsPending(bool *aIsPending) = 0;

  /* readonly attribute nsIVariant status; */
  NS_IMETHOD GetStatus(nsIVariant * *aStatus) = 0;

  /* void cancel ([optional] in nsIVariant aStatus); */
  NS_IMETHOD Cancel(nsIVariant *aStatus) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIOperation, CALIOPERATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIOPERATION \
  NS_IMETHOD GetId(nsACString & aId) override; \
  NS_IMETHOD GetIsPending(bool *aIsPending) override; \
  NS_IMETHOD GetStatus(nsIVariant * *aStatus) override; \
  NS_IMETHOD Cancel(nsIVariant *aStatus) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_CALIOPERATION \
  NS_METHOD GetId(nsACString & aId); \
  NS_METHOD GetIsPending(bool *aIsPending); \
  NS_METHOD GetStatus(nsIVariant * *aStatus); \
  NS_METHOD Cancel(nsIVariant *aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIOPERATION(_to) \
  NS_IMETHOD GetId(nsACString & aId) override { return _to GetId(aId); } \
  NS_IMETHOD GetIsPending(bool *aIsPending) override { return _to GetIsPending(aIsPending); } \
  NS_IMETHOD GetStatus(nsIVariant * *aStatus) override { return _to GetStatus(aStatus); } \
  NS_IMETHOD Cancel(nsIVariant *aStatus) override { return _to Cancel(aStatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIOPERATION(_to) \
  NS_IMETHOD GetId(nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD GetIsPending(bool *aIsPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPending(aIsPending); } \
  NS_IMETHOD GetStatus(nsIVariant * *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
  NS_IMETHOD Cancel(nsIVariant *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } 

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

/* Header file */
class _MYCLASS_ : public calIOperation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIOPERATION

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIOperation)

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

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

/* readonly attribute AUTF8String id; */
NS_IMETHODIMP _MYCLASS_::GetId(nsACString & aId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isPending; */
NS_IMETHODIMP _MYCLASS_::GetIsPending(bool *aIsPending)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIVariant status; */
NS_IMETHODIMP _MYCLASS_::GetStatus(nsIVariant * *aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cancel ([optional] in nsIVariant aStatus); */
NS_IMETHODIMP _MYCLASS_::Cancel(nsIVariant *aStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    calIGenericOperationListener */
#define CALIGENERICOPERATIONLISTENER_IID_STR "1fa39726-63d2-440c-a464-296d2822b9da"

#define CALIGENERICOPERATIONLISTENER_IID \
  {0x1fa39726, 0x63d2, 0x440c, \
    { 0xa4, 0x64, 0x29, 0x6d, 0x28, 0x22, 0xb9, 0xda }}

class NS_NO_VTABLE calIGenericOperationListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIGENERICOPERATIONLISTENER_IID)

  /* void onResult (in calIOperation aOperation, in nsIVariant aResult); */
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIGenericOperationListener, CALIGENERICOPERATIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIGENERICOPERATIONLISTENER \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_CALIGENERICOPERATIONLISTENER \
  NS_METHOD OnResult(calIOperation *aOperation, nsIVariant *aResult); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIGENERICOPERATIONLISTENER(_to) \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) override { return _to OnResult(aOperation, aResult); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIGENERICOPERATIONLISTENER(_to) \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResult(aOperation, aResult); } 

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

/* Header file */
class _MYCLASS_ : public calIGenericOperationListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIGENERICOPERATIONLISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIGenericOperationListener)

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

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

/* void onResult (in calIOperation aOperation, in nsIVariant aResult); */
NS_IMETHODIMP _MYCLASS_::OnResult(calIOperation *aOperation, nsIVariant *aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIOperation_h__ */
