File indexing completed on 2024-04-28 05:19:27
0001 /* 0002 mapi.h 0003 0004 SPDX-FileCopyrightText: 2002 Michael Goffioul <kdeprint@swing.be> 0005 0006 This file is part of KTNEF, the KDE TNEF support library/program. 0007 0008 SPDX-License-Identifier: LGPL-2.0-or-later 0009 */ 0010 /** 0011 * @file 0012 * This file is part of the API for handling TNEF data and 0013 * provides functions that convert MAPI keycodes to/from tag strings. 0014 * 0015 * @author Michael Goffioul 0016 */ 0017 0018 #pragma once 0019 0020 #include <QString> 0021 namespace KTnef 0022 { 0023 /** 0024 * Convert a keycode to a @acronym MAPI tag string. 0025 * @param key The input code to convert. 0026 * @return A QString containing the tag string. 0027 */ 0028 [[nodiscard]] QString mapiTagString(int key); 0029 0030 /** 0031 * Convert a keycode to a @acronym MAPI named tag string. 0032 * @param key The input code to convert. 0033 * @param tag An input tag. 0034 * @return A QString containing the named tag string. 0035 */ 0036 [[nodiscard]] QString mapiNamedTagString(int key, int tag = -1); 0037 }