1 /* ignupg.idl - Interface definition for the COM+ class GnuPG
2 * Copyright (C) 2001 g10 Code GmbH
4 * This file is part of GPGME.
6 * GPGME is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GPGME is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
26 [ object, uuid(3811fd50-7f72-11d5-8c9e-0080ad190cd5), dual]
27 interface IGpgme : IDispatch
29 HRESULT GetVersion([out] BSTR *retval);
30 HRESULT GetEngineInfo([out] BSTR *retval);
32 [propput] HRESULT Armor([in] BOOL flag);
33 [propget] HRESULT Armor([out, retval] BOOL *retval);
34 [propput] HRESULT Textmode([in] BOOL flag);
35 [propget] HRESULT Textmode([out, retval] BOOL *retval);
36 [propput] HRESULT Plaintext([in] VARIANT val);
37 [propget] HRESULT Plaintext([out, retval] VARIANT *retval);
38 [propput] HRESULT Ciphertext([in] VARIANT val);
39 [propget] HRESULT Ciphertext([out,retval] VARIANT *retval);
40 HRESULT ClearRecipients(void);
41 HRESULT AddRecipient([in] BSTR name,
42 [in, optional, defaultvalue(-1)] signed short trust);
43 HRESULT ResetSignKeys(void);
44 HRESULT AddSignKey([in] BSTR name);
45 HRESULT Encrypt(void);
46 HRESULT Sign([in,optional,defaultvalue(0)] signed short signmode);
47 HRESULT SignEncrypt([in,optional,defaultvalue(0)] signed short signmode);
52 [ uuid(3811fd48-7f72-11d5-8c9e-0080ad190cd5),
53 helpstring("g10Code.gpgcom, type library"),
57 [ uuid(3811fd40-7f72-11d5-8c9e-0080ad190cd5) ]
60 [default] interface IGpgme;