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

#ifndef __gen_calITimezone_h__
#define __gen_calITimezone_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 calIIcalComponent; /* forward declaration */

class calITimezoneProvider; /* forward declaration */


/* starting interface:    calITimezone */
#define CALITIMEZONE_IID_STR "d79161e7-0db9-427d-a0c3-27e0db3b030f"

#define CALITIMEZONE_IID \
  {0xd79161e7, 0x0db9, 0x427d, \
    { 0xa0, 0xc3, 0x27, 0xe0, 0xdb, 0x3b, 0x03, 0x0f }}

class NS_NO_VTABLE calITimezone : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(CALITIMEZONE_IID)

  /**
     * The timezone provider this timezone belongs to, if any.
     */
  /* readonly attribute calITimezoneProvider provider; */
  NS_IMETHOD GetProvider(calITimezoneProvider * *aProvider) = 0;

  /**
     * VTIMEZONE ical component, null if floating or UTC.
     */
  /* readonly attribute calIIcalComponent icalComponent; */
  NS_IMETHOD GetIcalComponent(calIIcalComponent * *aIcalComponent) = 0;

  /**
     * The TZID of this timezone.
     */
  /* readonly attribute AUTF8String tzid; */
  NS_IMETHOD GetTzid(nsACString & aTzid) = 0;

  /**
     * Whether this timezone is the "floating" timezone.
     */
  /* readonly attribute boolean isFloating; */
  NS_IMETHOD GetIsFloating(PRBool *aIsFloating) = 0;

  /**
     * Whether this is the "UTC" timezone.
     */
  /* readonly attribute boolean isUTC; */
  NS_IMETHOD GetIsUTC(PRBool *aIsUTC) = 0;

  /**
     * Latitude of timezone or void/null if unknown.
     */
  /* readonly attribute AUTF8String latitude; */
  NS_IMETHOD GetLatitude(nsACString & aLatitude) = 0;

  /**
     * Longitude of timezone or void/null if unknown.
     */
  /* readonly attribute AUTF8String longitude; */
  NS_IMETHOD GetLongitude(nsACString & aLongitude) = 0;

  /**
     * Localized name of the timezone or void/null if unknown.
     */
  /* readonly attribute AString displayName; */
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) = 0;

  /**
     * For debugging purposes.
     *
     * @return "UTC", "floating" or component's ical representation
     */
  /* AUTF8String toString (); */
  NS_IMETHOD ToString(nsACString & _retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALITIMEZONE \
  NS_IMETHOD GetProvider(calITimezoneProvider * *aProvider); \
  NS_IMETHOD GetIcalComponent(calIIcalComponent * *aIcalComponent); \
  NS_IMETHOD GetTzid(nsACString & aTzid); \
  NS_IMETHOD GetIsFloating(PRBool *aIsFloating); \
  NS_IMETHOD GetIsUTC(PRBool *aIsUTC); \
  NS_IMETHOD GetLatitude(nsACString & aLatitude); \
  NS_IMETHOD GetLongitude(nsACString & aLongitude); \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName); \
  NS_IMETHOD ToString(nsACString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALITIMEZONE(_to) \
  NS_IMETHOD GetProvider(calITimezoneProvider * *aProvider) { return _to GetProvider(aProvider); } \
  NS_IMETHOD GetIcalComponent(calIIcalComponent * *aIcalComponent) { return _to GetIcalComponent(aIcalComponent); } \
  NS_IMETHOD GetTzid(nsACString & aTzid) { return _to GetTzid(aTzid); } \
  NS_IMETHOD GetIsFloating(PRBool *aIsFloating) { return _to GetIsFloating(aIsFloating); } \
  NS_IMETHOD GetIsUTC(PRBool *aIsUTC) { return _to GetIsUTC(aIsUTC); } \
  NS_IMETHOD GetLatitude(nsACString & aLatitude) { return _to GetLatitude(aLatitude); } \
  NS_IMETHOD GetLongitude(nsACString & aLongitude) { return _to GetLongitude(aLongitude); } \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD ToString(nsACString & _retval) { return _to ToString(_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_CALITIMEZONE(_to) \
  NS_IMETHOD GetProvider(calITimezoneProvider * *aProvider) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProvider(aProvider); } \
  NS_IMETHOD GetIcalComponent(calIIcalComponent * *aIcalComponent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcalComponent(aIcalComponent); } \
  NS_IMETHOD GetTzid(nsACString & aTzid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTzid(aTzid); } \
  NS_IMETHOD GetIsFloating(PRBool *aIsFloating) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFloating(aIsFloating); } \
  NS_IMETHOD GetIsUTC(PRBool *aIsUTC) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsUTC(aIsUTC); } \
  NS_IMETHOD GetLatitude(nsACString & aLatitude) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLatitude(aLatitude); } \
  NS_IMETHOD GetLongitude(nsACString & aLongitude) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongitude(aLongitude); } \
  NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD ToString(nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 

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

/* Header file */
class _MYCLASS_ : public calITimezone
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALITIMEZONE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute calITimezoneProvider provider; */
NS_IMETHODIMP _MYCLASS_::GetProvider(calITimezoneProvider * *aProvider)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute calIIcalComponent icalComponent; */
NS_IMETHODIMP _MYCLASS_::GetIcalComponent(calIIcalComponent * *aIcalComponent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String tzid; */
NS_IMETHODIMP _MYCLASS_::GetTzid(nsACString & aTzid)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isFloating; */
NS_IMETHODIMP _MYCLASS_::GetIsFloating(PRBool *aIsFloating)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isUTC; */
NS_IMETHODIMP _MYCLASS_::GetIsUTC(PRBool *aIsUTC)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String latitude; */
NS_IMETHODIMP _MYCLASS_::GetLatitude(nsACString & aLatitude)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String longitude; */
NS_IMETHODIMP _MYCLASS_::GetLongitude(nsACString & aLongitude)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString displayName; */
NS_IMETHODIMP _MYCLASS_::GetDisplayName(nsAString & aDisplayName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String toString (); */
NS_IMETHODIMP _MYCLASS_::ToString(nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calITimezone_h__ */
