2 secstring.h - typedefs and conversion for secmem-backed std::strings.
4 Copyright (C) 2008 Klarälvdalens Datakonsult AB (KDAB)
6 Written by Marc Mutz <marc@kdab.com>.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef __PINENTRY_SECSTRING_H__
24 #define __PINENTRY_SECSTRING_H__
26 #include <secmem/secmem++.h>
32 typedef std::basic_string< char, std::char_traits< char>, secmem::alloc< char> > secstring;
33 typedef std::basic_string< QChar, std::char_traits<QChar>, secmem::alloc<QChar> > secqstring;
35 secstring toUtf8( const secqstring & str );
37 Q_DECLARE_METATYPE( secqstring )
38 Q_DECLARE_METATYPE( secstring )
40 #endif // __PINENTRY_SECSTRING_H__