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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/places/nsIAnnotationService.idl
 */

#ifndef __gen_nsIAnnotationService_h__
#define __gen_nsIAnnotationService_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 nsIURI; /* forward declaration */

class nsIVariant; /* forward declaration */


/* starting interface:    nsIAnnotationService */
#define NS_IANNOTATIONSERVICE_IID_STR "d4cdaab1-8eec-47a8-b420-ad7cb333056a"

#define NS_IANNOTATIONSERVICE_IID \
  {0xd4cdaab1, 0x8eec, 0x47a8, \
    { 0xb4, 0x20, 0xad, 0x7c, 0xb3, 0x33, 0x05, 0x6a }}

class NS_NO_VTABLE nsIAnnotationService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IANNOTATIONSERVICE_IID)

  enum {
    EXPIRE_NEVER = 4U,
    TYPE_INT32 = 1U,
    TYPE_DOUBLE = 2U,
    TYPE_STRING = 3U,
    TYPE_INT64 = 5U
  };

  /* void setItemAnnotation (in long long aItemId, in AUTF8String aName, in nsIVariant aValue, in long aFlags, in unsigned short aExpiration, [optional] in unsigned short aSource, [optional] in bool aDontUpdateLastModified); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant *aValue, int32_t aFlags, uint16_t aExpiration, uint16_t aSource, bool aDontUpdateLastModified) = 0;

  /* nsIVariant getItemAnnotation (in long long aItemId, in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant **_retval) = 0;

  /* void getItemAnnotationInfo (in long long aItemId, in AUTF8String aName, out nsIVariant aValue, out long aFlags, out unsigned short aExpiration, out unsigned short aType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemAnnotationInfo(int64_t aItemId, const nsACString& aName, nsIVariant **aValue, int32_t *aFlags, uint16_t *aExpiration, uint16_t *aType) = 0;

  /* void getItemAnnotationNames (in long long aItemId, [optional] out unsigned long count, [array, size_is (count), retval] out nsIVariant result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemAnnotationNames(int64_t aItemId, uint32_t *count, nsIVariant ***result) = 0;

  /* boolean itemHasAnnotation (in long long aItemId, in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ItemHasAnnotation(int64_t aItemId, const nsACString& aName, bool *_retval) = 0;

  /* void removeItemAnnotation (in long long aItemId, in AUTF8String aName, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveItemAnnotation(int64_t aItemId, const nsACString& aName, uint16_t aSource) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAnnotationService, NS_IANNOTATIONSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIANNOTATIONSERVICE \
  NS_IMETHOD SetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant *aValue, int32_t aFlags, uint16_t aExpiration, uint16_t aSource, bool aDontUpdateLastModified) override; \
  NS_IMETHOD GetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant **_retval) override; \
  NS_IMETHOD GetItemAnnotationInfo(int64_t aItemId, const nsACString& aName, nsIVariant **aValue, int32_t *aFlags, uint16_t *aExpiration, uint16_t *aType) override; \
  NS_IMETHOD GetItemAnnotationNames(int64_t aItemId, uint32_t *count, nsIVariant ***result) override; \
  NS_IMETHOD ItemHasAnnotation(int64_t aItemId, const nsACString& aName, bool *_retval) override; \
  NS_IMETHOD RemoveItemAnnotation(int64_t aItemId, const nsACString& aName, uint16_t aSource) 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_NSIANNOTATIONSERVICE \
  nsresult SetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant *aValue, int32_t aFlags, uint16_t aExpiration, uint16_t aSource, bool aDontUpdateLastModified); \
  nsresult GetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant **_retval); \
  nsresult GetItemAnnotationInfo(int64_t aItemId, const nsACString& aName, nsIVariant **aValue, int32_t *aFlags, uint16_t *aExpiration, uint16_t *aType); \
  nsresult GetItemAnnotationNames(int64_t aItemId, uint32_t *count, nsIVariant ***result); \
  nsresult ItemHasAnnotation(int64_t aItemId, const nsACString& aName, bool *_retval); \
  nsresult RemoveItemAnnotation(int64_t aItemId, const nsACString& aName, uint16_t aSource); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIANNOTATIONSERVICE(_to) \
  NS_IMETHOD SetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant *aValue, int32_t aFlags, uint16_t aExpiration, uint16_t aSource, bool aDontUpdateLastModified) override { return _to SetItemAnnotation(aItemId, aName, aValue, aFlags, aExpiration, aSource, aDontUpdateLastModified); } \
  NS_IMETHOD GetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant **_retval) override { return _to GetItemAnnotation(aItemId, aName, _retval); } \
  NS_IMETHOD GetItemAnnotationInfo(int64_t aItemId, const nsACString& aName, nsIVariant **aValue, int32_t *aFlags, uint16_t *aExpiration, uint16_t *aType) override { return _to GetItemAnnotationInfo(aItemId, aName, aValue, aFlags, aExpiration, aType); } \
  NS_IMETHOD GetItemAnnotationNames(int64_t aItemId, uint32_t *count, nsIVariant ***result) override { return _to GetItemAnnotationNames(aItemId, count, result); } \
  NS_IMETHOD ItemHasAnnotation(int64_t aItemId, const nsACString& aName, bool *_retval) override { return _to ItemHasAnnotation(aItemId, aName, _retval); } \
  NS_IMETHOD RemoveItemAnnotation(int64_t aItemId, const nsACString& aName, uint16_t aSource) override { return _to RemoveItemAnnotation(aItemId, aName, aSource); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIANNOTATIONSERVICE(_to) \
  NS_IMETHOD SetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant *aValue, int32_t aFlags, uint16_t aExpiration, uint16_t aSource, bool aDontUpdateLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItemAnnotation(aItemId, aName, aValue, aFlags, aExpiration, aSource, aDontUpdateLastModified); } \
  NS_IMETHOD GetItemAnnotation(int64_t aItemId, const nsACString& aName, nsIVariant **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAnnotation(aItemId, aName, _retval); } \
  NS_IMETHOD GetItemAnnotationInfo(int64_t aItemId, const nsACString& aName, nsIVariant **aValue, int32_t *aFlags, uint16_t *aExpiration, uint16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAnnotationInfo(aItemId, aName, aValue, aFlags, aExpiration, aType); } \
  NS_IMETHOD GetItemAnnotationNames(int64_t aItemId, uint32_t *count, nsIVariant ***result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAnnotationNames(aItemId, count, result); } \
  NS_IMETHOD ItemHasAnnotation(int64_t aItemId, const nsACString& aName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ItemHasAnnotation(aItemId, aName, _retval); } \
  NS_IMETHOD RemoveItemAnnotation(int64_t aItemId, const nsACString& aName, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItemAnnotation(aItemId, aName, aSource); } 


#endif /* __gen_nsIAnnotationService_h__ */