Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / wrappers / DotNETEmbed / DotNETNetworking.h
blob4a2ec5ec1745572afeee59faf7ef808b8674f094
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2003
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
23 * Roy Yokoyama <yokoyama@netscape.com> (original author)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 #pragma once
41 #include "DotNETEmbed.h"
43 // Forward declarations, Mozilla classes/interfaces.
44 class nsIURI;
46 namespace Mozilla
48 namespace Embedding
50 namespace Networking
52 public __gc class URI : public ICloneable,
53 public IDisposable
55 public:
56 URI(String *aSpec);
57 URI(nsIURI *aURI);
58 ~URI();
60 // ICloneable
61 Object *Clone();
63 // IDisposable
64 void Dispose();
66 __property String* get_Spec();
67 __property void set_Spec(String *aSpec);
68 __property String* get_PrePath();
69 __property String* get_Scheme();
70 __property void set_Scheme(String *aScheme);
71 __property String* get_UserPass();
72 __property void set_UserPass(String *aUserPass);
73 __property String* get_Username();
74 __property void set_Username(String *aUsername);
75 __property String* get_Password();
76 __property void set_Password(String *aPassword);
77 __property String* get_HostPort();
78 __property void set_HostPort(String *aHostPort);
79 __property String* get_Host();
80 __property void set_Host(String *aHost);
81 __property Int32 get_Port();
82 __property void set_Port(Int32 aPort);
83 __property String* get_Path();
84 __property void set_Path(String *aPath);
85 bool Equals(URI *aOther);
86 bool SchemeIs(String *aScheme);
87 // No need for URI *Clone() since we implement ICloneable
88 String* Resolve(String *aRelativePath);
89 __property String* get_AsciiSpec();
90 __property String* get_AsciiHost();
91 __property String* get_OriginCharset();
93 private:
94 nsIURI *mURI; // [OWNER]
95 }; // class URI
96 }; // namespace Networking
97 } // namespace Embedding