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

#ifndef __gen_calIImportExport_h__
#define __gen_calIImportExport_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 calIItemBase; /* forward declaration */

class nsIInputStream; /* forward declaration */

class nsIOutputStream; /* forward declaration */


/* starting interface:    calIFileType */
#define CALIFILETYPE_IID_STR "efef8333-e995-4f45-bdf7-bfcabbd9793e"

#define CALIFILETYPE_IID \
  {0xefef8333, 0xe995, 0x4f45, \
    { 0xbd, 0xf7, 0xbf, 0xca, 0xbb, 0xd9, 0x79, 0x3e }}

class NS_NO_VTABLE calIFileType : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIFILETYPE_IID)

  /* readonly attribute AString defaultExtension; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultExtension(nsAString& aDefaultExtension) = 0;

  /* readonly attribute AString extensionFilter; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExtensionFilter(nsAString& aExtensionFilter) = 0;

  /* readonly attribute AString description; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDescription(nsAString& aDescription) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIFileType, CALIFILETYPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIFILETYPE \
  NS_IMETHOD GetDefaultExtension(nsAString& aDefaultExtension) override; \
  NS_IMETHOD GetExtensionFilter(nsAString& aExtensionFilter) override; \
  NS_IMETHOD GetDescription(nsAString& aDescription) 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_CALIFILETYPE \
  nsresult GetDefaultExtension(nsAString& aDefaultExtension); \
  nsresult GetExtensionFilter(nsAString& aExtensionFilter); \
  nsresult GetDescription(nsAString& aDescription); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIFILETYPE(_to) \
  NS_IMETHOD GetDefaultExtension(nsAString& aDefaultExtension) override { return _to GetDefaultExtension(aDefaultExtension); } \
  NS_IMETHOD GetExtensionFilter(nsAString& aExtensionFilter) override { return _to GetExtensionFilter(aExtensionFilter); } \
  NS_IMETHOD GetDescription(nsAString& aDescription) override { return _to GetDescription(aDescription); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIFILETYPE(_to) \
  NS_IMETHOD GetDefaultExtension(nsAString& aDefaultExtension) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultExtension(aDefaultExtension); } \
  NS_IMETHOD GetExtensionFilter(nsAString& aExtensionFilter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensionFilter(aExtensionFilter); } \
  NS_IMETHOD GetDescription(nsAString& aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } 


/* starting interface:    calIImporter */
#define CALIIMPORTER_IID_STR "dbe262ca-d6c6-4691-8d46-e7f6bbe632ec"

#define CALIIMPORTER_IID \
  {0xdbe262ca, 0xd6c6, 0x4691, \
    { 0x8d, 0x46, 0xe7, 0xf6, 0xbb, 0xe6, 0x32, 0xec }}

class NS_NO_VTABLE calIImporter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIIMPORTER_IID)

  /* void getFileTypes (out unsigned long aCount, [array, size_is (aCount), retval] out calIFileType aTypes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) = 0;

  /* void importFromStream (in nsIInputStream aStream, out unsigned long aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase ***aItems) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIImporter, CALIIMPORTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIIMPORTER \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override; \
  NS_IMETHOD ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase ***aItems) 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_CALIIMPORTER \
  nsresult GetFileTypes(uint32_t *aCount, calIFileType ***aTypes); \
  nsresult ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase ***aItems); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIIMPORTER(_to) \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override { return _to GetFileTypes(aCount, aTypes); } \
  NS_IMETHOD ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase ***aItems) override { return _to ImportFromStream(aStream, aCount, aItems); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIIMPORTER(_to) \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileTypes(aCount, aTypes); } \
  NS_IMETHOD ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase ***aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportFromStream(aStream, aCount, aItems); } 


/* starting interface:    calIExporter */
#define CALIEXPORTER_IID_STR "18c75bb3-6309-4c33-903f-6055fec39d07"

#define CALIEXPORTER_IID \
  {0x18c75bb3, 0x6309, 0x4c33, \
    { 0x90, 0x3f, 0x60, 0x55, 0xfe, 0xc3, 0x9d, 0x07 }}

class NS_NO_VTABLE calIExporter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(CALIEXPORTER_IID)

  /* void getFileTypes (out unsigned long aCount, [array, size_is (aCount), retval] out calIFileType aTypes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) = 0;

  /* void exportToStream (in nsIOutputStream aStream, in unsigned long aCount, [array, size_is (aCount)] in calIItemBase aItems, in AString aTitle); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString& aTitle) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(calIExporter, CALIEXPORTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_CALIEXPORTER \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override; \
  NS_IMETHOD ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString& aTitle) 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_CALIEXPORTER \
  nsresult GetFileTypes(uint32_t *aCount, calIFileType ***aTypes); \
  nsresult ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString& aTitle); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_CALIEXPORTER(_to) \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override { return _to GetFileTypes(aCount, aTypes); } \
  NS_IMETHOD ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString& aTitle) override { return _to ExportToStream(aStream, aCount, aItems, aTitle); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_CALIEXPORTER(_to) \
  NS_IMETHOD GetFileTypes(uint32_t *aCount, calIFileType ***aTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileTypes(aCount, aTypes); } \
  NS_IMETHOD ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString& aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExportToStream(aStream, aCount, aItems, aTitle); } 


#endif /* __gen_calIImportExport_h__ */