1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* ***** BEGIN LICENSE BLOCK *****
3
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
5
* The contents of this file are subject to the Netscape Public License
6
* Version 1.1 (the "License"); you may not use this file except in
7
* compliance with the License. You may obtain a copy of the License at
8
* http://www.mozilla.org/NPL/
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
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) 1998
20
* the Initial Developer. All Rights Reserved.
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 NPL, 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 NPL, the GPL or the LGPL.
37
* ***** END LICENSE BLOCK ***** */
39
#include "nsISupports.idl"
44
// {738CFD52-ABCF-11d2-AB4B-0080C787AD96}
45
#define NS_WALLETSERVICE_CID \
46
{ 0x738cfd52, 0xabcf, 0x11d2, { 0xab, 0x4b, 0x0, 0x80, 0xc7, 0x87, 0xad, 0x96 } }
48
#define NS_WALLETSERVICE_CONTRACTID "@mozilla.org/wallet/wallet-service;1"
49
#define NS_WALLETSERVICE_CLASSNAME "Auto Form Fill and Wallet"
53
interface nsIDOMWindowInternal;
56
native nsAutoString(nsAutoString);
57
[ref] native nsAutoStringRef(nsAutoString);
60
* The nsIWalletService interface provides an API to the wallet service.
61
* This is a preliminary interface which <B>will</B> change over time!
64
[scriptable, uuid(738CFD51-ABCF-11d2-AB4B-0080C787AD96)]
65
interface nsIWalletService : nsISupports {
66
[noscript]void WALLET_PreEdit(in nsAutoStringRef walletList);
67
[noscript]void WALLET_PostEdit(in nsAutoString walletList);
68
boolean WALLET_ChangePassword();
69
void WALLET_DeleteAll();
70
unsigned long WALLET_RequestToCapture(in nsIDOMWindowInternal win);
71
boolean WALLET_Prefill(in boolean quick, in nsIDOMWindowInternal win);
72
wstring WALLET_PrefillOneElement
73
(in nsIDOMWindowInternal win, in nsIDOMNode elementNode);
74
[noscript]void WALLET_PrefillReturn(in nsAutoString results);
75
boolean WALLET_ExpirePassword();
76
void WALLET_InitReencryptCallback(in nsIDOMWindowInternal win);
78
void SI_RemoveUser(in string key, in wstring userName); // !!! get rid of this
79
void SI_StorePassword(in string key, in wstring userName, in wstring pwd); // !!! get rid of this
81
boolean haveData(in nsIPrompt dialog, in string key, in wstring userName);
83
[noscript] void WALLET_GetNopreviewListForViewer(in nsAutoStringRef aNopreviewList);
84
[noscript] void WALLET_GetNocaptureListForViewer(in nsAutoStringRef aNocaptureList);
85
[noscript] void WALLET_GetPrefillListForViewer(in nsAutoStringRef aPrefillList);
86
[noscript] void SI_SignonViewerReturn(in nsAutoString results);
88
string WALLET_Encrypt(in wstring text);
89
wstring WALLET_Decrypt(in string crypt);
95
#define NS_SINGLESIGNONPROMPT_CID \
96
{ /* 64997e60-17fe-11d4-8cee-0060b0fc14a3 */ \
100
{0x8c, 0xee, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
103
#define NS_SINGLESIGNONPROMPT_CLASSNAME "Single Sign-On Prompt"
104
#define NS_SINGLESIGNONPROMPT_CONTRACTID "@mozilla.org/wallet/single-sign-on-prompt;1"