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

#ifndef __gen_calIOperation_h__
#define __gen_calIOperation_h__


#ifndef __gen_nsIVariant_h__
#include "nsIVariant.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

/* starting interface:    calIOperation */
#define CALIOPERATION_IID_STR "b96c2997-7aaa-4619-ad48-b7ebd9236c93"

#define CALIOPERATION_IID \
  {0xb96c2997, 0x7aaa, 0x4619, \
    { 0xad, 0x48, 0xb7, 0xeb, 0xd9, 0x23, 0x6c, 0x93 }}

class NS_NO_VTABLE calIOperation : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIOPERATION_IID)

  /* readonly attribute AUTF8String id; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0;

  /* readonly attribute boolean isPending; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsPending(bool *aIsPending) = 0;

  /* readonly attribute nsIVariant status; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatus(nsIVariant **aStatus) = 0;

  /* void cancel ([optional] in nsIVariant aStatus); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Cancel(nsIVariant *aStatus) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIOperation, CALIOPERATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIOPERATION \
  NS_IMETHOD GetId(nsACString& aId) override; \
  NS_IMETHOD GetIsPending(bool *aIsPending) override; \
  NS_IMETHOD GetStatus(nsIVariant **aStatus) override; \
  NS_IMETHOD Cancel(nsIVariant *aStatus) 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_CALIOPERATION \
  nsresult GetId(nsACString& aId); \
  nsresult GetIsPending(bool *aIsPending); \
  nsresult GetStatus(nsIVariant **aStatus); \
  nsresult Cancel(nsIVariant *aStatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIOPERATION(_to) \
  NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \
  NS_IMETHOD GetIsPending(bool *aIsPending) override { return _to GetIsPending(aIsPending); } \
  NS_IMETHOD GetStatus(nsIVariant **aStatus) override { return _to GetStatus(aStatus); } \
  NS_IMETHOD Cancel(nsIVariant *aStatus) override { return _to Cancel(aStatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIOPERATION(_to) \
  NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD GetIsPending(bool *aIsPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPending(aIsPending); } \
  NS_IMETHOD GetStatus(nsIVariant **aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
  NS_IMETHOD Cancel(nsIVariant *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } 


/* starting interface:    calIGenericOperationListener */
#define CALIGENERICOPERATIONLISTENER_IID_STR "1fa39726-63d2-440c-a464-296d2822b9da"

#define CALIGENERICOPERATIONLISTENER_IID \
  {0x1fa39726, 0x63d2, 0x440c, \
    { 0xa4, 0x64, 0x29, 0x6d, 0x28, 0x22, 0xb9, 0xda }}

class NS_NO_VTABLE calIGenericOperationListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIGENERICOPERATIONLISTENER_IID)

  /* void onResult (in calIOperation aOperation, in nsIVariant aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIGenericOperationListener, CALIGENERICOPERATIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIGENERICOPERATIONLISTENER \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) 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_CALIGENERICOPERATIONLISTENER \
  nsresult OnResult(calIOperation *aOperation, nsIVariant *aResult); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIGENERICOPERATIONLISTENER(_to) \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) override { return _to OnResult(aOperation, aResult); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIGENERICOPERATIONLISTENER(_to) \
  NS_IMETHOD OnResult(calIOperation *aOperation, nsIVariant *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResult(aOperation, aResult); } 


#endif /* __gen_calIOperation_h__ */