QGIS API Documentation 3.99.0-Master (7d2ca374f2d)
Loading...
Searching...
No Matches
qgsogrproxytextcodec.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsogrproxytextcodec.h
3 -------------
4 begin : June 2020
5 copyright : (C) 2020 Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSOGRPROXYTEXTCODEC_H
17#define QGSOGRPROXYTEXTCODEC_H
18
19
20#include "qgis_core.h"
21
22#include <QTextCodec>
23
24#define SIP_NO_FILE
25
33class CORE_EXPORT QgsOgrProxyTextCodec: public QTextCodec
34{
35 public:
36
40 QgsOgrProxyTextCodec( const QByteArray &name );
41 ~QgsOgrProxyTextCodec() override = default;
42
43 QString convertToUnicode( const char *in, int length, ConverterState *state ) const override;
44 QByteArray convertFromUnicode( const QChar *in, int length, ConverterState *state ) const override;
45 QByteArray name() const override;
46 QList<QByteArray> aliases() const override;
47 int mibEnum() const override;
48
52 static QStringList supportedCodecs();
53
54 private:
55
56 QByteArray mName;
57};
58
59#endif // QGSOGRPROXYTEXTCODEC_H
QByteArray name() const override
QByteArray convertFromUnicode(const QChar *in, int length, ConverterState *state) const override
QgsOgrProxyTextCodec(const QByteArray &name)
Constructor for QgsOgrProxyTextCodec, for the specified encoding name.
QString convertToUnicode(const char *in, int length, ConverterState *state) const override
int mibEnum() const override
QList< QByteArray > aliases() const override
static QStringList supportedCodecs()
Returns a list of supported text codecs.
~QgsOgrProxyTextCodec() override=default