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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/calIImportExport.idl
 */

#ifndef __gen_calIImportExport_h__
#define __gen_calIImportExport_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* 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; */
  NS_IMETHOD GetDefaultExtension(nsAString & aDefaultExtension) = 0;

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

  /* readonly attribute AString description; */
  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); } 

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

/* Header file */
class _MYCLASS_ : public calIFileType
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIFILETYPE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIFileType)

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

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

/* readonly attribute AString defaultExtension; */
NS_IMETHODIMP _MYCLASS_::GetDefaultExtension(nsAString & aDefaultExtension)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString extensionFilter; */
NS_IMETHODIMP _MYCLASS_::GetExtensionFilter(nsAString & aExtensionFilter)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString description; */
NS_IMETHODIMP _MYCLASS_::GetDescription(nsAString & aDescription)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* 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); */
  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); */
  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); } 

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

/* Header file */
class _MYCLASS_ : public calIImporter
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIIMPORTER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIImporter)

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

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

/* void getFileTypes (out unsigned long aCount, [array, size_is (aCount), retval] out calIFileType aTypes); */
NS_IMETHODIMP _MYCLASS_::GetFileTypes(uint32_t *aCount, calIFileType * **aTypes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void importFromStream (in nsIInputStream aStream, out unsigned long aCount, [array, size_is (aCount), retval] out calIItemBase aItems); */
NS_IMETHODIMP _MYCLASS_::ImportFromStream(nsIInputStream *aStream, uint32_t *aCount, calIItemBase * **aItems)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* 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); */
  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); */
  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); } 

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

/* Header file */
class _MYCLASS_ : public calIExporter
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_CALIEXPORTER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, calIExporter)

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

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

/* void getFileTypes (out unsigned long aCount, [array, size_is (aCount), retval] out calIFileType aTypes); */
NS_IMETHODIMP _MYCLASS_::GetFileTypes(uint32_t *aCount, calIFileType * **aTypes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void exportToStream (in nsIOutputStream aStream, in unsigned long aCount, [array, size_is (aCount)] in calIItemBase aItems, in AString aTitle); */
NS_IMETHODIMP _MYCLASS_::ExportToStream(nsIOutputStream *aStream, uint32_t aCount, calIItemBase **aItems, const nsAString & aTitle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_calIImportExport_h__ */