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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/calendar/base/public/calICalendarProvider.idl
 */

#ifndef __gen_calICalendarProvider_h__
#define __gen_calICalendarProvider_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* 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; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrefChromeOverlay(nsIURI **aPrefChromeOverlay) = 0;

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

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

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

  /* calICalendar getCalendar (in nsIURI aURL); */
  JS_HAZ_CAN_RUN_SCRIPT 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); } 


/* 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); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCreateCalendar(calICalendar *aCalendar, nsresult aStatus, nsIVariant *aDetail) = 0;

  /* void onDeleteCalendar (in calICalendar aCalendar, in nsresult aStatus, in nsIVariant aDetail); */
  JS_HAZ_CAN_RUN_SCRIPT 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); } 


#endif /* __gen_calICalendarProvider_h__ */