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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mail/components/activity/nsIActivityManager.idl
 */

#ifndef __gen_nsIActivityManager_h__
#define __gen_nsIActivityManager_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 mozIStorageConnection; /* forward declaration */

class nsIActivity; /* forward declaration */

class nsIActivityProcess; /* forward declaration */

class nsIVariant; /* forward declaration */


/* starting interface:    nsIActivityMgrListener */
#define NS_IACTIVITYMGRLISTENER_IID_STR "14cfad1c-3401-4c44-ab04-4a11b6662663"

#define NS_IACTIVITYMGRLISTENER_IID \
  {0x14cfad1c, 0x3401, 0x4c44, \
    { 0xab, 0x04, 0x4a, 0x11, 0xb6, 0x66, 0x26, 0x63 }}

class NS_NO_VTABLE nsIActivityMgrListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYMGRLISTENER_IID)

  /* void onAddedActivity (in unsigned long aID, in nsIActivity aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAddedActivity(uint32_t aID, nsIActivity *aActivity) = 0;

  /* void onRemovedActivity (in unsigned long aID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnRemovedActivity(uint32_t aID) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityMgrListener, NS_IACTIVITYMGRLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYMGRLISTENER \
  NS_IMETHOD OnAddedActivity(uint32_t aID, nsIActivity *aActivity) override; \
  NS_IMETHOD OnRemovedActivity(uint32_t aID) 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_NSIACTIVITYMGRLISTENER \
  nsresult OnAddedActivity(uint32_t aID, nsIActivity *aActivity); \
  nsresult OnRemovedActivity(uint32_t aID); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYMGRLISTENER(_to) \
  NS_IMETHOD OnAddedActivity(uint32_t aID, nsIActivity *aActivity) override { return _to OnAddedActivity(aID, aActivity); } \
  NS_IMETHOD OnRemovedActivity(uint32_t aID) override { return _to OnRemovedActivity(aID); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACTIVITYMGRLISTENER(_to) \
  NS_IMETHOD OnAddedActivity(uint32_t aID, nsIActivity *aActivity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAddedActivity(aID, aActivity); } \
  NS_IMETHOD OnRemovedActivity(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnRemovedActivity(aID); } 


/* starting interface:    nsIActivityManager */
#define NS_IACTIVITYMANAGER_IID_STR "9bfcc031-50e1-4d30-a35f-23509abcb8d1"

#define NS_IACTIVITYMANAGER_IID \
  {0x9bfcc031, 0x50e1, 0x4d30, \
    { 0xa3, 0x5f, 0x23, 0x50, 0x9a, 0xbc, 0xb8, 0xd1 }}

