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

#ifndef __gen_calIChangeLog_h__
#define __gen_calIChangeLog_h__


#ifndef __gen_calICalendar_h__
#include "calICalendar.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 calIGenericOperationListener; /* forward declaration */

class calIOperation; /* forward declaration */


/* starting interface:    calIOfflineStorage */
#define CALIOFFLINESTORAGE_IID_STR "36dc2c93-5851-40d2-9ba9-b1f6e682c75c"

#define CALIOFFLINESTORAGE_IID \
  {0x36dc2c93, 0x5851, 0x40d2, \
    { 0x9b, 0xa9, 0xb1, 0xf6, 0xe6, 0x82, 0xc7, 0x5c }}

class NS_NO_VTABLE calIOfflineStorage : public calICalendar {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIOFFLINESTORAGE_IID)

  /* void addOfflineItem (in calIItemBase aItem, in calIOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) = 0;

  /* void modifyOfflineItem (in calIItemBase aItem, in calIOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ModifyOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) = 0;

  /* void deleteOfflineItem (in calIItemBase aItem, in calIOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) = 0;

  /* void getItemOfflineFlag (in calIItemBase aItem, in calIOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) = 0;

  /* void resetItemOfflineFlag (in calIItemBase aItem, in calIOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIOfflineStorage, CALIOFFLINESTORAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIOFFLINESTORAGE \
  NS_IMETHOD AddOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override; \
  NS_IMETHOD ModifyOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override; \
  NS_IMETHOD DeleteOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override; \
  NS_IMETHOD GetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) override; \
  NS_IMETHOD ResetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) 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_CALIOFFLINESTORAGE \
  nsresult AddOfflineItem(calIItemBase *aItem, calIOperationListener *aListener); \
  nsresult ModifyOfflineItem(calIItemBase *aItem, calIOperationListener *aListener); \
  nsresult DeleteOfflineItem(calIItemBase *aItem, calIOperationListener *aListener); \
  nsresult GetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener); \
  nsresult ResetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIOFFLINESTORAGE(_to) \
  NS_IMETHOD AddOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return _to AddOfflineItem(aItem, aListener); } \
  NS_IMETHOD ModifyOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return _to ModifyOfflineItem(aItem, aListener); } \
  NS_IMETHOD DeleteOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return _to DeleteOfflineItem(aItem, aListener); } \
  NS_IMETHOD GetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) override { return _to GetItemOfflineFlag(aItem, aListener); } \
  NS_IMETHOD ResetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) override { return _to ResetItemOfflineFlag(aItem, aListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIOFFLINESTORAGE(_to) \
  NS_IMETHOD AddOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddOfflineItem(aItem, aListener); } \
  NS_IMETHOD ModifyOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyOfflineItem(aItem, aListener); } \
  NS_IMETHOD DeleteOfflineItem(calIItemBase *aItem, calIOperationListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteOfflineItem(aItem, aListener); } \
  NS_IMETHOD GetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemOfflineFlag(aItem, aListener); } \
  NS_IMETHOD ResetItemOfflineFlag(calIItemBase *aItem, calIOperationListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetItemOfflineFlag(aItem, aListener); } 


/* starting interface:    calISyncWriteCalendar */
#define CALISYNCWRITECALENDAR_IID_STR "651e137b-2f3a-4595-af89-da51b6a37f85"

#define CALISYNCWRITECALENDAR_IID \
  {0x651e137b, 0x2f3a, 0x4595, \
    { 0xaf, 0x89, 0xda, 0x51, 0xb6, 0xa3, 0x7f, 0x85 }}

