GSMCodec Class Reference
Latin1/GSM conversion class.
More...
#include <gsmcodec.h>
List of all member functions.
Public Members
Detailed Description
Latin1/GSM conversion class.
The GSM specifications for SMS use a compact 7-bit encoding to represent
Latin-1 characters, compared to the more usual 8-bit ISO-8859-1 encoding
used on many computer systems.
The GSMCodec class enables conversion back and forth between the GSM
encoding and the normal 8-bit encoding used by Qtopia.
Application programs will rarely need to use this class, because
the SMSMessage class automatically converts between 7-bit and 8-bit
encodings as necessary.
See also Qtopia Phone Classes.
Member Function Documentation
GSMCodec::GSMCodec ()
Construct a new GSM codec for converting between GSM and Latin-1 encodings.
GSMCodec::~GSMCodec ()
Destroy the GSM codec.
QString GSMCodec::fromLatin1 ( const QString & uc ) const
Convert a Latin-1 string into its GSM-encoded counterpart.
unsigned char GSMCodec::fromLatin1 ( unsigned char c )
Convert a Latin-1 character into its GSM-encoded counterpart.
unsigned char GSMCodec::fromLatin1NoLoss ( unsigned char c )
Convert a Latin-1 character into its GSM-encoded counterpart.
This version tries to avoid situations where two Latin-1
characters map to the same GSM character.
QString GSMCodec::toLatin1 ( const char * p, int len ) const
Convert a buffer of GSM-encoded characters into a Latin-1 string.
unsigned char GSMCodec::toLatin1 ( unsigned char c )
Convert a single GSM-encoded character into its Latin-1 counterpart.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|