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

#ifndef __gen_calIFreeBusyProvider_h__
#define __gen_calIFreeBusyProvider_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 calIDateTime; /* forward declaration */

class calIPeriod; /* forward declaration */

class calIOperation; /* forward declaration */

class calIGenericOperationListener; /* forward declaration */


/* starting interface:    calIFreeBusyProvider */
#define CALIFREEBUSYPROVIDER_IID_STR "eb24424c-dd22-4306-9379-fa098c61f5af"

#define CALIFREEBUSYPROVIDER_IID \
  {0xeb24424c, 0xdd22, 0x4306, \
    { 0x93, 0x79, 0xfa, 0x09, 0x8c, 0x61, 0xf5, 0xaf }}

class NS_NO_VTABLE calIFreeBusyProvider : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIFREEBUSYPROVIDER_IID)

  /* calIOperation getFreeBusyIntervals (in AUTF8String aCalId, in calIDateTime aRangeStart, in calIDateTime aRangeEnd, in unsigned long aBusyTypes, in calIGenericOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFreeBusyIntervals(const nsACString& aCalId, calIDateTime *aRangeStart, calIDateTime *aRangeEnd, uint32_t aBusyTypes, calIGenericOperationListener *aListener, calIOperation **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIFreeBusyProvider, CALIFREEBUSYPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIFREEBUSYPROVIDER \
  NS_IMETHOD GetFreeBusyIntervals(const nsACString& aCalId, calIDateTime *aRangeStart, calIDateTime *aRangeEnd, uint32_t aBusyTypes, calIGenericOperationListener *aListener, calIOperation **_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_CALIFREEBUSYPROVIDER \
  nsresult GetFreeBusyIntervals(const nsACString& aCalId, calIDateTime *aRangeStart, calIDateTime *aRangeEnd, uint32_t aBusyTypes, calIGenericOperationListener *aListener, calIOperation **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIFREEBUSYPROVIDER(_to) \
  NS_IMETHOD GetFreeBusyIntervals(const nsACString& aCalId, calIDateTime *aRangeStart, calIDateTime *aRangeEnd, uint32_t aBusyTypes, calIGenericOperationListener *aListener, calIOperation **_retval) override { return _to GetFreeBusyIntervals(aCalId, aRangeStart, aRangeEnd, aBusyTypes, aListener, _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_CALIFREEBUSYPROVIDER(_to) \
  NS_IMETHOD GetFreeBusyIntervals(const nsACString& aCalId, calIDateTime *aRangeStart, calIDateTime *aRangeEnd, uint32_t aBusyTypes, calIGenericOperationListener *aListener, calIOperation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFreeBusyIntervals(aCalId, aRangeStart, aRangeEnd, aBusyTypes, aListener, _retval); } 


/* starting interface:    calIFreeBusyInterval */
#define CALIFREEBUSYINTERVAL_IID_STR "ccbeaf5e-db87-4bc9-8bb7-24754b76bcb5"

#define CALIFREEBUSYINTERVAL_IID \
  {0xccbeaf5e, 0xdb87, 0x4bc9, \
    { 0x8b, 0xb7, 0x24, 0x75, 0x4b, 0x76, 0xbc, 0xb5 }}

class NS_NO_VTABLE calIFreeBusyInterval : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIFREEBUSYINTERVAL_IID)

  /* readonly attribute AUTF8String calId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCalId(nsACString& aCalId) = 0;

  /* readonly attribute calIPeriod interval; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInterval(calIPeriod **aInterval) = 0;

  enum {
    UNKNOWN = 0U,
    FREE = 1U,
    BUSY = 2U,
    BUSY_UNAVAILABLE = 4U,
    BUSY_TENTATIVE = 8U,
    BUSY_ALL = 14U
  };

  /* readonly attribute unsigned long freeBusyType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFreeBusyType(uint32_t *aFreeBusyType) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIFreeBusyInterval, CALIFREEBUSYINTERVAL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIFREEBUSYINTERVAL \
  NS_IMETHOD GetCalId(nsACString& aCalId) override; \
  NS_IMETHOD GetInterval(calIPeriod **aInterval) override; \
  NS_IMETHOD GetFreeBusyType(uint32_t *aFreeBusyType) 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_CALIFREEBUSYINTERVAL \
  nsresult GetCalId(nsACString& aCalId); \
  nsresult GetInterval(calIPeriod **aInterval); \
  nsresult GetFreeBusyType(uint32_t *aFreeBusyType); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIFREEBUSYINTERVAL(_to) \
  NS_IMETHOD GetCalId(nsACString& aCalId) override { return _to GetCalId(aCalId); } \
  NS_IMETHOD GetInterval(calIPeriod **aInterval) override { return _to GetInterval(aInterval); } \
  NS_IMETHOD GetFreeBusyType(uint32_t *aFreeBusyType) override { return _to GetFreeBusyType(aFreeBusyType); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIFREEBUSYINTERVAL(_to) \
  NS_IMETHOD GetCalId(nsACString& aCalId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCalId(aCalId); } \
  NS_IMETHOD GetInterval(calIPeriod **aInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterval(aInterval); } \
  NS_IMETHOD GetFreeBusyType(uint32_t *aFreeBusyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFreeBusyType(aFreeBusyType); } 


/* starting interface:    calIFreeBusyService */
#define CALIFREEBUSYSERVICE_IID_STR "be1796cf-cb53-482e-8942-d6caa0a11baa"

#define CALIFREEBUSYSERVICE_IID \
  {0xbe1796cf, 0xcb53, 0x482e, \
    { 0x89, 0x42, 0xd6, 0xca, 0xa0, 0xa1, 0x1b, 0xaa }}

class NS_NO_VTABLE calIFreeBusyService : public calIFreeBusyProvider {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIFREEBUSYSERVICE_IID)

  /* void addProvider (in calIFreeBusyProvider aProvider); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddProvider(calIFreeBusyProvider *aProvider) = 0;

  /* void removeProvider (in calIFreeBusyProvider aProvider); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveProvider(calIFreeBusyProvider *aProvider) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIFreeBusyService, CALIFREEBUSYSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIFREEBUSYSERVICE \
  NS_IMETHOD AddProvider(calIFreeBusyProvider *aProvider) override; \
  NS_IMETHOD RemoveProvider(calIFreeBusyProvider *aProvider) 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_CALIFREEBUSYSERVICE \
  nsresult AddProvider(calIFreeBusyProvider *aProvider); \
  nsresult RemoveProvider(calIFreeBusyProvider *aProvider); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIFREEBUSYSERVICE(_to) \
  NS_IMETHOD AddProvider(calIFreeBusyProvider *aProvider) override { return _to AddProvider(aProvider); } \
  NS_IMETHOD RemoveProvider(calIFreeBusyProvider *aProvider) override { return _to RemoveProvider(aProvider); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIFREEBUSYSERVICE(_to) \
  NS_IMETHOD AddProvider(calIFreeBusyProvider *aProvider) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddProvider(aProvider); } \
  NS_IMETHOD RemoveProvider(calIFreeBusyProvider *aProvider) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProvider(aProvider); } 


#endif /* __gen_calIFreeBusyProvider_h__ */