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

#ifndef __gen_nsIAbCollection_h__
#define __gen_nsIAbCollection_h__


#ifndef __gen_nsIAbItem_h__
#include "nsIAbItem.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 nsISimpleEnumerator; /* forward declaration */


/* starting interface:    nsIAbCollection */
#define NS_IABCOLLECTION_IID_STR "70f6123f-e06b-4101-9750-4ce73b38134b"

#define NS_IABCOLLECTION_IID \
  {0x70f6123f, 0xe06b, 0x4101, \
    { 0x97, 0x50, 0x4c, 0xe7, 0x3b, 0x38, 0x13, 0x4b }}

class NS_NO_VTABLE nsIAbCollection : public nsIAbItem {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABCOLLECTION_IID)

  /* readonly attribute boolean readOnly; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;

  /* readonly attribute boolean isRemote; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsRemote(bool *aIsRemote) = 0;

  /* readonly attribute boolean isSecure; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsSecure(bool *aIsSecure) = 0;

  /* nsIAbCard cardForEmailAddress (in AUTF8String emailAddress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CardForEmailAddress(const nsACString& emailAddress, nsIAbCard **_retval) = 0;

  /* nsIAbCard getCardFromProperty (in string aProperty, in AUTF8String aValue, in boolean aCaseSensitive); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsIAbCard **_retval) = 0;

  /* nsISimpleEnumerator getCardsFromProperty (in string aProperty, in AUTF8String aValue, in boolean aCaseSensitive); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCardsFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsISimpleEnumerator **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbCollection, NS_IABCOLLECTION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABCOLLECTION \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override; \
  NS_IMETHOD GetIsRemote(bool *aIsRemote) override; \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override; \
  NS_IMETHOD CardForEmailAddress(const nsACString& emailAddress, nsIAbCard **_retval) override; \
  NS_IMETHOD GetCardFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsIAbCard **_retval) override; \
  NS_IMETHOD GetCardsFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsISimpleEnumerator **_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_NSIABCOLLECTION \
  nsresult GetReadOnly(bool *aReadOnly); \
  nsresult GetIsRemote(bool *aIsRemote); \
  nsresult GetIsSecure(bool *aIsSecure); \
  nsresult CardForEmailAddress(const nsACString& emailAddress, nsIAbCard **_retval); \
  nsresult GetCardFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsIAbCard **_retval); \
  nsresult GetCardsFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsISimpleEnumerator **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABCOLLECTION(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return _to GetReadOnly(aReadOnly); } \
  NS_IMETHOD GetIsRemote(bool *aIsRemote) override { return _to GetIsRemote(aIsRemote); } \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override { return _to GetIsSecure(aIsSecure); } \
  NS_IMETHOD CardForEmailAddress(const nsACString& emailAddress, nsIAbCard **_retval) override { return _to CardForEmailAddress(emailAddress, _retval); } \
  NS_IMETHOD GetCardFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsIAbCard **_retval) override { return _to GetCardFromProperty(aProperty, aValue, aCaseSensitive, _retval); } \
  NS_IMETHOD GetCardsFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsISimpleEnumerator **_retval) override { return _to GetCardsFromProperty(aProperty, aValue, aCaseSensitive, _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_NSIABCOLLECTION(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
  NS_IMETHOD GetIsRemote(bool *aIsRemote) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRemote(aIsRemote); } \
  NS_IMETHOD GetIsSecure(bool *aIsSecure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSecure(aIsSecure); } \
  NS_IMETHOD CardForEmailAddress(const nsACString& emailAddress, nsIAbCard **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CardForEmailAddress(emailAddress, _retval); } \
  NS_IMETHOD GetCardFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsIAbCard **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardFromProperty(aProperty, aValue, aCaseSensitive, _retval); } \
  NS_IMETHOD GetCardsFromProperty(const char * aProperty, const nsACString& aValue, bool aCaseSensitive, nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCardsFromProperty(aProperty, aValue, aCaseSensitive, _retval); } 


#endif /* __gen_nsIAbCollection_h__ */