зеркало из https://github.com/mozilla/pjs.git
This file is not part of the build yet! (approved by cyeh)
This file is the idl replacement of nsISmtpService.h
This commit is contained in:
Родитель
a239116011
Коммит
46aa79ae07
|
@ -0,0 +1,54 @@
|
|||
/* -*- 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.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIFileSpec.idl"
|
||||
|
||||
interface nsISmtpServer;
|
||||
interface nsIURI;
|
||||
interface nsIUrlListener;
|
||||
interface nsISupportsArray;
|
||||
|
||||
[scriptable, uuid(FBAF0F10-CA9B-11d2-8063-006008128C4E)]
|
||||
interface nsISmtpService : nsISupports {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// SendMailMessage requires the file name of the message to send, the
|
||||
// sender, a comma delimited list of recipients.
|
||||
// It builds an Smtp url, makes an smtp connection and runs the url. If you
|
||||
// want a handle on the running task, pass in a valid nsIURI ptr. You can
|
||||
// later interrupt this action by asking the netlib service manager to
|
||||
// interrupt the url you are given back. Remember to release aURL when you
|
||||
// are done with it. Pass nsnull in for aURL if you don't care about
|
||||
// the returned URL.
|
||||
//
|
||||
// If you don't care about listening to the url, feel free to pass in
|
||||
// nsnull for that argument.
|
||||
//
|
||||
// You can also pass an SMTP server as an argument if you want to send
|
||||
// this message with a specific server.. otherwise it will use the
|
||||
// default server
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void SendMailMessage(in nsIFileSpec aFilePath, in string aRecipients,
|
||||
in nsIUrlListener aUrlListener, in nsISmtpServer aServer,
|
||||
out nsIURI aURL);
|
||||
|
||||
void GetSmtpServers(out nsISupportsArray aResult);
|
||||
attribute nsISmtpServer DefaultSmtpServer;
|
||||
};
|
Загрузка…
Ссылка в новой задаче