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

#ifndef __gen_calITimezoneProvider_h__
#define __gen_calITimezoneProvider_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
class nsIUTF8StringEnumerator; /* forward declaration */

class calITimezone; /* forward declaration */


/* starting interface:    calITimezoneProvider */
#define CALITIMEZONEPROVIDER_IID_STR "331a7c6d-805a-4926-940b-2d78dcd90554"

#define CALITIMEZONEPROVIDER_IID \
  {0x331a7c6d, 0x805a, 0x4926, \
    { 0x94, 0x0b, 0x2d, 0x78, 0xdc, 0xd9, 0x05, 0x54 }}

class NS_NO_VTABLE calITimezoneProvider : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALITIMEZONEPROVIDER_IID)

  /* readonly attribute nsIUTF8StringEnumerator timezoneIds; */
  NS_IMETHOD GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds) = 0;

  /* readonly attribute nsIUTF8StringEnumerator aliasIds; */
  NS_IMETHOD GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds) = 0;

  /* calITimezone getTimezone (in AUTF8String tzid); */
  NS_IMETHOD GetTimezone(const nsACString & tzid, calITimezone * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calITimezoneProvider, CALITIMEZONEPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALITIMEZONEPROVIDER \
  NS_IMETHOD GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds) override; \
  NS_IMETHOD GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds) override; \
  NS_IMETHOD GetTimezone(const nsACString & tzid, calITimezone * *_retval) 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_CALITIMEZONEPROVIDER \
  NS_METHOD GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds); \
  NS_METHOD GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds); \
  NS_METHOD GetTimezone(const nsACString & tzid, calITimezone * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALITIMEZONEPROVIDER(_to) \
  NS_IMETHOD GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds) override { return _to GetTimezoneIds(aTimezoneIds); } \
  NS_IMETHOD GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds) override { return _to GetAliasIds(aAliasIds); } \
  NS_IMETHOD GetTimezone(const nsACString & tzid, calITimezone * *_retval) override { return _to GetTimezone(tzid, _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_CALITIMEZONEPROVIDER(_to) \
  NS_IMETHOD GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimezoneIds(aTimezoneIds); } \
  NS_IMETHOD GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAliasIds(aAliasIds); } \
  NS_IMETHOD GetTimezone(const nsACString & tzid, calITimezone * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimezone(tzid, _retval); } 

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

/* Header file */
class _MYCLASS_ : public calITimezoneProvider
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALITIMEZONEPROVIDER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute nsIUTF8StringEnumerator timezoneIds; */
NS_IMETHODIMP _MYCLASS_::GetTimezoneIds(nsIUTF8StringEnumerator * *aTimezoneIds)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIUTF8StringEnumerator aliasIds; */
NS_IMETHODIMP _MYCLASS_::GetAliasIds(nsIUTF8StringEnumerator * *aAliasIds)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* calITimezone getTimezone (in AUTF8String tzid); */
NS_IMETHODIMP _MYCLASS_::GetTimezone(const nsACString & tzid, calITimezone * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    calITimezoneService */
#define CALITIMEZONESERVICE_IID_STR "ab1bfe6a-ee95-4038-b594-34aeeda9911a"

#define CALITIMEZONESERVICE_IID \
  {0xab1bfe6a, 0xee95, 0x4038, \
    { 0xb5, 0x94, 0x34, 0xae, 0xed, 0xa9, 0x91, 0x1a }}

class NS_NO_VTABLE calITimezoneService : public calITimezoneProvider {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALITIMEZONESERVICE_IID)

  /* readonly attribute calITimezone floating; */
  NS_IMETHOD GetFloating(calITimezone * *aFloating) = 0;

  /* readonly attribute calITimezone UTC; */
  NS_IMETHOD GetUTC(calITimezone * *aUTC) = 0;

  /* readonly attribute AString version; */
  NS_IMETHOD GetVersion(nsAString & aVersion) = 0;

  /* readonly attribute calITimezone defaultTimezone; */
  NS_IMETHOD GetDefaultTimezone(calITimezone * *aDefaultTimezone) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calITimezoneService, CALITIMEZONESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALITIMEZONESERVICE \
  NS_IMETHOD GetFloating(calITimezone * *aFloating) override; \
  NS_IMETHOD GetUTC(calITimezone * *aUTC) override; \
  NS_IMETHOD GetVersion(nsAString & aVersion) override; \
  NS_IMETHOD GetDefaultTimezone(calITimezone * *aDefaultTimezone) 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_CALITIMEZONESERVICE \
  NS_METHOD GetFloating(calITimezone * *aFloating); \
  NS_METHOD GetUTC(calITimezone * *aUTC); \
  NS_METHOD GetVersion(nsAString & aVersion); \
  NS_METHOD GetDefaultTimezone(calITimezone * *aDefaultTimezone); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALITIMEZONESERVICE(_to) \
  NS_IMETHOD GetFloating(calITimezone * *aFloating) override { return _to GetFloating(aFloating); } \
  NS_IMETHOD GetUTC(calITimezone * *aUTC) override { return _to GetUTC(aUTC); } \
  NS_IMETHOD GetVersion(nsAString & aVersion) override { return _to GetVersion(aVersion); } \
  NS_IMETHOD GetDefaultTimezone(calITimezone * *aDefaultTimezone) override { return _to GetDefaultTimezone(aDefaultTimezone); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALITIMEZONESERVICE(_to) \
  NS_IMETHOD GetFloating(calITimezone * *aFloating) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloating(aFloating); } \
  NS_IMETHOD GetUTC(calITimezone * *aUTC) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUTC(aUTC); } \
  NS_IMETHOD GetVersion(nsAString & aVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  NS_IMETHOD GetDefaultTimezone(calITimezone * *aDefaultTimezone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultTimezone(aDefaultTimezone); } 

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

/* Header file */
class _MYCLASS_ : public calITimezoneService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALITIMEZONESERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute calITimezone floating; */
NS_IMETHODIMP _MYCLASS_::GetFloating(calITimezone * *aFloating)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute calITimezone UTC; */
NS_IMETHODIMP _MYCLASS_::GetUTC(calITimezone * *aUTC)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString version; */
NS_IMETHODIMP _MYCLASS_::GetVersion(nsAString & aVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute calITimezone defaultTimezone; */
NS_IMETHODIMP _MYCLASS_::GetDefaultTimezone(calITimezone * *aDefaultTimezone)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calITimezoneProvider_h__ */
