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

#ifndef __gen_calITransactionManager_h__
#define __gen_calITransactionManager_h__


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

#include "js/Value.h"

#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 nsITransactionManager; /* forward declaration */

class calICalendar; /* forward declaration */

class calIItemBase; /* forward declaration */

class calIOperationListener; /* forward declaration */


/* starting interface:    calITransactionManager */
#define CALITRANSACTIONMANAGER_IID_STR "1d529847-d292-4222-b066-b8b17a794d62"

#define CALITRANSACTIONMANAGER_IID \
  {0x1d529847, 0xd292, 0x4222, \
    { 0xb0, 0x66, 0xb8, 0xb1, 0x7a, 0x79, 0x4d, 0x62 }}

class NS_NO_VTABLE calITransactionManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALITRANSACTIONMANAGER_IID)

  /* void createAndCommitTxn (in AUTF8String aAction, in calIItemBase aItem, in calICalendar aCalendar, in calIItemBase aOldItem, in calIOperationListener aListener, in jsval aExtResponse); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateAndCommitTxn(const nsACString& aAction, calIItemBase *aItem, calICalendar *aCalendar, calIItemBase *aOldItem, calIOperationListener *aListener, JS::HandleValue aExtResponse) = 0;

  /* void beginBatch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD BeginBatch(void) = 0;

  /* void endBatch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EndBatch(void) = 0;

  /* void undo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Undo(void) = 0;

  /* boolean canUndo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanUndo(bool *_retval) = 0;

  /* void redo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Redo(void) = 0;

  /* boolean canRedo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanRedo(bool *_retval) = 0;

  /* readonly attribute nsITransactionManager transactionManager; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calITransactionManager, CALITRANSACTIONMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALITRANSACTIONMANAGER \
  NS_IMETHOD CreateAndCommitTxn(const nsACString& aAction, calIItemBase *aItem, calICalendar *aCalendar, calIItemBase *aOldItem, calIOperationListener *aListener, JS::HandleValue aExtResponse) override; \
  NS_IMETHOD BeginBatch(void) override; \
  NS_IMETHOD EndBatch(void) override; \
  NS_IMETHOD Undo(void) override; \
  NS_IMETHOD CanUndo(bool *_retval) override; \
  NS_IMETHOD Redo(void) override; \
  NS_IMETHOD CanRedo(bool *_retval) override; \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) 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_CALITRANSACTIONMANAGER \
  nsresult CreateAndCommitTxn(const nsACString& aAction, calIItemBase *aItem, calICalendar *aCalendar, calIItemBase *aOldItem, calIOperationListener *aListener, JS::HandleValue aExtResponse); \
  nsresult BeginBatch(void); \
  nsresult EndBatch(void); \
  nsresult Undo(void); \
  nsresult CanUndo(bool *_retval); \
  nsresult Redo(void); \
  nsresult CanRedo(bool *_retval); \
  nsresult GetTransactionManager(nsITransactionManager **aTransactionManager); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALITRANSACTIONMANAGER(_to) \
  NS_IMETHOD CreateAndCommitTxn(const nsACString& aAction, calIItemBase *aItem, calICalendar *aCalendar, calIItemBase *aOldItem, calIOperationListener *aListener, JS::HandleValue aExtResponse) override { return _to CreateAndCommitTxn(aAction, aItem, aCalendar, aOldItem, aListener, aExtResponse); } \
  NS_IMETHOD BeginBatch(void) override { return _to BeginBatch(); } \
  NS_IMETHOD EndBatch(void) override { return _to EndBatch(); } \
  NS_IMETHOD Undo(void) override { return _to Undo(); } \
  NS_IMETHOD CanUndo(bool *_retval) override { return _to CanUndo(_retval); } \
  NS_IMETHOD Redo(void) override { return _to Redo(); } \
  NS_IMETHOD CanRedo(bool *_retval) override { return _to CanRedo(_retval); } \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) override { return _to GetTransactionManager(aTransactionManager); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALITRANSACTIONMANAGER(_to) \
  NS_IMETHOD CreateAndCommitTxn(const nsACString& aAction, calIItemBase *aItem, calICalendar *aCalendar, calIItemBase *aOldItem, calIOperationListener *aListener, JS::HandleValue aExtResponse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAndCommitTxn(aAction, aItem, aCalendar, aOldItem, aListener, aExtResponse); } \
  NS_IMETHOD BeginBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginBatch(); } \
  NS_IMETHOD EndBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatch(); } \
  NS_IMETHOD Undo(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Undo(); } \
  NS_IMETHOD CanUndo(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanUndo(_retval); } \
  NS_IMETHOD Redo(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Redo(); } \
  NS_IMETHOD CanRedo(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanRedo(_retval); } \
  NS_IMETHOD GetTransactionManager(nsITransactionManager **aTransactionManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransactionManager(aTransactionManager); } 


#endif /* __gen_calITransactionManager_h__ */