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

#ifndef __gen_imIAccountsService_h__
#define __gen_imIAccountsService_h__


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

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

#ifndef __gen_imIAccount_h__
#include "imIAccount.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:    imIAccountsService */
#define IMIACCOUNTSSERVICE_IID_STR "b3b6459a-5c26-47b8-8e9c-ba838b6f632a"

#define IMIACCOUNTSSERVICE_IID \
  {0xb3b6459a, 0x5c26, 0x47b8, \
    { 0x8e, 0x9c, 0xba, 0x83, 0x8b, 0x6f, 0x63, 0x2a }}

class NS_NO_VTABLE imIAccountsService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMIACCOUNTSSERVICE_IID)

  /* void initAccounts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitAccounts(void) = 0;

  /* void unInitAccounts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnInitAccounts(void) = 0;

  /* attribute short autoLoginStatus; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAutoLoginStatus(int16_t *aAutoLoginStatus) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAutoLoginStatus(int16_t aAutoLoginStatus) = 0;

  enum {
    AUTOLOGIN_ENABLED = 0,
    AUTOLOGIN_USER_DISABLED = 1,
    AUTOLOGIN_SAFE_MODE = 2,
    AUTOLOGIN_CRASH = 3,
    AUTOLOGIN_START_OFFLINE = 4
  };

  /* void processAutoLogin (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProcessAutoLogin(void) = 0;

  /* imIAccount getAccountById (in AUTF8String aAccountId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAccountById(const nsACString& aAccountId, imIAccount **_retval) = 0;

  /* imIAccount getAccountByNumericId (in unsigned long aAccountId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAccountByNumericId(uint32_t aAccountId, imIAccount **_retval) = 0;

  /* nsISimpleEnumerator getAccounts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAccounts(nsISimpleEnumerator **_retval) = 0;

  /* imIAccount createAccount (in AUTF8String aName, in AUTF8String aPrpl); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateAccount(const nsACString& aName, const nsACString& aPrpl, imIAccount **_retval) = 0;

  /* void deleteAccount (in AUTF8String aAccountId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteAccount(const nsACString& aAccountId) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIAccountsService, IMIACCOUNTSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIACCOUNTSSERVICE \
  NS_IMETHOD InitAccounts(void) override; \
  NS_IMETHOD UnInitAccounts(void) override; \
  NS_IMETHOD GetAutoLoginStatus(int16_t *aAutoLoginStatus) override; \
  NS_IMETHOD SetAutoLoginStatus(int16_t aAutoLoginStatus) override; \
  NS_IMETHOD ProcessAutoLogin(void) override; \
  NS_IMETHOD GetAccountById(const nsACString& aAccountId, imIAccount **_retval) override; \
  NS_IMETHOD GetAccountByNumericId(uint32_t aAccountId, imIAccount **_retval) override; \
  NS_IMETHOD GetAccounts(nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD CreateAccount(const nsACString& aName, const nsACString& aPrpl, imIAccount **_retval) override; \
  NS_IMETHOD DeleteAccount(const nsACString& aAccountId) 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_IMIACCOUNTSSERVICE \
  nsresult InitAccounts(void); \
  nsresult UnInitAccounts(void); \
  nsresult GetAutoLoginStatus(int16_t *aAutoLoginStatus); \
  nsresult SetAutoLoginStatus(int16_t aAutoLoginStatus); \
  nsresult ProcessAutoLogin(void); \
  nsresult GetAccountById(const nsACString& aAccountId, imIAccount **_retval); \
  nsresult GetAccountByNumericId(uint32_t aAccountId, imIAccount **_retval); \
  nsresult GetAccounts(nsISimpleEnumerator **_retval); \
  nsresult CreateAccount(const nsACString& aName, const nsACString& aPrpl, imIAccount **_retval); \
  nsresult DeleteAccount(const nsACString& aAccountId); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIACCOUNTSSERVICE(_to) \
  NS_IMETHOD InitAccounts(void) override { return _to InitAccounts(); } \
  NS_IMETHOD UnInitAccounts(void) override { return _to UnInitAccounts(); } \
  NS_IMETHOD GetAutoLoginStatus(int16_t *aAutoLoginStatus) override { return _to GetAutoLoginStatus(aAutoLoginStatus); } \
  NS_IMETHOD SetAutoLoginStatus(int16_t aAutoLoginStatus) override { return _to SetAutoLoginStatus(aAutoLoginStatus); } \
  NS_IMETHOD ProcessAutoLogin(void) override { return _to ProcessAutoLogin(); } \
  NS_IMETHOD GetAccountById(const nsACString& aAccountId, imIAccount **_retval) override { return _to GetAccountById(aAccountId, _retval); } \
  NS_IMETHOD GetAccountByNumericId(uint32_t aAccountId, imIAccount **_retval) override { return _to GetAccountByNumericId(aAccountId, _retval); } \
  NS_IMETHOD GetAccounts(nsISimpleEnumerator **_retval) override { return _to GetAccounts(_retval); } \
  NS_IMETHOD CreateAccount(const nsACString& aName, const nsACString& aPrpl, imIAccount **_retval) override { return _to CreateAccount(aName, aPrpl, _retval); } \
  NS_IMETHOD DeleteAccount(const nsACString& aAccountId) override { return _to DeleteAccount(aAccountId); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIACCOUNTSSERVICE(_to) \
  NS_IMETHOD InitAccounts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitAccounts(); } \
  NS_IMETHOD UnInitAccounts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInitAccounts(); } \
  NS_IMETHOD GetAutoLoginStatus(int16_t *aAutoLoginStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoLoginStatus(aAutoLoginStatus); } \
  NS_IMETHOD SetAutoLoginStatus(int16_t aAutoLoginStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutoLoginStatus(aAutoLoginStatus); } \
  NS_IMETHOD ProcessAutoLogin(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessAutoLogin(); } \
  NS_IMETHOD GetAccountById(const nsACString& aAccountId, imIAccount **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountById(aAccountId, _retval); } \
  NS_IMETHOD GetAccountByNumericId(uint32_t aAccountId, imIAccount **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountByNumericId(aAccountId, _retval); } \
  NS_IMETHOD GetAccounts(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccounts(_retval); } \
  NS_IMETHOD CreateAccount(const nsACString& aName, const nsACString& aPrpl, imIAccount **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAccount(aName, aPrpl, _retval); } \
  NS_IMETHOD DeleteAccount(const nsACString& aAccountId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteAccount(aAccountId); } 


#endif /* __gen_imIAccountsService_h__ */