DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/calICalendarProvider.idl
 */

#ifndef __gen_calICalendarProvider_h__
#define __gen_calICalendarProvider_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 nsIURI; /* forward declaration */

class calICalendar; /* forward declaration */

class nsIVariant; /* forward declaration */

class calIProviderListener; /* forward declaration */


/* starting interface:    calICalendarProvider */
#define CALICALENDARPROVIDER_IID_STR "30e22db4-9f13-11d9-80d6-000b7d081f44"

#define CALICALENDARPROVIDER_IID \
  {0x30e22db4, 0x9f13, 0x11d9, \
    { 0x80, 0xd6, 0x00, 0x0b, 0x7d, 0x08, 0x1f, 0x44 }}

class NS_NO_VTABLE calICalendarProvider : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALICALENDARPROVIDER_IID)

  /* readonly attribute nsIURI prefChromeOverlay; */
  NS_IMETHOD GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay) = 0;

  /* readonly attribute AUTF8String displayName; */
  NS_IMETHOD GetDisplayName(nsACString & aDisplayName) = 0;

  /* void createCalendar (in AUTF8String aName, in nsIURI aURL, in calIProviderListener aListener); */
  NS_IMETHOD CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener) = 0;

  /* void deleteCalendar (in calICalendar aCalendar, in calIProviderListener aListener); */
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener) = 0;

  /* calICalendar getCalendar (in nsIURI aURL); */
  NS_IMETHOD GetCalendar(nsIURI *aURL, calICalendar * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calICalendarProvider, CALICALENDARPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICALENDARPROVIDER \
  NS_IMETHOD GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay) override; \
  NS_IMETHOD GetDisplayName(nsACString & aDisplayName) override; \
  NS_IMETHOD CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener) override; \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener) override; \
  NS_IMETHOD GetCalendar(nsIURI *aURL, calICalendar * *_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_CALICALENDARPROVIDER \
  nsresult GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay); \
  nsresult GetDisplayName(nsACString & aDisplayName); \
  nsresult CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener); \
  nsresult DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener); \
  nsresult GetCalendar(nsIURI *aURL, calICalendar * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICALENDARPROVIDER(_to) \
  NS_IMETHOD GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay) override { return _to GetPrefChromeOverlay(aPrefChromeOverlay); } \
  NS_IMETHOD GetDisplayName(nsACString & aDisplayName) override { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener) override { return _to CreateCalendar(aName, aURL, aListener); } \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener) override { return _to DeleteCalendar(aCalendar, aListener); } \
  NS_IMETHOD GetCalendar(nsIURI *aURL, calICalendar * *_retval) override { return _to GetCalendar(aURL, _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_CALICALENDARPROVIDER(_to) \
  NS_IMETHOD GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefChromeOverlay(aPrefChromeOverlay); } \
  NS_IMETHOD GetDisplayName(nsACString & aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCalendar(aName, aURL, aListener); } \
  NS_IMETHOD DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCalendar(aCalendar, aListener); } \
  NS_IMETHOD GetCalendar(nsIURI *aURL, calICalendar * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalendar(aURL, _retval); } 

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

/* Header file */
class _MYCLASS_ : public calICalendarProvider
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALICALENDARPROVIDER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* readonly attribute nsIURI prefChromeOverlay; */
NS_IMETHODIMP _MYCLASS_::GetPrefChromeOverlay(nsIURI * *aPrefChromeOverlay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* void createCalendar (in AUTF8String aName, in nsIURI aURL, in calIProviderListener aListener); */
NS_IMETHODIMP _MYCLASS_::CreateCalendar(const nsACString & aName, nsIURI *aURL, calIProviderListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteCalendar (in calICalendar aCalendar, in calIProviderListener aListener); */
NS_IMETHODIMP _MYCLASS_::DeleteCalendar(calICalendar *aCalendar, calIProviderListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* calICalendar getCalendar (in nsIURI aURL); */
NS_IMETHODIMP _MYCLASS_::GetCalendar(nsIURI *aURL, calICalendar * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    calIProviderListener */
#define CALIPROVIDERLISTENER_IID_STR "0eebe99e-a22d-11d9-87a6-000b7d081f44"

#define CALIPROVIDERLISTENER_IID \
  {0x0eebe99e, 0xa22d, 0x11d9, \
    { 0x87, 0xa6, 0x00, 0x0b, 0x7d, 0x08, 0x1f, 0x44 }}

class NS_NO_VTABLE calIProviderListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIPROVIDERLISTENER_IID)

  /* void onCreateCalendar (in calICalendar aCalendar, in nsresult aStatus, in nsIVariant aDetail); */
  NS_IMETHOD OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) = 0;

  /* void onDeleteCalendar (in calICalendar aCalendar, in nsresult aStatus, in nsIVariant aDetail); */
  NS_IMETHOD OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIProviderListener, CALIPROVIDERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIPROVIDERLISTENER \
  NS_IMETHOD OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) override; \
  NS_IMETHOD OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) 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_CALIPROVIDERLISTENER \
  nsresult OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail); \
  nsresult OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIPROVIDERLISTENER(_to) \
  NS_IMETHOD OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) override { return _to OnCreateCalendar(aCalendar, aStatus, aDetail); } \
  NS_IMETHOD OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) override { return _to OnDeleteCalendar(aCalendar, aStatus, aDetail); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIPROVIDERLISTENER(_to) \
  NS_IMETHOD OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCreateCalendar(aCalendar, aStatus, aDetail); } \
  NS_IMETHOD OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteCalendar(aCalendar, aStatus, aDetail); } 

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

/* Header file */
class _MYCLASS_ : public calIProviderListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIPROVIDERLISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onCreateCalendar (in calICalendar aCalendar, in nsresult aStatus, in nsIVariant aDetail); */
NS_IMETHODIMP _MYCLASS_::OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDeleteCalendar (in calICalendar aCalendar, in nsresult aStatus, in nsIVariant aDetail); */
NS_IMETHODIMP _MYCLASS_::OnDeleteCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calICalendarProvider_h__ */