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

#ifndef __gen_nsIAbView_h__
#define __gen_nsIAbView_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 nsIAbCard; /* forward declaration */

class nsIAbDirectory; /* forward declaration */

class nsIArray; /* forward declaration */


/* starting interface:    nsIAbViewListener */
#define NS_IABVIEWLISTENER_IID_STR "79ad5d6e-1dd2-11b2-addd-f547dab50d75"

#define NS_IABVIEWLISTENER_IID \
  {0x79ad5d6e, 0x1dd2, 0x11b2, \
    { 0xad, 0xdd, 0xf5, 0x47, 0xda, 0xb5, 0x0d, 0x75 }}

class NS_NO_VTABLE nsIAbViewListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABVIEWLISTENER_IID)

  /* void onSelectionChanged (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSelectionChanged(void) = 0;

  /* void onCountChanged (in long total); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCountChanged(int32_t total) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbViewListener, NS_IABVIEWLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABVIEWLISTENER \
  NS_IMETHOD OnSelectionChanged(void) override; \
  NS_IMETHOD OnCountChanged(int32_t total) 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_NSIABVIEWLISTENER \
  nsresult OnSelectionChanged(void); \
  nsresult OnCountChanged(int32_t total); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABVIEWLISTENER(_to) \
  NS_IMETHOD OnSelectionChanged(void) override { return _to OnSelectionChanged(); } \
  NS_IMETHOD OnCountChanged(int32_t total) override { return _to OnCountChanged(total); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABVIEWLISTENER(_to) \
  NS_IMETHOD OnSelectionChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSelectionChanged(); } \
  NS_IMETHOD OnCountChanged(int32_t total) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCountChanged(total); } 


/* starting interface:    nsIAbView */
#define NS_IABVIEW_IID_STR "45e2fa9f-0b59-4090-a2fa-fb7042cf64a2"

#define NS_IABVIEW_IID \
  {0x45e2fa9f, 0x0b59, 0x4090, \
    { 0xa2, 0xfa, 0xfb, 0x70, 0x42, 0xcf, 0x64, 0xa2 }}

