1 | /* |
2 | mapi.h |
3 | |
4 | Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be> |
5 | |
6 | This file is part of KTNEF, the KDE TNEF support library/program. |
7 | |
8 | This library is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU Library General Public |
10 | License as published by the Free Software Foundation; either |
11 | version 2 of the License, or (at your option) any later version. |
12 | |
13 | This library is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | Library General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Library General Public License |
19 | along with this library; see the file COPYING.LIB. If not, write to |
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | Boston, MA 02110-1301, USA. |
22 | */ |
23 | /** |
24 | * @file |
25 | * This file is part of the API for handling TNEF data and |
26 | * provides functions that convert MAPI keycodes to/from tag strings. |
27 | * |
28 | * @author Michael Goffioul |
29 | */ |
30 | |
31 | #ifndef MAPI_H |
32 | #define MAPI_H |
33 | |
34 | #include <QtCore/QString> |
35 | |
36 | /** |
37 | * Convert a keycode to a @acronym MAPI tag string. |
38 | * @param key The input code to convert. |
39 | * @return A QString containing the tag string. |
40 | */ |
41 | QString mapiTagString( int key ); |
42 | |
43 | /** |
44 | * Convert a keycode to a @acronym MAPI named tag string. |
45 | * @param key The input code to convert. |
46 | * @param tag An input tag. |
47 | * @return A QString containing the named tag string. |
48 | */ |
49 | QString mapiNamedTagString( int key, int tag = -1 ); |
50 | |
51 | #endif |
52 | |