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

#ifndef __gen_imIUserStatusInfo_h__
#define __gen_imIUserStatusInfo_h__


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

#ifndef __gen_nsIObserver_h__
#include "nsIObserver.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 nsIFileURL; /* forward declaration */


/* starting interface:    imIUserStatusInfo */
#define IMIUSERSTATUSINFO_IID_STR "817918fa-1f4b-4254-9cdb-f906da91c45d"

#define IMIUSERSTATUSINFO_IID \
  {0x817918fa, 0x1f4b, 0x4254, \
    { 0x9c, 0xdb, 0xf9, 0x06, 0xda, 0x91, 0xc4, 0x5d }}

class NS_NO_VTABLE imIUserStatusInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMIUSERSTATUSINFO_IID)

  /* readonly attribute AUTF8String statusText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusText(nsACString& aStatusText) = 0;

  /* readonly attribute short statusType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusType(int16_t *aStatusType) = 0;

  /* void setStatus (in short aStatus, in AUTF8String aMessage); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatus(int16_t aStatus, const nsACString& aMessage) = 0;

  /* void setUserIcon (in nsIFile aIconFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUserIcon(nsIFile *aIconFile) = 0;

  /* nsIFileURL getUserIcon (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUserIcon(nsIFileURL **_retval) = 0;

  /* attribute AUTF8String displayName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayName(nsACString& aDisplayName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisplayName(const nsACString& aDisplayName) = 0;

  /* void addObserver (in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddObserver(nsIObserver *aObserver) = 0;

  /* void removeObserver (in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveObserver(nsIObserver *aObserver) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIUserStatusInfo, IMIUSERSTATUSINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIUSERSTATUSINFO \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override; \
  NS_IMETHOD GetStatusType(int16_t *aStatusType) override; \
  NS_IMETHOD SetStatus(int16_t aStatus, const nsACString& aMessage) override; \
  NS_IMETHOD SetUserIcon(nsIFile *aIconFile) override; \
  NS_IMETHOD GetUserIcon(nsIFileURL **_retval) override; \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override; \
  NS_IMETHOD SetDisplayName(const nsACString& aDisplayName) override; \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override; \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) 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_IMIUSERSTATUSINFO \
  nsresult GetStatusText(nsACString& aStatusText); \
  nsresult GetStatusType(int16_t *aStatusType); \
  nsresult SetStatus(int16_t aStatus, const nsACString& aMessage); \
  nsresult SetUserIcon(nsIFile *aIconFile); \
  nsresult GetUserIcon(nsIFileURL **_retval); \
  nsresult GetDisplayName(nsACString& aDisplayName); \
  nsresult SetDisplayName(const nsACString& aDisplayName); \
  nsresult AddObserver(nsIObserver *aObserver); \
  nsresult RemoveObserver(nsIObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIUSERSTATUSINFO(_to) \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override { return _to GetStatusText(aStatusText); } \
  NS_IMETHOD GetStatusType(int16_t *aStatusType) override { return _to GetStatusType(aStatusType); } \
  NS_IMETHOD SetStatus(int16_t aStatus, const nsACString& aMessage) override { return _to SetStatus(aStatus, aMessage); } \
  NS_IMETHOD SetUserIcon(nsIFile *aIconFile) override { return _to SetUserIcon(aIconFile); } \
  NS_IMETHOD GetUserIcon(nsIFileURL **_retval) override { return _to GetUserIcon(_retval); } \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD SetDisplayName(const nsACString& aDisplayName) override { return _to SetDisplayName(aDisplayName); } \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return _to AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return _to RemoveObserver(aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIUSERSTATUSINFO(_to) \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
  NS_IMETHOD GetStatusType(int16_t *aStatusType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusType(aStatusType); } \
  NS_IMETHOD SetStatus(int16_t aStatus, const nsACString& aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatus(aStatus, aMessage); } \
  NS_IMETHOD SetUserIcon(nsIFile *aIconFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserIcon(aIconFile); } \
  NS_IMETHOD GetUserIcon(nsIFileURL **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserIcon(_retval); } \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD SetDisplayName(const nsACString& aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayName(aDisplayName); } \
  NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } 


#endif /* __gen_imIUserStatusInfo_h__ */