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

#ifndef __gen_nsIMsgFolderCache_h__
#define __gen_nsIMsgFolderCache_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 nsIMsgFolderCacheElement; /* forward declaration */


/* starting interface:    nsIMsgFolderCache */
#define NS_IMSGFOLDERCACHE_IID_STR "78c2b6a2-e29f-44de-9543-10dbb51e245c"

#define NS_IMSGFOLDERCACHE_IID \
  {0x78c2b6a2, 0xe29f, 0x44de, \
    { 0x95, 0x43, 0x10, 0xdb, 0xb5, 0x1e, 0x24, 0x5c }}

class NS_NO_VTABLE nsIMsgFolderCache : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGFOLDERCACHE_IID)

  /* void Init (in nsIFile aFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIFile *aFile) = 0;

  /* nsIMsgFolderCacheElement GetCacheElement (in ACString key, in boolean createIfMissing); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheElement(const nsACString& key, bool createIfMissing, nsIMsgFolderCacheElement **_retval) = 0;

  /* void clear (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Clear(void) = 0;

  /* void close (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Close(void) = 0;

  /* void commit (in boolean compress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Commit(bool compress) = 0;

  /* void removeElement (in ACString key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveElement(const nsACString& key) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgFolderCache, NS_IMSGFOLDERCACHE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFOLDERCACHE \
  NS_IMETHOD Init(nsIFile *aFile) override; \
  NS_IMETHOD GetCacheElement(const nsACString& key, bool createIfMissing, nsIMsgFolderCacheElement **_retval) override; \
  NS_IMETHOD Clear(void) override; \
  NS_IMETHOD Close(void) override; \
  NS_IMETHOD Commit(bool compress) override; \
  NS_IMETHOD RemoveElement(const nsACString& key) 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_NSIMSGFOLDERCACHE \
  nsresult Init(nsIFile *aFile); \
  nsresult GetCacheElement(const nsACString& key, bool createIfMissing, nsIMsgFolderCacheElement **_retval); \
  nsresult Clear(void); \
  nsresult Close(void); \
  nsresult Commit(bool compress); \
  nsresult RemoveElement(const nsACString& key); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFOLDERCACHE(_to) \
  NS_IMETHOD Init(nsIFile *aFile) override { return _to Init(aFile); } \
  NS_IMETHOD GetCacheElement(const nsACString& key, bool createIfMissing, nsIMsgFolderCacheElement **_retval) override { return _to GetCacheElement(key, createIfMissing, _retval); } \
  NS_IMETHOD Clear(void) override { return _to Clear(); } \
  NS_IMETHOD Close(void) override { return _to Close(); } \
  NS_IMETHOD Commit(bool compress) override { return _to Commit(compress); } \
  NS_IMETHOD RemoveElement(const nsACString& key) override { return _to RemoveElement(key); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGFOLDERCACHE(_to) \
  NS_IMETHOD Init(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aFile); } \
  NS_IMETHOD GetCacheElement(const nsACString& key, bool createIfMissing, nsIMsgFolderCacheElement **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheElement(key, createIfMissing, _retval); } \
  NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
  NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
  NS_IMETHOD Commit(bool compress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Commit(compress); } \
  NS_IMETHOD RemoveElement(const nsACString& key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElement(key); } 


#endif /* __gen_nsIMsgFolderCache_h__ */