class NS_NO_VTABLE calISyncWriteCalendar : public calICalendar {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALISYNCWRITECALENDAR_IID)

  /* void setMetaData (in AUTF8String id, in AUTF8String value); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMetaData(const nsACString& id, const nsACString& value) = 0;

  /* void deleteMetaData (in AUTF8String id); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteMetaData(const nsACString& id) = 0;

  /* AUTF8String getMetaData (in AUTF8String id); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMetaData(const nsACString& id, nsACString& _retval) = 0;

  /* void getAllMetaData (out uint32_t count, [array, size_is (count)] out wstring ids, [array, size_is (count)] out wstring values); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAllMetaData(uint32_t *count, char16_t * **ids, char16_t * **values) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calISyncWriteCalendar, CALISYNCWRITECALENDAR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALISYNCWRITECALENDAR \
  NS_IMETHOD SetMetaData(const nsACString& id, const nsACString& value) override; \
  NS_IMETHOD DeleteMetaData(const nsACString& id) override; \
  NS_IMETHOD GetMetaData(const nsACString& id, nsACString& _retval) override; \
  NS_IMETHOD GetAllMetaData(uint32_t *count, char16_t * **ids, char16_t * **values) 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_CALISYNCWRITECALENDAR \
  nsresult SetMetaData(const nsACString& id, const nsACString& value); \
  nsresult DeleteMetaData(const nsACString& id); \
  nsresult GetMetaData(const nsACString& id, nsACString& _retval); \
  nsresult GetAllMetaData(uint32_t *count, char16_t * **ids, char16_t * **values); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALISYNCWRITECALENDAR(_to) \
  NS_IMETHOD SetMetaData(const nsACString& id, const nsACString& value) override { return _to SetMetaData(id, value); } \
  NS_IMETHOD DeleteMetaData(const nsACString& id) override { return _to DeleteMetaData(id); } \
  NS_IMETHOD GetMetaData(const nsACString& id, nsACString& _retval) override { return _to GetMetaData(id, _retval); } \
  NS_IMETHOD GetAllMetaData(uint32_t *count, char16_t * **ids, char16_t * **values) override { return _to GetAllMetaData(count, ids, values); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALISYNCWRITECALENDAR(_to) \
  NS_IMETHOD SetMetaData(const nsACString& id, const nsACString& value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMetaData(id, value); } \
  NS_IMETHOD DeleteMetaData(const nsACString& id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMetaData(id); } \
  NS_IMETHOD GetMetaData(const nsACString& id, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaData(id, _retval); } \
  NS_IMETHOD GetAllMetaData(uint32_t *count, char16_t * **ids, char16_t * **values) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllMetaData(count, ids, values); } 


/* starting interface:    calIChangeLog */
#define CALICHANGELOG_IID_STR "0bf4c6a2-b4c7-4cae-993a-4408d8bded3e"

#define CALICHANGELOG_IID \
  {0x0bf4c6a2, 0xb4c7, 0x4cae, \
    { 0x99, 0x3a, 0x44, 0x08, 0xd8, 0xbd, 0xed, 0x3e }}

class NS_NO_VTABLE calIChangeLog : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALICHANGELOG_IID)

  enum {
    OFFLINE_FLAG_CREATED_RECORD = 1,
    OFFLINE_FLAG_MODIFIED_RECORD = 2,
    OFFLINE_FLAG_DELETED_RECORD = 4
  };

  /* attribute calISyncWriteCalendar offlineStorage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOfflineStorage(calISyncWriteCalendar **aOfflineStorage) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOfflineStorage(calISyncWriteCalendar *aOfflineStorage) = 0;

  /* void resetLog (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResetLog(void) = 0;

  /* calIOperation replayChangesOn (in calIGenericOperationListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReplayChangesOn(calIGenericOperationListener *aListener, calIOperation **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIChangeLog, CALICHANGELOG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALICHANGELOG \
  NS_IMETHOD GetOfflineStorage(calISyncWriteCalendar **aOfflineStorage) override; \
  NS_IMETHOD SetOfflineStorage(calISyncWriteCalendar *aOfflineStorage) override; \
  NS_IMETHOD ResetLog(void) override; \
  NS_IMETHOD ReplayChangesOn(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_CALICHANGELOG \
  nsresult GetOfflineStorage(calISyncWriteCalendar **aOfflineStorage); \
  nsresult SetOfflineStorage(calISyncWriteCalendar *aOfflineStorage); \
  nsresult ResetLog(void); \
  nsresult ReplayChangesOn(calIGenericOperationListener *aListener, calIOperation **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALICHANGELOG(_to) \
  NS_IMETHOD GetOfflineStorage(calISyncWriteCalendar **aOfflineStorage) override { return _to GetOfflineStorage(aOfflineStorage); } \
  NS_IMETHOD SetOfflineStorage(calISyncWriteCalendar *aOfflineStorage) override { return _to SetOfflineStorage(aOfflineStorage); } \
  NS_IMETHOD ResetLog(void) override { return _to ResetLog(); } \
  NS_IMETHOD ReplayChangesOn(calIGenericOperationListener *aListener, calIOperation **_retval) override { return _to ReplayChangesOn(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_CALICHANGELOG(_to) \
  NS_IMETHOD GetOfflineStorage(calISyncWriteCalendar **aOfflineStorage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOfflineStorage(aOfflineStorage); } \
  NS_IMETHOD SetOfflineStorage(calISyncWriteCalendar *aOfflineStorage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOfflineStorage(aOfflineStorage); } \
  NS_IMETHOD ResetLog(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetLog(); } \
  NS_IMETHOD ReplayChangesOn(calIGenericOperationListener *aListener, calIOperation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplayChangesOn(aListener, _retval); } 


#endif /* __gen_calIChangeLog_h__ */