class NS_NO_VTABLE nsIAbView : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABVIEW_IID)

  /* AString setView (in nsIAbDirectory aAddressBook, in nsIAbViewListener aAbViewListener, in AString aSortColumn, in AString aSortDirection); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetView(nsIAbDirectory *aAddressBook, nsIAbViewListener *aAbViewListener, const nsAString& aSortColumn, const nsAString& aSortDirection, nsAString& _retval) = 0;

  /* void clearView (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearView(void) = 0;

  /* void sortBy (in wstring aSortColumn, in wstring aSortDirection, [optional] in boolean aResort); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SortBy(const char16_t * aSortColumn, const char16_t * aSortDirection, bool aResort) = 0;

  /* readonly attribute AString sortColumn; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSortColumn(nsAString& aSortColumn) = 0;

  /* readonly attribute AString sortDirection; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSortDirection(nsAString& aSortDirection) = 0;

  /* readonly attribute nsIAbDirectory directory; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDirectory(nsIAbDirectory **aDirectory) = 0;

  /* nsIAbCard getCardFromRow (in long aRow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardFromRow(int32_t aRow, nsIAbCard **_retval) = 0;

  /* void selectAll (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectAll(void) = 0;

  /* void deleteSelectedCards (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteSelectedCards(void) = 0;

  /* void swapFirstNameLastName (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SwapFirstNameLastName(void) = 0;

  /* readonly attribute nsIArray selectedAddresses; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectedAddresses(nsIArray **aSelectedAddresses) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbView, NS_IABVIEW_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABVIEW \
  NS_IMETHOD SetView(nsIAbDirectory *aAddressBook, nsIAbViewListener *aAbViewListener, const nsAString& aSortColumn, const nsAString& aSortDirection, nsAString& _retval) override; \
  NS_IMETHOD ClearView(void) override; \
  NS_IMETHOD SortBy(const char16_t * aSortColumn, const char16_t * aSortDirection, bool aResort) override; \
  NS_IMETHOD GetSortColumn(nsAString& aSortColumn) override; \
  NS_IMETHOD GetSortDirection(nsAString& aSortDirection) override; \
  NS_IMETHOD GetDirectory(nsIAbDirectory **aDirectory) override; \
  NS_IMETHOD GetCardFromRow(int32_t aRow, nsIAbCard **_retval) override; \
  NS_IMETHOD SelectAll(void) override; \
  NS_IMETHOD DeleteSelectedCards(void) override; \
  NS_IMETHOD SwapFirstNameLastName(void) override; \
  NS_IMETHOD GetSelectedAddresses(nsIArray **aSelectedAddresses) 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_NSIABVIEW \
  nsresult SetView(nsIAbDirectory *aAddressBook, nsIAbViewListener *aAbViewListener, const nsAString& aSortColumn, const nsAString& aSortDirection, nsAString& _retval); \
  nsresult ClearView(void); \
  nsresult SortBy(const char16_t * aSortColumn, const char16_t * aSortDirection, bool aResort); \
  nsresult GetSortColumn(nsAString& aSortColumn); \
  nsresult GetSortDirection(nsAString& aSortDirection); \
  nsresult GetDirectory(nsIAbDirectory **aDirectory); \
  nsresult GetCardFromRow(int32_t aRow, nsIAbCard **_retval); \
  nsresult SelectAll(void); \
  nsresult DeleteSelectedCards(void); \
  nsresult SwapFirstNameLastName(void); \
  nsresult GetSelectedAddresses(nsIArray **aSelectedAddresses); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABVIEW(_to) \
  NS_IMETHOD SetView(nsIAbDirectory *aAddressBook, nsIAbViewListener *aAbViewListener, const nsAString& aSortColumn, const nsAString& aSortDirection, nsAString& _retval) override { return _to SetView(aAddressBook, aAbViewListener, aSortColumn, aSortDirection, _retval); } \
  NS_IMETHOD ClearView(void) override { return _to ClearView(); } \
  NS_IMETHOD SortBy(const char16_t * aSortColumn, const char16_t * aSortDirection, bool aResort) override { return _to SortBy(aSortColumn, aSortDirection, aResort); } \
  NS_IMETHOD GetSortColumn(nsAString& aSortColumn) override { return _to GetSortColumn(aSortColumn); } \
  NS_IMETHOD GetSortDirection(nsAString& aSortDirection) override { return _to GetSortDirection(aSortDirection); } \
  NS_IMETHOD GetDirectory(nsIAbDirectory **aDirectory) override { return _to GetDirectory(aDirectory); } \
  NS_IMETHOD GetCardFromRow(int32_t aRow, nsIAbCard **_retval) override { return _to GetCardFromRow(aRow, _retval); } \
  NS_IMETHOD SelectAll(void) override { return _to SelectAll(); } \
  NS_IMETHOD DeleteSelectedCards(void) override { return _to DeleteSelectedCards(); } \
  NS_IMETHOD SwapFirstNameLastName(void) override { return _to SwapFirstNameLastName(); } \
  NS_IMETHOD GetSelectedAddresses(nsIArray **aSelectedAddresses) override { return _to GetSelectedAddresses(aSelectedAddresses); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABVIEW(_to) \
  NS_IMETHOD SetView(nsIAbDirectory *aAddressBook, nsIAbViewListener *aAbViewListener, const nsAString& aSortColumn, const nsAString& aSortDirection, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetView(aAddressBook, aAbViewListener, aSortColumn, aSortDirection, _retval); } \
  NS_IMETHOD ClearView(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearView(); } \
  NS_IMETHOD SortBy(const char16_t * aSortColumn, const char16_t * aSortDirection, bool aResort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SortBy(aSortColumn, aSortDirection, aResort); } \
  NS_IMETHOD GetSortColumn(nsAString& aSortColumn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortColumn(aSortColumn); } \
  NS_IMETHOD GetSortDirection(nsAString& aSortDirection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortDirection(aSortDirection); } \
  NS_IMETHOD GetDirectory(nsIAbDirectory **aDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
  NS_IMETHOD GetCardFromRow(int32_t aRow, nsIAbCard **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardFromRow(aRow, _retval); } \
  NS_IMETHOD SelectAll(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
  NS_IMETHOD DeleteSelectedCards(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteSelectedCards(); } \
  NS_IMETHOD SwapFirstNameLastName(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SwapFirstNameLastName(); } \
  NS_IMETHOD GetSelectedAddresses(nsIArray **aSelectedAddresses) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedAddresses(aSelectedAddresses); } 


#endif /* __gen_nsIAbView_h__ */