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

nsIAbCollection

Macros

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAbCollection.idl
 */

#ifndef __gen_nsIAbCollection_h__
#define __gen_nsIAbCollection_h__


#ifndef __gen_nsIAbItem_h__
#include "nsIAbItem.h"
#endif

/* 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; */
  NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;

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

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

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

  /* nsIAbCard getCardFromProperty (in string aProperty, in AUTF8String aValue, in boolean aCaseSensitive); */
  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); */
  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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsAbCollection : public nsIAbCollection
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIABCOLLECTION

  nsAbCollection();

private:
  ~nsAbCollection();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAbCollection, nsIAbCollection)

nsAbCollection::nsAbCollection()
{
  /* member initializers and constructor code */
}

nsAbCollection::~nsAbCollection()
{
  /* destructor code */
}

/* readonly attribute boolean readOnly; */
NS_IMETHODIMP nsAbCollection::GetReadOnly(bool *aReadOnly)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isRemote; */
NS_IMETHODIMP nsAbCollection::GetIsRemote(bool *aIsRemote)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isSecure; */
NS_IMETHODIMP nsAbCollection::GetIsSecure(bool *aIsSecure)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIAbCard cardForEmailAddress (in AUTF8String emailAddress); */
NS_IMETHODIMP nsAbCollection::CardForEmailAddress(const nsACString & emailAddress, nsIAbCard * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIAbCard getCardFromProperty (in string aProperty, in AUTF8String aValue, in boolean aCaseSensitive); */
NS_IMETHODIMP nsAbCollection::GetCardFromProperty(const char * aProperty, const nsACString & aValue, bool aCaseSensitive, nsIAbCard * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getCardsFromProperty (in string aProperty, in AUTF8String aValue, in boolean aCaseSensitive); */
NS_IMETHODIMP nsAbCollection::GetCardsFromProperty(const char * aProperty, const nsACString & aValue, bool aCaseSensitive, nsISimpleEnumerator * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIAbCollection_h__ */