GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
accessibility.h
1
/* accessibility.h - Helpers for making pinentry accessible
2
* Copyright (C) 2021 g10 Code GmbH
3
*
4
* Software engineering by Ingo Klöcker <dev@ingo-kloecker.de>
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* 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
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18
* SPDX-License-Identifier: GPL-2.0+
19
*/
20
21
#ifndef __PINENTRY_QT_ACCESSIBILITY_H__
22
#define __PINENTRY_QT_ACCESSIBILITY_H__
23
24
class
QString;
25
class
QWidget;
26
27
namespace
Accessibility
28
{
29
30
/* Wrapper for QWidget::setAccessibleDescription which does nothing if
31
QT_NO_ACCESSIBILITY is defined. */
32
void
setDescription(QWidget *w,
const
QString &text);
33
34
/* Wrapper for QWidget::setAccessibleName which does nothing if
35
QT_NO_ACCESSIBILITY is defined. */
36
void
setName(QWidget *w,
const
QString &text);
37
38
}
// namespace Accessibility
39
40
#endif
// __PINENTRY_QT_ACCESSIBILITY_H__
src
pinentry
accessibility.h
Generated by
1.9.1