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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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

/* 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 (); */
  NS_IMETHOD InitAccounts(void) = 0;

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

  /* attribute short autoLoginStatus; */
  NS_IMETHOD GetAutoLoginStatus(int16_t *aAutoLoginStatus) = 0;
  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 (); */
  NS_IMETHOD ProcessAutoLogin(void) = 0;

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

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

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

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

  /* void deleteAccount (in AUTF8String aAccountId); */
  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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class imAccountsService : public imIAccountsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMIACCOUNTSSERVICE

  imAccountsService();

private:
  ~imAccountsService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imAccountsService, imIAccountsService)

imAccountsService::imAccountsService()
{
  /* member initializers and constructor code */
}

imAccountsService::~imAccountsService()
{
  /* destructor code */
}

/* void initAccounts (); */
NS_IMETHODIMP imAccountsService::InitAccounts()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unInitAccounts (); */
NS_IMETHODIMP imAccountsService::UnInitAccounts()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute short autoLoginStatus; */
NS_IMETHODIMP imAccountsService::GetAutoLoginStatus(int16_t *aAutoLoginStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imAccountsService::SetAutoLoginStatus(int16_t aAutoLoginStatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void processAutoLogin (); */
NS_IMETHODIMP imAccountsService::ProcessAutoLogin()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imIAccount getAccountById (in AUTF8String aAccountId); */
NS_IMETHODIMP imAccountsService::GetAccountById(const nsACString & aAccountId, imIAccount * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imIAccount getAccountByNumericId (in unsigned long aAccountId); */
NS_IMETHODIMP imAccountsService::GetAccountByNumericId(uint32_t aAccountId, imIAccount * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getAccounts (); */
NS_IMETHODIMP imAccountsService::GetAccounts(nsISimpleEnumerator * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imIAccount createAccount (in AUTF8String aName, in AUTF8String aPrpl); */
NS_IMETHODIMP imAccountsService::CreateAccount(const nsACString & aName, const nsACString & aPrpl, imIAccount * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteAccount (in AUTF8String aAccountId); */
NS_IMETHODIMP imAccountsService::DeleteAccount(const nsACString & aAccountId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_imIAccountsService_h__ */