mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
* The contents of this file are subject to the Netscape 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/NPL/
|
|
*
|
|
* 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.
|
|
*
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
* March 31, 1998.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*/
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsIPrompt;
|
|
|
|
[scriptable, uuid(6a0b35ce-54e4-11d3-81df-006008948010)]
|
|
interface nsISmtpServer : nsISupports {
|
|
|
|
const unsigned long cap_undefined = 0x80000000;
|
|
|
|
const unsigned long cap_smtp_server = 0x10000000;
|
|
const unsigned long cap_esmtp_server = 0x20000000;
|
|
|
|
const unsigned long cap_dsn = 0x00000002;
|
|
const unsigned long cap_auth_login = 0x00000004;
|
|
const unsigned long cap_auth_plain = 0x00000008;
|
|
const unsigned long cap_auth_external = 0x00000010;
|
|
const unsigned long cap_auth_starttls = 0x00000020;
|
|
|
|
attribute string key; // unique identifier
|
|
|
|
attribute string hostname;
|
|
attribute string username;
|
|
attribute string password;
|
|
|
|
/* what kind of logon redirector to use for this server, if any */
|
|
attribute string redirectorType;
|
|
|
|
attribute unsigned long capability;
|
|
|
|
attribute long authMethod;
|
|
attribute long trySSL;
|
|
|
|
readonly attribute string serverURI;
|
|
string getPasswordWithUI(in wstring promptString, in wstring promptTitle,
|
|
in nsIPrompt netPrompt);
|
|
void forgetPassword();
|
|
};
|