class NS_NO_VTABLE nsIActivityManager : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACTIVITYMANAGER_IID)

  /* unsigned long addActivity (in nsIActivity aActivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddActivity(nsIActivity *aActivity, uint32_t *_retval) = 0;

  /* void removeActivity (in unsigned long aID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveActivity(uint32_t aID) = 0;

  /* nsIActivity getActivity (in unsigned long aID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActivity(uint32_t aID, nsIActivity **_retval) = 0;

  /* boolean containsActivity (in unsigned long aID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContainsActivity(uint32_t aID, bool *_retval) = 0;

  /* void getActivities (out unsigned long length, [array, size_is (length), retval] out nsIActivity aActivities); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActivities(uint32_t *length, nsIActivity ***aActivities) = 0;

  /* void getProcessesByContext (in AString aContextType, in nsIVariant aContextObject, out unsigned long length, [array, size_is (length), retval] out nsIActivityProcess aProcesses); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProcessesByContext(const nsAString& aContextType, nsIVariant *aContextObject, uint32_t *length, nsIActivityProcess ***aProcesses) = 0;

  /* void cleanUp (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CleanUp(void) = 0;

  /* readonly attribute long processCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProcessCount(int32_t *aProcessCount) = 0;

  /* void addListener (in nsIActivityMgrListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListener(nsIActivityMgrListener *aListener) = 0;

  /* void removeListener (in nsIActivityMgrListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveListener(nsIActivityMgrListener *aListener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIActivityManager, NS_IACTIVITYMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACTIVITYMANAGER \
  NS_IMETHOD AddActivity(nsIActivity *aActivity, uint32_t *_retval) override; \
  NS_IMETHOD RemoveActivity(uint32_t aID) override; \
  NS_IMETHOD GetActivity(uint32_t aID, nsIActivity **_retval) override; \
  NS_IMETHOD ContainsActivity(uint32_t aID, bool *_retval) override; \
  NS_IMETHOD GetActivities(uint32_t *length, nsIActivity ***aActivities) override; \
  NS_IMETHOD GetProcessesByContext(const nsAString& aContextType, nsIVariant *aContextObject, uint32_t *length, nsIActivityProcess ***aProcesses) override; \
  NS_IMETHOD CleanUp(void) override; \
  NS_IMETHOD GetProcessCount(int32_t *aProcessCount) override; \
  NS_IMETHOD AddListener(nsIActivityMgrListener *aListener) override; \
  NS_IMETHOD RemoveListener(nsIActivityMgrListener *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_NSIACTIVITYMANAGER \
  nsresult AddActivity(nsIActivity *aActivity, uint32_t *_retval); \
  nsresult RemoveActivity(uint32_t aID); \
  nsresult GetActivity(uint32_t aID, nsIActivity **_retval); \
  nsresult ContainsActivity(uint32_t aID, bool *_retval); \
  nsresult GetActivities(uint32_t *length, nsIActivity ***aActivities); \
  nsresult GetProcessesByContext(const nsAString& aContextType, nsIVariant *aContextObject, uint32_t *length, nsIActivityProcess ***aProcesses); \
  nsresult CleanUp(void); \
  nsresult GetProcessCount(int32_t *aProcessCount); \
  nsresult AddListener(nsIActivityMgrListener *aListener); \
  nsresult RemoveListener(nsIActivityMgrListener *aListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACTIVITYMANAGER(_to) \
  NS_IMETHOD AddActivity(nsIActivity *aActivity, uint32_t *_retval) override { return _to AddActivity(aActivity, _retval); } \
  NS_IMETHOD RemoveActivity(uint32_t aID) override { return _to RemoveActivity(aID); } \
  NS_IMETHOD GetActivity(uint32_t aID, nsIActivity **_retval) override { return _to GetActivity(aID, _retval); } \
  NS_IMETHOD ContainsActivity(uint32_t aID, bool *_retval) override { return _to ContainsActivity(aID, _retval); } \
  NS_IMETHOD GetActivities(uint32_t *length, nsIActivity ***aActivities) override { return _to GetActivities(length, aActivities); } \
  NS_IMETHOD GetProcessesByContext(const nsAString& aContextType, nsIVariant *aContextObject, uint32_t *length, nsIActivityProcess ***aProcesses) override { return _to GetProcessesByContext(aContextType, aContextObject, length, aProcesses); } \
  NS_IMETHOD CleanUp(void) override { return _to CleanUp(); } \
  NS_IMETHOD GetProcessCount(int32_t *aProcessCount) override { return _to GetProcessCount(aProcessCount); } \
  NS_IMETHOD AddListener(nsIActivityMgrListener *aListener) override { return _to AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIActivityMgrListener *aListener) override { return _to RemoveListener(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_NSIACTIVITYMANAGER(_to) \
  NS_IMETHOD AddActivity(nsIActivity *aActivity, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddActivity(aActivity, _retval); } \
  NS_IMETHOD RemoveActivity(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveActivity(aID); } \
  NS_IMETHOD GetActivity(uint32_t aID, nsIActivity **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivity(aID, _retval); } \
  NS_IMETHOD ContainsActivity(uint32_t aID, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsActivity(aID, _retval); } \
  NS_IMETHOD GetActivities(uint32_t *length, nsIActivity ***aActivities) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivities(length, aActivities); } \
  NS_IMETHOD GetProcessesByContext(const nsAString& aContextType, nsIVariant *aContextObject, uint32_t *length, nsIActivityProcess ***aProcesses) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessesByContext(aContextType, aContextObject, length, aProcesses); } \
  NS_IMETHOD CleanUp(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanUp(); } \
  NS_IMETHOD GetProcessCount(int32_t *aProcessCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessCount(aProcessCount); } \
  NS_IMETHOD AddListener(nsIActivityMgrListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIActivityMgrListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } 


#endif /* __gen_nsIActivityManager_h__ */