1999-08-20 08:13:16 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2004-04-17 22:33:16 +04:00
|
|
|
* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
1999-08-20 08:13:16 +04:00
|
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
|
|
* March 31, 1998.
|
2004-04-17 22:33:16 +04:00
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998-1999
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-08-20 08:13:16 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2001-04-10 22:30:25 +04:00
|
|
|
interface nsIAuthPrompt;
|
1999-08-20 08:13:16 +04:00
|
|
|
|
2005-03-03 21:08:47 +03:00
|
|
|
[scriptable, uuid(556ee1e9-8221-4c00-a502-8ce44f029b47)]
|
1999-08-20 08:13:16 +04:00
|
|
|
interface nsISmtpServer : nsISupports {
|
2000-06-22 17:56:07 +04:00
|
|
|
|
1999-08-20 08:49:04 +04:00
|
|
|
attribute string key; // unique identifier
|
|
|
|
|
2005-03-03 21:08:47 +03:00
|
|
|
attribute AUTF8String description; // user provided description for the server
|
1999-08-20 08:49:04 +04:00
|
|
|
attribute string hostname;
|
2002-03-18 07:29:17 +03:00
|
|
|
attribute PRInt32 port;
|
1999-08-20 08:49:04 +04:00
|
|
|
attribute string username;
|
|
|
|
attribute string password;
|
2002-03-18 07:29:17 +03:00
|
|
|
readonly attribute string displayname;
|
2000-02-25 03:59:56 +03:00
|
|
|
|
|
|
|
/* what kind of logon redirector to use for this server, if any */
|
2000-08-08 04:22:34 +04:00
|
|
|
attribute string redirectorType;
|
2000-06-22 17:56:07 +04:00
|
|
|
|
2000-02-16 08:59:51 +03:00
|
|
|
attribute long authMethod;
|
2003-08-15 01:25:24 +04:00
|
|
|
readonly attribute boolean trySecAuth;
|
2000-03-12 11:27:31 +03:00
|
|
|
attribute long trySSL;
|
2000-02-16 08:59:51 +03:00
|
|
|
|
|
|
|
readonly attribute string serverURI;
|
|
|
|
string getPasswordWithUI(in wstring promptString, in wstring promptTitle,
|
2001-04-10 22:30:25 +04:00
|
|
|
in nsIAuthPrompt netPrompt);
|
2001-03-07 04:08:04 +03:00
|
|
|
void getUsernamePasswordWithUI(in wstring promptString, in wstring promptTitle,
|
2001-04-10 22:30:25 +04:00
|
|
|
in nsIAuthPrompt netPrompt, out string userid, out string password);
|
2000-02-16 08:59:51 +03:00
|
|
|
void forgetPassword();
|
2001-08-30 07:32:44 +04:00
|
|
|
|
|
|
|
void clearAllValues();
|
1999-08-20 08:13:16 +04:00
|
|
|
};
|