/gecko_api/include/nsIURI.h
C++ Header | 501 lines | 250 code | 58 blank | 193 comment | 0 complexity | b332d62396367f888422cf6f2f3d98d3 MD5 | raw file
1/* 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/netwerk/base/public/nsIURI.idl 3 */ 4 5#ifndef __gen_nsIURI_h__ 6#define __gen_nsIURI_h__ 7 8 9#ifndef __gen_nsISupports_h__ 10#include "nsISupports.h" 11#endif 12 13/* For IDL files that don't want to include root IDL files. */ 14#ifndef NS_NO_VTABLE 15#define NS_NO_VTABLE 16#endif 17#undef GetPort // XXX Windows! 18#undef SetPort // XXX Windows! 19 20/* starting interface: nsIURI */ 21#define NS_IURI_IID_STR "07a22cc0-0ce5-11d3-9331-00104ba0fd40" 22 23#define NS_IURI_IID \ 24 {0x07a22cc0, 0x0ce5, 0x11d3, \ 25 { 0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }} 26 27/** 28 * URIs are essentially structured names for things -- anything. This interface 29 * provides accessors to set and query the most basic components of an URI. 30 * Subclasses, including nsIURL, impose greater structure on the URI. 31 * 32 * This interface follows Tim Berners-Lee's URI spec (RFC2396) [1], where the 33 * basic URI components are defined as such: 34 * <pre> 35 * ftp://username:password@hostname:portnumber/pathname 36 * \ / \ / \ / \ /\ / 37 * - --------------- ------ -------- ------- 38 * | | | | | 39 * | | | | Path 40 * | | | Port 41 * | | Host / 42 * | UserPass / 43 * Scheme / 44 * \ / 45 * -------------------------------- 46 * | 47 * PrePath 48 * </pre> 49 * The definition of the URI components has been extended to allow for 50 * internationalized domain names [2] and the more generic IRI structure [3]. 51 * 52 * [1] http://www.ietf.org/rfc/rfc2396.txt 53 * [2] http://www.ietf.org/internet-drafts/draft-ietf-idn-idna-06.txt 54 * [3] http://www.ietf.org/internet-drafts/draft-masinter-url-i18n-08.txt 55 */ 56/** 57 * nsIURI - interface for an uniform resource identifier w/ i18n support. 58 * 59 * AUTF8String attributes may contain unescaped UTF-8 characters. 60 * Consumers should be careful to escape the UTF-8 strings as necessary, but 61 * should always try to "display" the UTF-8 version as provided by this 62 * interface. 63 * 64 * AUTF8String attributes may also contain escaped characters. 65 * 66 * Unescaping URI segments is unadvised unless there is intimate 67 * knowledge of the underlying charset or there is no plan to display (or 68 * otherwise enforce a charset on) the resulting URI substring. 69 * 70 * @status FROZEN 71 */ 72class NS_NO_VTABLE NS_SCRIPTABLE nsIURI : public nsISupports { 73 public: 74 75 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURI_IID) 76 77 /************************************************************************ 78 * The URI is broken down into the following principal components: 79 */ 80/** 81 * Returns a string representation of the URI. Setting the spec causes 82 * the new spec to be parsed, initializing the URI. 83 * 84 * Some characters may be escaped. 85 */ 86 /* attribute AUTF8String spec; */ 87 NS_SCRIPTABLE NS_IMETHOD GetSpec(nsACString & aSpec) = 0; 88 NS_SCRIPTABLE NS_IMETHOD SetSpec(const nsACString & aSpec) = 0; 89 90 /** 91 * The prePath (eg. scheme://user:password@host:port) returns the string 92 * before the path. This is useful for authentication or managing sessions. 93 * 94 * Some characters may be escaped. 95 */ 96 /* readonly attribute AUTF8String prePath; */ 97 NS_SCRIPTABLE NS_IMETHOD GetPrePath(nsACString & aPrePath) = 0; 98 99 /** 100 * The Scheme is the protocol to which this URI refers. The scheme is 101 * restricted to the US-ASCII charset per RFC2396. 102 */ 103 /* attribute ACString scheme; */ 104 NS_SCRIPTABLE NS_IMETHOD GetScheme(nsACString & aScheme) = 0; 105 NS_SCRIPTABLE NS_IMETHOD SetScheme(const nsACString & aScheme) = 0; 106 107 /** 108 * The username:password (or username only if value doesn't contain a ':') 109 * 110 * Some characters may be escaped. 111 */ 112 /* attribute AUTF8String userPass; */ 113 NS_SCRIPTABLE NS_IMETHOD GetUserPass(nsACString & aUserPass) = 0; 114 NS_SCRIPTABLE NS_IMETHOD SetUserPass(const nsACString & aUserPass) = 0; 115 116 /** 117 * The optional username and password, assuming the preHost consists of 118 * username:password. 119 * 120 * Some characters may be escaped. 121 */ 122 /* attribute AUTF8String username; */ 123 NS_SCRIPTABLE NS_IMETHOD GetUsername(nsACString & aUsername) = 0; 124 NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsACString & aUsername) = 0; 125 126 /* attribute AUTF8String password; */ 127 NS_SCRIPTABLE NS_IMETHOD GetPassword(nsACString & aPassword) = 0; 128 NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsACString & aPassword) = 0; 129 130 /** 131 * The host:port (or simply the host, if port == -1). 132 * 133 * Characters are NOT escaped. 134 */ 135 /* attribute AUTF8String hostPort; */ 136 NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsACString & aHostPort) = 0; 137 NS_SCRIPTABLE NS_IMETHOD SetHostPort(const nsACString & aHostPort) = 0; 138 139 /** 140 * The host is the internet domain name to which this URI refers. It could 141 * be an IPv4 (or IPv6) address literal. If supported, it could be a 142 * non-ASCII internationalized domain name. 143 * 144 * Characters are NOT escaped. 145 */ 146 /* attribute AUTF8String host; */ 147 NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) = 0; 148 NS_SCRIPTABLE NS_IMETHOD SetHost(const nsACString & aHost) = 0; 149 150 /** 151 * A port value of -1 corresponds to the protocol's default port (eg. -1 152 * implies port 80 for http URIs). 153 */ 154 /* attribute long port; */ 155 NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) = 0; 156 NS_SCRIPTABLE NS_IMETHOD SetPort(PRInt32 aPort) = 0; 157 158 /** 159 * The path, typically including at least a leading '/' (but may also be 160 * empty, depending on the protocol). 161 * 162 * Some characters may be escaped. 163 */ 164 /* attribute AUTF8String path; */ 165 NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) = 0; 166 NS_SCRIPTABLE NS_IMETHOD SetPath(const nsACString & aPath) = 0; 167 168 /************************************************************************ 169 * An URI supports the following methods: 170 */ 171/** 172 * URI equivalence test (not a strict string comparison). 173 * 174 * eg. http://foo.com:80/ == http://foo.com/ 175 */ 176 /* boolean equals (in nsIURI other); */ 177 NS_SCRIPTABLE NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) = 0; 178 179 /** 180 * An optimization to do scheme checks without requiring the users of nsIURI 181 * to GetScheme, thereby saving extra allocating and freeing. Returns true if 182 * the schemes match (case ignored). 183 */ 184 /* boolean schemeIs (in string scheme); */ 185 NS_SCRIPTABLE NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) = 0; 186 187 /** 188 * Clones the current URI. For some protocols, this is more than just an 189 * optimization. For example, under MacOS, the spec of a file URL does not 190 * necessarily uniquely identify a file since two volumes could share the 191 * same name. 192 */ 193 /* nsIURI clone (); */ 194 NS_SCRIPTABLE NS_IMETHOD Clone(nsIURI **_retval) = 0; 195 196 /** 197 * This method resolves a relative string into an absolute URI string, 198 * using this URI as the base. 199 * 200 * NOTE: some implementations may have no concept of a relative URI. 201 */ 202 /* AUTF8String resolve (in AUTF8String relativePath); */ 203 NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) = 0; 204 205 /************************************************************************ 206 * Additional attributes: 207 */ 208/** 209 * The URI spec with an ASCII compatible encoding. Host portion follows 210 * the IDNA draft spec. Other parts are URL-escaped per the rules of 211 * RFC2396. The result is strictly ASCII. 212 */ 213 /* readonly attribute ACString asciiSpec; */ 214 NS_SCRIPTABLE NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) = 0; 215 216 /** 217 * The URI host with an ASCII compatible encoding. Follows the IDNA 218 * draft spec for converting internationalized domain names (UTF-8) to 219 * ASCII for compatibility with existing internet infrasture. 220 */ 221 /* readonly attribute ACString asciiHost; */ 222 NS_SCRIPTABLE NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) = 0; 223 224 /** 225 * The charset of the document from which this URI originated. An empty 226 * value implies UTF-8. 227 * 228 * If this value is something other than UTF-8 then the URI components 229 * (e.g., spec, prePath, username, etc.) will all be fully URL-escaped. 230 * Otherwise, the URI components may contain unescaped multibyte UTF-8 231 * characters. 232 */ 233 /* readonly attribute ACString originCharset; */ 234 NS_SCRIPTABLE NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) = 0; 235 236}; 237 238 NS_DEFINE_STATIC_IID_ACCESSOR(nsIURI, NS_IURI_IID) 239 240/* Use this macro when declaring classes that implement this interface. */ 241#define NS_DECL_NSIURI \ 242 NS_SCRIPTABLE NS_IMETHOD GetSpec(nsACString & aSpec); \ 243 NS_SCRIPTABLE NS_IMETHOD SetSpec(const nsACString & aSpec); \ 244 NS_SCRIPTABLE NS_IMETHOD GetPrePath(nsACString & aPrePath); \ 245 NS_SCRIPTABLE NS_IMETHOD GetScheme(nsACString & aScheme); \ 246 NS_SCRIPTABLE NS_IMETHOD SetScheme(const nsACString & aScheme); \ 247 NS_SCRIPTABLE NS_IMETHOD GetUserPass(nsACString & aUserPass); \ 248 NS_SCRIPTABLE NS_IMETHOD SetUserPass(const nsACString & aUserPass); \ 249 NS_SCRIPTABLE NS_IMETHOD GetUsername(nsACString & aUsername); \ 250 NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsACString & aUsername); \ 251 NS_SCRIPTABLE NS_IMETHOD GetPassword(nsACString & aPassword); \ 252 NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsACString & aPassword); \ 253 NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsACString & aHostPort); \ 254 NS_SCRIPTABLE NS_IMETHOD SetHostPort(const nsACString & aHostPort); \ 255 NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost); \ 256 NS_SCRIPTABLE NS_IMETHOD SetHost(const nsACString & aHost); \ 257 NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort); \ 258 NS_SCRIPTABLE NS_IMETHOD SetPort(PRInt32 aPort); \ 259 NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath); \ 260 NS_SCRIPTABLE NS_IMETHOD SetPath(const nsACString & aPath); \ 261 NS_SCRIPTABLE NS_IMETHOD Equals(nsIURI *other, PRBool *_retval); \ 262 NS_SCRIPTABLE NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval); \ 263 NS_SCRIPTABLE NS_IMETHOD Clone(nsIURI **_retval); \ 264 NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval); \ 265 NS_SCRIPTABLE NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec); \ 266 NS_SCRIPTABLE NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost); \ 267 NS_SCRIPTABLE NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset); 268 269/* Use this macro to declare functions that forward the behavior of this interface to another object. */ 270#define NS_FORWARD_NSIURI(_to) \ 271 NS_SCRIPTABLE NS_IMETHOD GetSpec(nsACString & aSpec) { return _to GetSpec(aSpec); } \ 272 NS_SCRIPTABLE NS_IMETHOD SetSpec(const nsACString & aSpec) { return _to SetSpec(aSpec); } \ 273 NS_SCRIPTABLE NS_IMETHOD GetPrePath(nsACString & aPrePath) { return _to GetPrePath(aPrePath); } \ 274 NS_SCRIPTABLE NS_IMETHOD GetScheme(nsACString & aScheme) { return _to GetScheme(aScheme); } \ 275 NS_SCRIPTABLE NS_IMETHOD SetScheme(const nsACString & aScheme) { return _to SetScheme(aScheme); } \ 276 NS_SCRIPTABLE NS_IMETHOD GetUserPass(nsACString & aUserPass) { return _to GetUserPass(aUserPass); } \ 277 NS_SCRIPTABLE NS_IMETHOD SetUserPass(const nsACString & aUserPass) { return _to SetUserPass(aUserPass); } \ 278 NS_SCRIPTABLE NS_IMETHOD GetUsername(nsACString & aUsername) { return _to GetUsername(aUsername); } \ 279 NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsACString & aUsername) { return _to SetUsername(aUsername); } \ 280 NS_SCRIPTABLE NS_IMETHOD GetPassword(nsACString & aPassword) { return _to GetPassword(aPassword); } \ 281 NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsACString & aPassword) { return _to SetPassword(aPassword); } \ 282 NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsACString & aHostPort) { return _to GetHostPort(aHostPort); } \ 283 NS_SCRIPTABLE NS_IMETHOD SetHostPort(const nsACString & aHostPort) { return _to SetHostPort(aHostPort); } \ 284 NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \ 285 NS_SCRIPTABLE NS_IMETHOD SetHost(const nsACString & aHost) { return _to SetHost(aHost); } \ 286 NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return _to GetPort(aPort); } \ 287 NS_SCRIPTABLE NS_IMETHOD SetPort(PRInt32 aPort) { return _to SetPort(aPort); } \ 288 NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return _to GetPath(aPath); } \ 289 NS_SCRIPTABLE NS_IMETHOD SetPath(const nsACString & aPath) { return _to SetPath(aPath); } \ 290 NS_SCRIPTABLE NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) { return _to Equals(other, _retval); } \ 291 NS_SCRIPTABLE NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) { return _to SchemeIs(scheme, _retval); } \ 292 NS_SCRIPTABLE NS_IMETHOD Clone(nsIURI **_retval) { return _to Clone(_retval); } \ 293 NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) { return _to Resolve(relativePath, _retval); } \ 294 NS_SCRIPTABLE NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) { return _to GetAsciiSpec(aAsciiSpec); } \ 295 NS_SCRIPTABLE NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) { return _to GetAsciiHost(aAsciiHost); } \ 296 NS_SCRIPTABLE NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) { return _to GetOriginCharset(aOriginCharset); } 297 298/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ 299#define NS_FORWARD_SAFE_NSIURI(_to) \ 300 NS_SCRIPTABLE NS_IMETHOD GetSpec(nsACString & aSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpec(aSpec); } \ 301 NS_SCRIPTABLE NS_IMETHOD SetSpec(const nsACString & aSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpec(aSpec); } \ 302 NS_SCRIPTABLE NS_IMETHOD GetPrePath(nsACString & aPrePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrePath(aPrePath); } \ 303 NS_SCRIPTABLE NS_IMETHOD GetScheme(nsACString & aScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScheme(aScheme); } \ 304 NS_SCRIPTABLE NS_IMETHOD SetScheme(const nsACString & aScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScheme(aScheme); } \ 305 NS_SCRIPTABLE NS_IMETHOD GetUserPass(nsACString & aUserPass) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserPass(aUserPass); } \ 306 NS_SCRIPTABLE NS_IMETHOD SetUserPass(const nsACString & aUserPass) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserPass(aUserPass); } \ 307 NS_SCRIPTABLE NS_IMETHOD GetUsername(nsACString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \ 308 NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsACString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsername(aUsername); } \ 309 NS_SCRIPTABLE NS_IMETHOD GetPassword(nsACString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \ 310 NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsACString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \ 311 NS_SCRIPTABLE NS_IMETHOD GetHostPort(nsACString & aHostPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostPort(aHostPort); } \ 312 NS_SCRIPTABLE NS_IMETHOD SetHostPort(const nsACString & aHostPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHostPort(aHostPort); } \ 313 NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \ 314 NS_SCRIPTABLE NS_IMETHOD SetHost(const nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHost(aHost); } \ 315 NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \ 316 NS_SCRIPTABLE NS_IMETHOD SetPort(PRInt32 aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPort(aPort); } \ 317 NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \ 318 NS_SCRIPTABLE NS_IMETHOD SetPath(const nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPath(aPath); } \ 319 NS_SCRIPTABLE NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \ 320 NS_SCRIPTABLE NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SchemeIs(scheme, _retval); } \ 321 NS_SCRIPTABLE NS_IMETHOD Clone(nsIURI **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \ 322 NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(relativePath, _retval); } \ 323 NS_SCRIPTABLE NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsciiSpec(aAsciiSpec); } \ 324 NS_SCRIPTABLE NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsciiHost(aAsciiHost); } \ 325 NS_SCRIPTABLE NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginCharset(aOriginCharset); } 326 327#if 0 328/* Use the code below as a template for the implementation class for this interface. */ 329 330/* Header file */ 331class nsURI : public nsIURI 332{ 333public: 334 NS_DECL_ISUPPORTS 335 NS_DECL_NSIURI 336 337 nsURI(); 338 339private: 340 ~nsURI(); 341 342protected: 343 /* additional members */ 344}; 345 346/* Implementation file */ 347NS_IMPL_ISUPPORTS1(nsURI, nsIURI) 348 349nsURI::nsURI() 350{ 351 /* member initializers and constructor code */ 352} 353 354nsURI::~nsURI() 355{ 356 /* destructor code */ 357} 358 359/* attribute AUTF8String spec; */ 360NS_IMETHODIMP nsURI::GetSpec(nsACString & aSpec) 361{ 362 return NS_ERROR_NOT_IMPLEMENTED; 363} 364NS_IMETHODIMP nsURI::SetSpec(const nsACString & aSpec) 365{ 366 return NS_ERROR_NOT_IMPLEMENTED; 367} 368 369/* readonly attribute AUTF8String prePath; */ 370NS_IMETHODIMP nsURI::GetPrePath(nsACString & aPrePath) 371{ 372 return NS_ERROR_NOT_IMPLEMENTED; 373} 374 375/* attribute ACString scheme; */ 376NS_IMETHODIMP nsURI::GetScheme(nsACString & aScheme) 377{ 378 return NS_ERROR_NOT_IMPLEMENTED; 379} 380NS_IMETHODIMP nsURI::SetScheme(const nsACString & aScheme) 381{ 382 return NS_ERROR_NOT_IMPLEMENTED; 383} 384 385/* attribute AUTF8String userPass; */ 386NS_IMETHODIMP nsURI::GetUserPass(nsACString & aUserPass) 387{ 388 return NS_ERROR_NOT_IMPLEMENTED; 389} 390NS_IMETHODIMP nsURI::SetUserPass(const nsACString & aUserPass) 391{ 392 return NS_ERROR_NOT_IMPLEMENTED; 393} 394 395/* attribute AUTF8String username; */ 396NS_IMETHODIMP nsURI::GetUsername(nsACString & aUsername) 397{ 398 return NS_ERROR_NOT_IMPLEMENTED; 399} 400NS_IMETHODIMP nsURI::SetUsername(const nsACString & aUsername) 401{ 402 return NS_ERROR_NOT_IMPLEMENTED; 403} 404 405/* attribute AUTF8String password; */ 406NS_IMETHODIMP nsURI::GetPassword(nsACString & aPassword) 407{ 408 return NS_ERROR_NOT_IMPLEMENTED; 409} 410NS_IMETHODIMP nsURI::SetPassword(const nsACString & aPassword) 411{ 412 return NS_ERROR_NOT_IMPLEMENTED; 413} 414 415/* attribute AUTF8String hostPort; */ 416NS_IMETHODIMP nsURI::GetHostPort(nsACString & aHostPort) 417{ 418 return NS_ERROR_NOT_IMPLEMENTED; 419} 420NS_IMETHODIMP nsURI::SetHostPort(const nsACString & aHostPort) 421{ 422 return NS_ERROR_NOT_IMPLEMENTED; 423} 424 425/* attribute AUTF8String host; */ 426NS_IMETHODIMP nsURI::GetHost(nsACString & aHost) 427{ 428 return NS_ERROR_NOT_IMPLEMENTED; 429} 430NS_IMETHODIMP nsURI::SetHost(const nsACString & aHost) 431{ 432 return NS_ERROR_NOT_IMPLEMENTED; 433} 434 435/* attribute long port; */ 436NS_IMETHODIMP nsURI::GetPort(PRInt32 *aPort) 437{ 438 return NS_ERROR_NOT_IMPLEMENTED; 439} 440NS_IMETHODIMP nsURI::SetPort(PRInt32 aPort) 441{ 442 return NS_ERROR_NOT_IMPLEMENTED; 443} 444 445/* attribute AUTF8String path; */ 446NS_IMETHODIMP nsURI::GetPath(nsACString & aPath) 447{ 448 return NS_ERROR_NOT_IMPLEMENTED; 449} 450NS_IMETHODIMP nsURI::SetPath(const nsACString & aPath) 451{ 452 return NS_ERROR_NOT_IMPLEMENTED; 453} 454 455/* boolean equals (in nsIURI other); */ 456NS_IMETHODIMP nsURI::Equals(nsIURI *other, PRBool *_retval) 457{ 458 return NS_ERROR_NOT_IMPLEMENTED; 459} 460 461/* boolean schemeIs (in string scheme); */ 462NS_IMETHODIMP nsURI::SchemeIs(const char *scheme, PRBool *_retval) 463{ 464 return NS_ERROR_NOT_IMPLEMENTED; 465} 466 467/* nsIURI clone (); */ 468NS_IMETHODIMP nsURI::Clone(nsIURI **_retval) 469{ 470 return NS_ERROR_NOT_IMPLEMENTED; 471} 472 473/* AUTF8String resolve (in AUTF8String relativePath); */ 474NS_IMETHODIMP nsURI::Resolve(const nsACString & relativePath, nsACString & _retval) 475{ 476 return NS_ERROR_NOT_IMPLEMENTED; 477} 478 479/* readonly attribute ACString asciiSpec; */ 480NS_IMETHODIMP nsURI::GetAsciiSpec(nsACString & aAsciiSpec) 481{ 482 return NS_ERROR_NOT_IMPLEMENTED; 483} 484 485/* readonly attribute ACString asciiHost; */ 486NS_IMETHODIMP nsURI::GetAsciiHost(nsACString & aAsciiHost) 487{ 488 return NS_ERROR_NOT_IMPLEMENTED; 489} 490 491/* readonly attribute ACString originCharset; */ 492NS_IMETHODIMP nsURI::GetOriginCharset(nsACString & aOriginCharset) 493{ 494 return NS_ERROR_NOT_IMPLEMENTED; 495} 496 497/* End of implementation class template. */ 498#endif 499 500 501#endif /* __gen_nsIURI_h__ */