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

#ifndef __gen_imIStatusInfo_h__
#define __gen_imIStatusInfo_h__


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

#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif

#ifndef __gen_prplIConversation_h__
#include "prplIConversation.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:    imIStatusInfo */
#define IMISTATUSINFO_IID_STR "f13dc4fc-5334-45cb-aa58-a92851955e55"

#define IMISTATUSINFO_IID \
  {0xf13dc4fc, 0x5334, 0x45cb, \
    { 0xaa, 0x58, 0xa9, 0x28, 0x51, 0x95, 0x5e, 0x55 }}

class NS_NO_VTABLE imIStatusInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMISTATUSINFO_IID)

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

  /* readonly attribute AUTF8String buddyIconFilename; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBuddyIconFilename(nsACString& aBuddyIconFilename) = 0;

  enum {
    STATUS_UNKNOWN = 0,
    STATUS_OFFLINE = 1,
    STATUS_INVISIBLE = 2,
    STATUS_MOBILE = 3,
    STATUS_IDLE = 4,
    STATUS_AWAY = 5,
    STATUS_UNAVAILABLE = 6,
    STATUS_AVAILABLE = 7
  };

  /* readonly attribute long statusType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusType(int32_t *aStatusType) = 0;

  /* readonly attribute boolean online; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOnline(bool *aOnline) = 0;

  /* readonly attribute boolean available; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailable(bool *aAvailable) = 0;

  /* readonly attribute boolean idle; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIdle(bool *aIdle) = 0;

  /* readonly attribute boolean mobile; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMobile(bool *aMobile) = 0;

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

  /* readonly attribute long availabilityDetails; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailabilityDetails(int32_t *aAvailabilityDetails) = 0;

  /* readonly attribute boolean canSendMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanSendMessage(bool *aCanSendMessage) = 0;

  /* nsISimpleEnumerator getTooltipInfo (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTooltipInfo(nsISimpleEnumerator **_retval) = 0;

  /* prplIConversation createConversation (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateConversation(prplIConversation **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIStatusInfo, IMISTATUSINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMISTATUSINFO \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override; \
  NS_IMETHOD GetBuddyIconFilename(nsACString& aBuddyIconFilename) override; \
  NS_IMETHOD GetStatusType(int32_t *aStatusType) override; \
  NS_IMETHOD GetOnline(bool *aOnline) override; \
  NS_IMETHOD GetAvailable(bool *aAvailable) override; \
  NS_IMETHOD GetIdle(bool *aIdle) override; \
  NS_IMETHOD GetMobile(bool *aMobile) override; \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override; \
  NS_IMETHOD GetAvailabilityDetails(int32_t *aAvailabilityDetails) override; \
  NS_IMETHOD GetCanSendMessage(bool *aCanSendMessage) override; \
  NS_IMETHOD GetTooltipInfo(nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD CreateConversation(prplIConversation **_retval) 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_IMISTATUSINFO \
  nsresult GetDisplayName(nsACString& aDisplayName); \
  nsresult GetBuddyIconFilename(nsACString& aBuddyIconFilename); \
  nsresult GetStatusType(int32_t *aStatusType); \
  nsresult GetOnline(bool *aOnline); \
  nsresult GetAvailable(bool *aAvailable); \
  nsresult GetIdle(bool *aIdle); \
  nsresult GetMobile(bool *aMobile); \
  nsresult GetStatusText(nsACString& aStatusText); \
  nsresult GetAvailabilityDetails(int32_t *aAvailabilityDetails); \
  nsresult GetCanSendMessage(bool *aCanSendMessage); \
  nsresult GetTooltipInfo(nsISimpleEnumerator **_retval); \
  nsresult CreateConversation(prplIConversation **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMISTATUSINFO(_to) \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD GetBuddyIconFilename(nsACString& aBuddyIconFilename) override { return _to GetBuddyIconFilename(aBuddyIconFilename); } \
  NS_IMETHOD GetStatusType(int32_t *aStatusType) override { return _to GetStatusType(aStatusType); } \
  NS_IMETHOD GetOnline(bool *aOnline) override { return _to GetOnline(aOnline); } \
  NS_IMETHOD GetAvailable(bool *aAvailable) override { return _to GetAvailable(aAvailable); } \
  NS_IMETHOD GetIdle(bool *aIdle) override { return _to GetIdle(aIdle); } \
  NS_IMETHOD GetMobile(bool *aMobile) override { return _to GetMobile(aMobile); } \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override { return _to GetStatusText(aStatusText); } \
  NS_IMETHOD GetAvailabilityDetails(int32_t *aAvailabilityDetails) override { return _to GetAvailabilityDetails(aAvailabilityDetails); } \
  NS_IMETHOD GetCanSendMessage(bool *aCanSendMessage) override { return _to GetCanSendMessage(aCanSendMessage); } \
  NS_IMETHOD GetTooltipInfo(nsISimpleEnumerator **_retval) override { return _to GetTooltipInfo(_retval); } \
  NS_IMETHOD CreateConversation(prplIConversation **_retval) override { return _to CreateConversation(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMISTATUSINFO(_to) \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD GetBuddyIconFilename(nsACString& aBuddyIconFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddyIconFilename(aBuddyIconFilename); } \
  NS_IMETHOD GetStatusType(int32_t *aStatusType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusType(aStatusType); } \
  NS_IMETHOD GetOnline(bool *aOnline) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnline(aOnline); } \
  NS_IMETHOD GetAvailable(bool *aAvailable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailable(aAvailable); } \
  NS_IMETHOD GetIdle(bool *aIdle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdle(aIdle); } \
  NS_IMETHOD GetMobile(bool *aMobile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMobile(aMobile); } \
  NS_IMETHOD GetStatusText(nsACString& aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
  NS_IMETHOD GetAvailabilityDetails(int32_t *aAvailabilityDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailabilityDetails(aAvailabilityDetails); } \
  NS_IMETHOD GetCanSendMessage(bool *aCanSendMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanSendMessage(aCanSendMessage); } \
  NS_IMETHOD GetTooltipInfo(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTooltipInfo(_retval); } \
  NS_IMETHOD CreateConversation(prplIConversation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateConversation(_retval); } 


#endif /* __gen_imIStatusInfo_h__ */