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

#ifndef __gen_nsIMsgCloudFileProvider_h__
#define __gen_nsIMsgCloudFileProvider_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 nsIFile; /* forward declaration */

class nsIRequestObserver; /* forward declaration */

class nsIPrefBranch; /* forward declaration */


/* starting interface:    nsIMsgCloudFileProvider */
#define NS_IMSGCLOUDFILEPROVIDER_IID_STR "c961919b-980b-4adc-bcfe-dabe916d1acc"

#define NS_IMSGCLOUDFILEPROVIDER_IID \
  {0xc961919b, 0x980b, 0x4adc, \
    { 0xbc, 0xfe, 0xda, 0xbe, 0x91, 0x6d, 0x1a, 0xcc }}

class NS_NO_VTABLE nsIMsgCloudFileProvider : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGCLOUDFILEPROVIDER_IID)

  /* readonly attribute ACString type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsACString& aType) = 0;

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

  /* readonly attribute ACString serviceURL; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServiceURL(nsACString& aServiceURL) = 0;

  /* readonly attribute ACString iconClass; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIconClass(nsACString& aIconClass) = 0;

  /* readonly attribute ACString accountKey; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAccountKey(nsACString& aAccountKey) = 0;

  /* readonly attribute ACString settingsURL; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSettingsURL(nsACString& aSettingsURL) = 0;

  /* readonly attribute ACString managementURL; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetManagementURL(nsACString& aManagementURL) = 0;

  /* void init (in ACString aAccountKey); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsACString& aAccountKey) = 0;

  /* void uploadFile (in nsIFile aFile, in nsIRequestObserver aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UploadFile(nsIFile *aFile, nsIRequestObserver *aCallback) = 0;

  /* ACString urlForFile (in nsIFile aFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UrlForFile(nsIFile *aFile, nsACString& _retval) = 0;

  /* void cancelFileUpload (in nsIFile aFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelFileUpload(nsIFile *aFile) = 0;

  /* void refreshUserInfo (in boolean aWithUI, in nsIRequestObserver aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RefreshUserInfo(bool aWithUI, nsIRequestObserver *aCallback) = 0;

  /* void deleteFile (in nsIFile aFile, in nsIRequestObserver aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteFile(nsIFile *aFile, nsIRequestObserver *aCallback) = 0;

  /* void createNewAccount (in ACString aEmailAddress, in ACString aPassword, in ACString aFirstName, in ACString aLastName, in nsIRequestObserver aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateNewAccount(const nsACString& aEmailAddress, const nsACString& aPassword, const nsACString& aFirstName, const nsACString& aLastName, nsIRequestObserver *aCallback) = 0;

  /* void createExistingAccount (in nsIRequestObserver aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateExistingAccount(nsIRequestObserver *aCallback) = 0;

  /* readonly attribute ACString createNewAccountUrl; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCreateNewAccountUrl(nsACString& aCreateNewAccountUrl) = 0;

  /* ACString providerUrlForError (in unsigned long aError); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProviderUrlForError(uint32_t aError, nsACString& _retval) = 0;

  /* readonly attribute long fileUploadSizeLimit; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileUploadSizeLimit(int32_t *aFileUploadSizeLimit) = 0;

  /* readonly attribute long long remainingFileSpace; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRemainingFileSpace(int64_t *aRemainingFileSpace) = 0;

  /* readonly attribute long long fileSpaceUsed; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileSpaceUsed(int64_t *aFileSpaceUsed) = 0;

  /* void overrideUrls (in uint32_t aNumUrls, [array, size_is (aNumUrls)] in string aUrls); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OverrideUrls(uint32_t aNumUrls, const char * *aUrls) = 0;

  /* readonly attribute ACString lastError; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastError(nsACString& aLastError) = 0;

  enum {
    offlineErr = 2153054228U,
    authErr = 2153054238U,
    uploadErr = 2153066778U,
    uploadWouldExceedQuota = 2153066779U,
    uploadExceedsFileLimit = 2153066780U,
    uploadCanceled = 2153066781U,
    uploadExceedsFileNameLimit = 2153066782U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgCloudFileProvider, NS_IMSGCLOUDFILEPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGCLOUDFILEPROVIDER \
  NS_IMETHOD GetType(nsACString& aType) override; \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override; \
  NS_IMETHOD GetServiceURL(nsACString& aServiceURL) override; \
  NS_IMETHOD GetIconClass(nsACString& aIconClass) override; \
  NS_IMETHOD GetAccountKey(nsACString& aAccountKey) override; \
  NS_IMETHOD GetSettingsURL(nsACString& aSettingsURL) override; \
  NS_IMETHOD GetManagementURL(nsACString& aManagementURL) override; \
  NS_IMETHOD Init(const nsACString& aAccountKey) override; \
  NS_IMETHOD UploadFile(nsIFile *aFile, nsIRequestObserver *aCallback) override; \
  NS_IMETHOD UrlForFile(nsIFile *aFile, nsACString& _retval) override; \
  NS_IMETHOD CancelFileUpload(nsIFile *aFile) override; \
  NS_IMETHOD RefreshUserInfo(bool aWithUI, nsIRequestObserver *aCallback) override; \
  NS_IMETHOD DeleteFile(nsIFile *aFile, nsIRequestObserver *aCallback) override; \
  NS_IMETHOD CreateNewAccount(const nsACString& aEmailAddress, const nsACString& aPassword, const nsACString& aFirstName, const nsACString& aLastName, nsIRequestObserver *aCallback) override; \
  NS_IMETHOD CreateExistingAccount(nsIRequestObserver *aCallback) override; \
  NS_IMETHOD GetCreateNewAccountUrl(nsACString& aCreateNewAccountUrl) override; \
  NS_IMETHOD ProviderUrlForError(uint32_t aError, nsACString& _retval) override; \
  NS_IMETHOD GetFileUploadSizeLimit(int32_t *aFileUploadSizeLimit) override; \
  NS_IMETHOD GetRemainingFileSpace(int64_t *aRemainingFileSpace) override; \
  NS_IMETHOD GetFileSpaceUsed(int64_t *aFileSpaceUsed) override; \
  NS_IMETHOD OverrideUrls(uint32_t aNumUrls, const char * *aUrls) override; \
  NS_IMETHOD GetLastError(nsACString& aLastError) 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_NSIMSGCLOUDFILEPROVIDER \
  nsresult GetType(nsACString& aType); \
  nsresult GetDisplayName(nsACString& aDisplayName); \
  nsresult GetServiceURL(nsACString& aServiceURL); \
  nsresult GetIconClass(nsACString& aIconClass); \
  nsresult GetAccountKey(nsACString& aAccountKey); \
  nsresult GetSettingsURL(nsACString& aSettingsURL); \
  nsresult GetManagementURL(nsACString& aManagementURL); \
  nsresult Init(const nsACString& aAccountKey); \
  nsresult UploadFile(nsIFile *aFile, nsIRequestObserver *aCallback); \
  nsresult UrlForFile(nsIFile *aFile, nsACString& _retval); \
  nsresult CancelFileUpload(nsIFile *aFile); \
  nsresult RefreshUserInfo(bool aWithUI, nsIRequestObserver *aCallback); \
  nsresult DeleteFile(nsIFile *aFile, nsIRequestObserver *aCallback); \
  nsresult CreateNewAccount(const nsACString& aEmailAddress, const nsACString& aPassword, const nsACString& aFirstName, const nsACString& aLastName, nsIRequestObserver *aCallback); \
  nsresult CreateExistingAccount(nsIRequestObserver *aCallback); \
  nsresult GetCreateNewAccountUrl(nsACString& aCreateNewAccountUrl); \
  nsresult ProviderUrlForError(uint32_t aError, nsACString& _retval); \
  nsresult GetFileUploadSizeLimit(int32_t *aFileUploadSizeLimit); \
  nsresult GetRemainingFileSpace(int64_t *aRemainingFileSpace); \
  nsresult GetFileSpaceUsed(int64_t *aFileSpaceUsed); \
  nsresult OverrideUrls(uint32_t aNumUrls, const char * *aUrls); \
  nsresult GetLastError(nsACString& aLastError); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGCLOUDFILEPROVIDER(_to) \
  NS_IMETHOD GetType(nsACString& aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return _to GetDisplayName(aDisplayName); } \
  NS_IMETHOD GetServiceURL(nsACString& aServiceURL) override { return _to GetServiceURL(aServiceURL); } \
  NS_IMETHOD GetIconClass(nsACString& aIconClass) override { return _to GetIconClass(aIconClass); } \
  NS_IMETHOD GetAccountKey(nsACString& aAccountKey) override { return _to GetAccountKey(aAccountKey); } \
  NS_IMETHOD GetSettingsURL(nsACString& aSettingsURL) override { return _to GetSettingsURL(aSettingsURL); } \
  NS_IMETHOD GetManagementURL(nsACString& aManagementURL) override { return _to GetManagementURL(aManagementURL); } \
  NS_IMETHOD Init(const nsACString& aAccountKey) override { return _to Init(aAccountKey); } \
  NS_IMETHOD UploadFile(nsIFile *aFile, nsIRequestObserver *aCallback) override { return _to UploadFile(aFile, aCallback); } \
  NS_IMETHOD UrlForFile(nsIFile *aFile, nsACString& _retval) override { return _to UrlForFile(aFile, _retval); } \
  NS_IMETHOD CancelFileUpload(nsIFile *aFile) override { return _to CancelFileUpload(aFile); } \
  NS_IMETHOD RefreshUserInfo(bool aWithUI, nsIRequestObserver *aCallback) override { return _to RefreshUserInfo(aWithUI, aCallback); } \
  NS_IMETHOD DeleteFile(nsIFile *aFile, nsIRequestObserver *aCallback) override { return _to DeleteFile(aFile, aCallback); } \
  NS_IMETHOD CreateNewAccount(const nsACString& aEmailAddress, const nsACString& aPassword, const nsACString& aFirstName, const nsACString& aLastName, nsIRequestObserver *aCallback) override { return _to CreateNewAccount(aEmailAddress, aPassword, aFirstName, aLastName, aCallback); } \
  NS_IMETHOD CreateExistingAccount(nsIRequestObserver *aCallback) override { return _to CreateExistingAccount(aCallback); } \
  NS_IMETHOD GetCreateNewAccountUrl(nsACString& aCreateNewAccountUrl) override { return _to GetCreateNewAccountUrl(aCreateNewAccountUrl); } \
  NS_IMETHOD ProviderUrlForError(uint32_t aError, nsACString& _retval) override { return _to ProviderUrlForError(aError, _retval); } \
  NS_IMETHOD GetFileUploadSizeLimit(int32_t *aFileUploadSizeLimit) override { return _to GetFileUploadSizeLimit(aFileUploadSizeLimit); } \
  NS_IMETHOD GetRemainingFileSpace(int64_t *aRemainingFileSpace) override { return _to GetRemainingFileSpace(aRemainingFileSpace); } \
  NS_IMETHOD GetFileSpaceUsed(int64_t *aFileSpaceUsed) override { return _to GetFileSpaceUsed(aFileSpaceUsed); } \
  NS_IMETHOD OverrideUrls(uint32_t aNumUrls, const char * *aUrls) override { return _to OverrideUrls(aNumUrls, aUrls); } \
  NS_IMETHOD GetLastError(nsACString& aLastError) override { return _to GetLastError(aLastError); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGCLOUDFILEPROVIDER(_to) \
  NS_IMETHOD GetType(nsACString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetDisplayName(nsACString& aDisplayName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
  NS_IMETHOD GetServiceURL(nsACString& aServiceURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceURL(aServiceURL); } \
  NS_IMETHOD GetIconClass(nsACString& aIconClass) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconClass(aIconClass); } \
  NS_IMETHOD GetAccountKey(nsACString& aAccountKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountKey(aAccountKey); } \
  NS_IMETHOD GetSettingsURL(nsACString& aSettingsURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSettingsURL(aSettingsURL); } \
  NS_IMETHOD GetManagementURL(nsACString& aManagementURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManagementURL(aManagementURL); } \
  NS_IMETHOD Init(const nsACString& aAccountKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aAccountKey); } \
  NS_IMETHOD UploadFile(nsIFile *aFile, nsIRequestObserver *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UploadFile(aFile, aCallback); } \
  NS_IMETHOD UrlForFile(nsIFile *aFile, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UrlForFile(aFile, _retval); } \
  NS_IMETHOD CancelFileUpload(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelFileUpload(aFile); } \
  NS_IMETHOD RefreshUserInfo(bool aWithUI, nsIRequestObserver *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshUserInfo(aWithUI, aCallback); } \
  NS_IMETHOD DeleteFile(nsIFile *aFile, nsIRequestObserver *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteFile(aFile, aCallback); } \
  NS_IMETHOD CreateNewAccount(const nsACString& aEmailAddress, const nsACString& aPassword, const nsACString& aFirstName, const nsACString& aLastName, nsIRequestObserver *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewAccount(aEmailAddress, aPassword, aFirstName, aLastName, aCallback); } \
  NS_IMETHOD CreateExistingAccount(nsIRequestObserver *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateExistingAccount(aCallback); } \
  NS_IMETHOD GetCreateNewAccountUrl(nsACString& aCreateNewAccountUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCreateNewAccountUrl(aCreateNewAccountUrl); } \
  NS_IMETHOD ProviderUrlForError(uint32_t aError, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProviderUrlForError(aError, _retval); } \
  NS_IMETHOD GetFileUploadSizeLimit(int32_t *aFileUploadSizeLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileUploadSizeLimit(aFileUploadSizeLimit); } \
  NS_IMETHOD GetRemainingFileSpace(int64_t *aRemainingFileSpace) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemainingFileSpace(aRemainingFileSpace); } \
  NS_IMETHOD GetFileSpaceUsed(int64_t *aFileSpaceUsed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileSpaceUsed(aFileSpaceUsed); } \
  NS_IMETHOD OverrideUrls(uint32_t aNumUrls, const char * *aUrls) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OverrideUrls(aNumUrls, aUrls); } \
  NS_IMETHOD GetLastError(nsACString& aLastError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastError(aLastError); } \


#endif /* __gen_nsIMsgCloudFileProvider_h__ */