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

#ifndef __gen_nsIImportAddressBooks_h__
#define __gen_nsIImportAddressBooks_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 nsIFile; /* forward declaration */

class nsIArray; /* forward declaration */

class nsIImportABDescriptor; /* forward declaration */

class nsIAddrDatabase; /* forward declaration */

class nsIImportFieldMap; /* forward declaration */


/* starting interface:    nsIImportAddressBooks */
#define NS_IIMPORTADDRESSBOOKS_IID_STR "6bba48be-331c-41e3-bc9f-c2ea3754d977"

#define NS_IIMPORTADDRESSBOOKS_IID \
  {0x6bba48be, 0x331c, 0x41e3, \
    { 0xbc, 0x9f, 0xc2, 0xea, 0x37, 0x54, 0xd9, 0x77 }}

class NS_NO_VTABLE nsIImportAddressBooks : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMPORTADDRESSBOOKS_IID)

  /* boolean GetSupportsMultiple (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportsMultiple(bool *_retval) = 0;

  /* boolean GetAutoFind (out wstring description); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAutoFind(char16_t * *description, bool *_retval) = 0;

  /* boolean GetNeedsFieldMap (in nsIFile location); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNeedsFieldMap(nsIFile *location, bool *_retval) = 0;

  /* void GetDefaultLocation (out nsIFile location, out boolean found, out boolean userVerify); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultLocation(nsIFile **location, bool *found, bool *userVerify) = 0;

  /* nsIArray FindAddressBooks (in nsIFile location); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindAddressBooks(nsIFile *location, nsIArray **_retval) = 0;

  /* void InitFieldMap (in nsIImportFieldMap fieldMap); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitFieldMap(nsIImportFieldMap *fieldMap) = 0;

  /* void ImportAddressBook (in nsIImportABDescriptor aSource, in nsIAddrDatabase aDestination, in nsIImportFieldMap aFieldMap, in nsISupports aSupportService, out wstring aErrorLog, out wstring aSuccessLog, out boolean aFatalError); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ImportAddressBook(nsIImportABDescriptor *aSource, nsIAddrDatabase *aDestination, nsIImportFieldMap *aFieldMap, nsISupports *aSupportService, char16_t * *aErrorLog, char16_t * *aSuccessLog, bool *aFatalError) = 0;

  /* unsigned long GetImportProgress (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImportProgress(uint32_t *_retval) = 0;

  /* void SetSampleLocation (in nsIFile location); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSampleLocation(nsIFile *location) = 0;

  /* wstring GetSampleData (in long recordNumber, out boolean recordExists); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSampleData(int32_t recordNumber, bool *recordExists, char16_t * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImportAddressBooks, NS_IIMPORTADDRESSBOOKS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMPORTADDRESSBOOKS \
  NS_IMETHOD GetSupportsMultiple(bool *_retval) override; \
  NS_IMETHOD GetAutoFind(char16_t * *description, bool *_retval) override; \
  NS_IMETHOD GetNeedsFieldMap(nsIFile *location, bool *_retval) override; \
  NS_IMETHOD GetDefaultLocation(nsIFile **location, bool *found, bool *userVerify) override; \
  NS_IMETHOD FindAddressBooks(nsIFile *location, nsIArray **_retval) override; \
  NS_IMETHOD InitFieldMap(nsIImportFieldMap *fieldMap) override; \
  NS_IMETHOD ImportAddressBook(nsIImportABDescriptor *aSource, nsIAddrDatabase *aDestination, nsIImportFieldMap *aFieldMap, nsISupports *aSupportService, char16_t * *aErrorLog, char16_t * *aSuccessLog, bool *aFatalError) override; \
  NS_IMETHOD GetImportProgress(uint32_t *_retval) override; \
  NS_IMETHOD SetSampleLocation(nsIFile *location) override; \
  NS_IMETHOD GetSampleData(int32_t recordNumber, bool *recordExists, char16_t * *_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_NSIIMPORTADDRESSBOOKS \
  nsresult GetSupportsMultiple(bool *_retval); \
  nsresult GetAutoFind(char16_t * *description, bool *_retval); \
  nsresult GetNeedsFieldMap(nsIFile *location, bool *_retval); \
  nsresult GetDefaultLocation(nsIFile **location, bool *found, bool *userVerify); \
  nsresult FindAddressBooks(nsIFile *location, nsIArray **_retval); \
  nsresult InitFieldMap(nsIImportFieldMap *fieldMap); \
  nsresult ImportAddressBook(nsIImportABDescriptor *aSource, nsIAddrDatabase *aDestination, nsIImportFieldMap *aFieldMap, nsISupports *aSupportService, char16_t * *aErrorLog, char16_t * *aSuccessLog, bool *aFatalError); \
  nsresult GetImportProgress(uint32_t *_retval); \
  nsresult SetSampleLocation(nsIFile *location); \
  nsresult GetSampleData(int32_t recordNumber, bool *recordExists, char16_t * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMPORTADDRESSBOOKS(_to) \
  NS_IMETHOD GetSupportsMultiple(bool *_retval) override { return _to GetSupportsMultiple(_retval); } \
  NS_IMETHOD GetAutoFind(char16_t * *description, bool *_retval) override { return _to GetAutoFind(description, _retval); } \
  NS_IMETHOD GetNeedsFieldMap(nsIFile *location, bool *_retval) override { return _to GetNeedsFieldMap(location, _retval); } \
  NS_IMETHOD GetDefaultLocation(nsIFile **location, bool *found, bool *userVerify) override { return _to GetDefaultLocation(location, found, userVerify); } \
  NS_IMETHOD FindAddressBooks(nsIFile *location, nsIArray **_retval) override { return _to FindAddressBooks(location, _retval); } \
  NS_IMETHOD InitFieldMap(nsIImportFieldMap *fieldMap) override { return _to InitFieldMap(fieldMap); } \
  NS_IMETHOD ImportAddressBook(nsIImportABDescriptor *aSource, nsIAddrDatabase *aDestination, nsIImportFieldMap *aFieldMap, nsISupports *aSupportService, char16_t * *aErrorLog, char16_t * *aSuccessLog, bool *aFatalError) override { return _to ImportAddressBook(aSource, aDestination, aFieldMap, aSupportService, aErrorLog, aSuccessLog, aFatalError); } \
  NS_IMETHOD GetImportProgress(uint32_t *_retval) override { return _to GetImportProgress(_retval); } \
  NS_IMETHOD SetSampleLocation(nsIFile *location) override { return _to SetSampleLocation(location); } \
  NS_IMETHOD GetSampleData(int32_t recordNumber, bool *recordExists, char16_t * *_retval) override { return _to GetSampleData(recordNumber, recordExists, _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_NSIIMPORTADDRESSBOOKS(_to) \
  NS_IMETHOD GetSupportsMultiple(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportsMultiple(_retval); } \
  NS_IMETHOD GetAutoFind(char16_t * *description, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoFind(description, _retval); } \
  NS_IMETHOD GetNeedsFieldMap(nsIFile *location, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeedsFieldMap(location, _retval); } \
  NS_IMETHOD GetDefaultLocation(nsIFile **location, bool *found, bool *userVerify) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultLocation(location, found, userVerify); } \
  NS_IMETHOD FindAddressBooks(nsIFile *location, nsIArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAddressBooks(location, _retval); } \
  NS_IMETHOD InitFieldMap(nsIImportFieldMap *fieldMap) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitFieldMap(fieldMap); } \
  NS_IMETHOD ImportAddressBook(nsIImportABDescriptor *aSource, nsIAddrDatabase *aDestination, nsIImportFieldMap *aFieldMap, nsISupports *aSupportService, char16_t * *aErrorLog, char16_t * *aSuccessLog, bool *aFatalError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportAddressBook(aSource, aDestination, aFieldMap, aSupportService, aErrorLog, aSuccessLog, aFatalError); } \
  NS_IMETHOD GetImportProgress(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImportProgress(_retval); } \
  NS_IMETHOD SetSampleLocation(nsIFile *location) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSampleLocation(location); } \
  NS_IMETHOD GetSampleData(int32_t recordNumber, bool *recordExists, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSampleData(recordNumber, recordExists, _retval); } 



#endif /* __gen_nsIImportAddressBooks_h__ */