/[winpt]/trunk/Include/wptGPGME.h
ViewVC logotype

Annotation of /trunk/Include/wptGPGME.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335 - (hide annotations)
Sun Nov 27 12:20:21 2011 UTC (13 years, 3 months ago) by twoaday
File MIME type: text/plain
File size: 1472 byte(s)


1 twoaday 133 /* wptGPGME.h - Object oriented wrapper for GPGME
2     * Copyright (C) 2006 Timo Schulz
3     *
4     * This file is part of WinPT.
5     *
6     * WinPT is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU General Public License
8     * as published by the Free Software Foundation; either version 2
9     * of the License, or (at your option) any later version.
10     *
11     * WinPT 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 GNU
14     * General Public License for more details.
15     */
16    
17     #ifndef WPT_GPGME_H
18     #define WPT_GPGME_H
19    
20     class GPGME {
21     private:
22     gpgme_ctx_t ctx;
23     bool chg_ver;
24    
25     public:
26     ~GPGME ();
27     GPGME ();
28    
29     void setChangeVersion (bool val);
30     bool getArmor (void);
31     void setArmor (bool val);
32    
33 twoaday 260 /* export */
34 twoaday 133 gpgme_error_t exportToBuffer (const char *patt, char **outdata);
35 twoaday 302
36 twoaday 133 gpgme_error_t exportToFile (const char *patt, const char *outfile);
37 twoaday 302 gpgme_error_t exportToFile (const char *pattern[], const char *outfile);
38    
39 twoaday 133 gpgme_error_t exportToClipboard (const char *patt);
40 twoaday 302 gpgme_error_t exportToClipboard (const char *pattern[]);
41 twoaday 260
42     /* import */
43     gpgme_error_t importFromFile (const char *file);
44 twoaday 264 gpgme_error_t importFromBuffer (const char *indata);
45 twoaday 260 gpgme_error_t importFromClipboard (void);
46     gpgme_import_result_t importGetResult (void);
47 twoaday 133 };
48    
49     #endif /*WPT_GPGME_H*/

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26