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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/netwerk/streamconv/nsIDirIndex.idl
 */

#ifndef __gen_nsIDirIndex_h__
#define __gen_nsIDirIndex_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

/* starting interface:    nsIDirIndex */
#define NS_IDIRINDEX_IID_STR "23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0"

#define NS_IDIRINDEX_IID \
  {0x23bbabd0, 0x1dd2, 0x11b2, \
    { 0x86, 0xb7, 0xaa, 0xd6, 0x8a, 0xe7, 0xd7, 0xe0 }}

class NS_NO_VTABLE nsIDirIndex : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRINDEX_IID)

  enum {
    TYPE_UNKNOWN = 0U,
    TYPE_DIRECTORY = 1U,
    TYPE_FILE = 2U,
    TYPE_SYMLINK = 3U
  };

  /* attribute unsigned long type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(uint32_t *aType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetType(uint32_t aType) = 0;

  /* attribute string contentType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentType(char * *aContentType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentType(const char * aContentType) = 0;

  /* attribute string location; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLocation(char * *aLocation) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLocation(const char * aLocation) = 0;

  /* attribute wstring description; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDescription(char16_t * *aDescription) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDescription(const char16_t * aDescription) = 0;

  /* attribute long long size; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSize(int64_t *aSize) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSize(int64_t aSize) = 0;

  /* attribute PRTime lastModified; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLastModified(PRTime aLastModified) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirIndex, NS_IDIRINDEX_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDIRINDEX \
  NS_IMETHOD GetType(uint32_t *aType) override; \
  NS_IMETHOD SetType(uint32_t aType) override; \
  NS_IMETHOD GetContentType(char * *aContentType) override; \
  NS_IMETHOD SetContentType(const char * aContentType) override; \
  NS_IMETHOD GetLocation(char * *aLocation) override; \
  NS_IMETHOD SetLocation(const char * aLocation) override; \
  NS_IMETHOD GetDescription(char16_t * *aDescription) override; \
  NS_IMETHOD SetDescription(const char16_t * aDescription) override; \
  NS_IMETHOD GetSize(int64_t *aSize) override; \
  NS_IMETHOD SetSize(int64_t aSize) override; \
  NS_IMETHOD GetLastModified(PRTime *aLastModified) override; \
  NS_IMETHOD SetLastModified(PRTime aLastModified) 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_NSIDIRINDEX \
  nsresult GetType(uint32_t *aType); \
  nsresult SetType(uint32_t aType); \
  nsresult GetContentType(char * *aContentType); \
  nsresult SetContentType(const char * aContentType); \
  nsresult GetLocation(char * *aLocation); \
  nsresult SetLocation(const char * aLocation); \
  nsresult GetDescription(char16_t * *aDescription); \
  nsresult SetDescription(const char16_t * aDescription); \
  nsresult GetSize(int64_t *aSize); \
  nsresult SetSize(int64_t aSize); \
  nsresult GetLastModified(PRTime *aLastModified); \
  nsresult SetLastModified(PRTime aLastModified); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDIRINDEX(_to) \
  NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
  NS_IMETHOD SetType(uint32_t aType) override { return _to SetType(aType); } \
  NS_IMETHOD GetContentType(char * *aContentType) override { return _to GetContentType(aContentType); } \
  NS_IMETHOD SetContentType(const char * aContentType) override { return _to SetContentType(aContentType); } \
  NS_IMETHOD GetLocation(char * *aLocation) override { return _to GetLocation(aLocation); } \
  NS_IMETHOD SetLocation(const char * aLocation) override { return _to SetLocation(aLocation); } \
  NS_IMETHOD GetDescription(char16_t * *aDescription) override { return _to GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const char16_t * aDescription) override { return _to SetDescription(aDescription); } \
  NS_IMETHOD GetSize(int64_t *aSize) override { return _to GetSize(aSize); } \
  NS_IMETHOD SetSize(int64_t aSize) override { return _to SetSize(aSize); } \
  NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return _to GetLastModified(aLastModified); } \
  NS_IMETHOD SetLastModified(PRTime aLastModified) override { return _to SetLastModified(aLastModified); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDIRINDEX(_to) \
  NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD SetType(uint32_t aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  NS_IMETHOD GetContentType(char * *aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
  NS_IMETHOD SetContentType(const char * aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
  NS_IMETHOD GetLocation(char * *aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
  NS_IMETHOD SetLocation(const char * aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocation(aLocation); } \
  NS_IMETHOD GetDescription(char16_t * *aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  NS_IMETHOD SetDescription(const char16_t * aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
  NS_IMETHOD GetSize(int64_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  NS_IMETHOD SetSize(int64_t aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
  NS_IMETHOD SetLastModified(PRTime aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModified(aLastModified); } 


#define NS_DIRINDEX_CID \
/* { f6913e2e-1dd1-11b2-84be-f455dee342af } */ \
{ 0xf6913e2e, \
  0x1dd1, \
  0x11b2, \
  { 0x84, 0xbe, 0xf4, 0x55, 0xde, 0xe3, 0x42, 0xaf } \
}

#endif /* __gen_nsIDirIndex_h__ */