QGIS API Documentation
4.3.0-Master (6ece89243d2)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
33
class
CORE_EXPORT
QgsOgrProxyTextCodec
:
public
QTextCodec
34
{
35
public
:
39
QgsOgrProxyTextCodec
(
const
QByteArray &
name
);
40
~QgsOgrProxyTextCodec
()
override
=
default
;
41
42
QString
convertToUnicode
(
const
char
*in,
int
length, ConverterState *state )
const override
;
43
QByteArray
convertFromUnicode
(
const
QChar *in,
int
length, ConverterState *state )
const override
;
44
QByteArray
name
()
const override
;
45
QList<QByteArray>
aliases
()
const override
;
46
int
mibEnum
()
const override
;
47
51
static
QStringList
supportedCodecs
();
52
53
private
:
54
QByteArray mName;
55
};
56
57
#endif
// QGSOGRPROXYTEXTCODEC_H
QgsOgrProxyTextCodec::name
QByteArray name() const override
Definition
qgsogrproxytextcodec.cpp:69
QgsOgrProxyTextCodec::convertFromUnicode
QByteArray convertFromUnicode(const QChar *in, int length, ConverterState *state) const override
Definition
qgsogrproxytextcodec.cpp:48
QgsOgrProxyTextCodec::QgsOgrProxyTextCodec
QgsOgrProxyTextCodec(const QByteArray &name)
Constructor for QgsOgrProxyTextCodec, for the specified encoding name.
Definition
qgsogrproxytextcodec.cpp:27
QgsOgrProxyTextCodec::convertToUnicode
QString convertToUnicode(const char *in, int length, ConverterState *state) const override
Definition
qgsogrproxytextcodec.cpp:31
QgsOgrProxyTextCodec::mibEnum
int mibEnum() const override
Definition
qgsogrproxytextcodec.cpp:79
QgsOgrProxyTextCodec::aliases
QList< QByteArray > aliases() const override
Definition
qgsogrproxytextcodec.cpp:74
QgsOgrProxyTextCodec::supportedCodecs
static QStringList supportedCodecs()
Returns a list of supported text codecs.
Definition
qgsogrproxytextcodec.cpp:85
QgsOgrProxyTextCodec::~QgsOgrProxyTextCodec
~QgsOgrProxyTextCodec() override=default
Generated on
for QGIS API Documentation by
1.17.0