QAtUtils Class Reference
|
GSM | 7-bit default GSM alphabet. There may be some loss of information where multiple Unicode characters map to the same 7-bit encoding. |
HEX | Hex encoding of the 7-bit default GSM alphabet. |
UCS2 | Hex encoding of UCS-2. |
IRA | International reference alphabet (i.e. ASCII). |
PCCPxxx | PC character set code page xxx. Code pages 437 and 850 are guaranteed to be supported. Other code pages depend upon the codecs installed with QTextCodec. |
PCDN | PC Danish/Norwegian character set (same as PCCP850). |
UTF-8 | 8-bit encoding of Unicode. |
8859-n | ISO 8859 Latin-n character set. |
8859-C | ISO 8859 Latin/Cyrillic character set (same as 8859-5). |
8859-A | ISO 8859 Latin/Arabic character set (same as 8859-6). |
8859-G | ISO 8859 Latin/Greek character set (same as 8859-7). |
8859-H | ISO 8859 Latin/Hebrew character set (same as 8859-8). |
This implementation also supports the following character sets, beyond those mandated by 3GPP TS 27.007:
gsm-noloss | 7-bit default GSM alphabet, with no loss of information. |
xxx | Any codec xxx that is supported by QTextCodec::codecForName(). |
See also QTextCodec and QGsmCodec.
Decode str according to codec. The string is assumed to have been retrieved from an AT modem using the facilities in QAtChat and QAtResultParser.
Decode a phone number from value and type. The type is a type of address octet, usually 145 for international numbers and 129 for local numbers. The return will normalize the value to include the + prefix for international numbers.
See also encodeNumber().
This is an overloaded member function, provided for convenience.
Read a string field and a numeric field from parser and then decode them into a properly normalized phone number.
See also encodeNumber().
Decodes value according to the cell broadcast data coding scheme dcs. The value is assumed to have been parsed by nextString() and be compliant with section 5 of 3GPP TS 23.038.
This function was introduced in Qtopia 4.3.3.
See also nextString().
Encode the phone number in value into a string plus a type of address octet. International numbers that start with + become "number",145, and local numbers become "number",129. If keepPlus is true, then the + will be left on the resulting number, even if the type is 145.
See also decodeNumber().
Convert a hexadecimal string, hex, into a byte array.
See also toHex().
Extract the next quoted string from buf, starting at posn.
See also parseNumber() and skipField().
Returns true if nextString() should parse backslash escape sequences in octal rather than the default of hexadecimal; otherwise returns false.
See also setOctalEscapes().
Utility function for parsing a number from position posn in str.
See also nextString() and skipField().
Quote str so that it is suitable to be sent as an AT command argument. The caller will need to add double quotes to the start and end of the return value to complete the AT command argument.
This is an overloaded member function, provided for convenience.
Quote str so that it is suitable to be sent as an AT command argument and use codec to encode the string. The caller will need to add double quotes to the start and end of the return value to complete the AT command argument.
Indicate that nextString() should parse backslash escape sequences in octal if value is true, rather than the default of hexadecimal (value is false).
See also octalEscapes().
Utility function for skipping a comma-delimited field starting at posn within str.
See also nextString() and parseNumber().
Strip non-digit characters from number and normalize special characters. The digit and special characters are normalized as follows:
Input | Normalized | Meaning |
---|---|---|
0..9 | 0..9 | Numeric dialing digits |
ABCD | ABCD | Alphabetic dialing digits |
abcd | ABCD | Alphabetic dialing digits |
,pPxX | , | Short pause or extension separator |
wW | W | Wait for dial tone |
! | ! | Hook flash |
@ | @ | Wait for silence |
All other characters are stripped from number.
See also QPhoneNumber::resolveLetters().
Convert the byte array, binary, into a hexadecimal string.
See also fromHex().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com