mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
9551c4aee8
- Using NS_IMPL_ISUPPORTS[0-9] - Removing exported NS_New*() functions - Moving the implementation definitions to their headers r=morse@Netscape.com
80 lines
3.1 KiB
C
80 lines
3.1 KiB
C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* 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.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#ifndef nsIWalletService_h___
|
|
#define nsIWalletService_h___
|
|
|
|
//#include "nscore.h"
|
|
#include "nsISupports.h"
|
|
#include "nsString.h"
|
|
#include "nsIPresShell.h"
|
|
#include "nsIURL.h"
|
|
#include "nsIPrompt.h"
|
|
// {738CFD51-ABCF-11d2-AB4B-0080C787AD96}
|
|
#define NS_IWALLETSERVICE_IID \
|
|
{ 0x738cfd51, 0xabcf, 0x11d2, { 0xab, 0x4b, 0x0, 0x80, 0xc7, 0x87, 0xad, 0x96 } }
|
|
|
|
|
|
// {738CFD52-ABCF-11d2-AB4B-0080C787AD96}
|
|
#define NS_WALLETSERVICE_CID \
|
|
{ 0x738cfd52, 0xabcf, 0x11d2, { 0xab, 0x4b, 0x0, 0x80, 0xc7, 0x87, 0xad, 0x96 } }
|
|
|
|
#define NS_WALLETSERVICE_PROGID "component://netscape/wallet"
|
|
#define NS_WALLETSERVICE_CLASSNAME "Auto Form Fill and Wallet"
|
|
|
|
/**
|
|
* The nsIWalletService interface provides an API to the wallet service.
|
|
* This is a preliminary interface which <B>will</B> change over time!
|
|
*
|
|
*/
|
|
struct nsIWalletService : public nsISupports
|
|
{
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWALLETSERVICE_IID)
|
|
|
|
NS_IMETHOD WALLET_PreEdit(nsAutoString& walletList) = 0;
|
|
NS_IMETHOD WALLET_PostEdit(nsAutoString walletList) = 0;
|
|
NS_IMETHOD WALLET_ChangePassword() = 0;
|
|
NS_IMETHOD WALLET_RequestToCapture(nsIPresShell* shell) = 0;
|
|
NS_IMETHOD WALLET_Prefill(nsIPresShell* shell, PRBool quick) = 0;
|
|
NS_IMETHOD WALLET_PrefillReturn(nsAutoString results) = 0;
|
|
NS_IMETHOD WALLET_FetchFromNetCenter() = 0;
|
|
|
|
NS_IMETHOD PromptUsernameAndPasswordURL
|
|
(const PRUnichar *text, PRUnichar **user, PRUnichar **pwd,
|
|
const char *urlname, nsIPrompt* dialog, PRBool *_retval) = 0;
|
|
NS_IMETHOD PromptPasswordURL
|
|
(const PRUnichar *text, PRUnichar **pwd, const char *urlname,nsIPrompt* dialog, PRBool *_retval) = 0;
|
|
NS_IMETHOD PromptURL
|
|
(const PRUnichar *text, const PRUnichar *defaultText, PRUnichar **result,
|
|
const char *urlname, nsIPrompt* dialog, PRBool *_retval) = 0;
|
|
NS_IMETHOD SI_RemoveUser(const char *URLName, char *userName) = 0;
|
|
|
|
NS_IMETHOD WALLET_GetNopreviewListForViewer(nsString& aNopreviewList) = 0;
|
|
NS_IMETHOD WALLET_GetNocaptureListForViewer(nsString& aNocaptureList) = 0;
|
|
NS_IMETHOD WALLET_GetPrefillListForViewer(nsString& aPrefillList) = 0;
|
|
NS_IMETHOD SI_GetSignonListForViewer(nsString& aSignonList) = 0;
|
|
NS_IMETHOD SI_GetRejectListForViewer(nsString& aRejectList) = 0;
|
|
NS_IMETHOD SI_SignonViewerReturn(nsAutoString results) = 0;
|
|
};
|
|
|
|
#endif /* nsIWalletService_h___ */
|