QMailMessageHeaderField Class Reference
|
Constant | Value | Description |
---|---|---|
QMailMessageHeaderField::StructuredField | 1 | The field content should be parsed assuming it is structured according to the specification for RFC 2045 'Content-Type' fields. |
QMailMessageHeaderField::UnstructuredField | 2 | The field content has no internal structure. |
Creates an uninitialised message header field object.
Creates a message header field object from the data in text. If fieldType is QMailMessageHeaderField::StructuredField, then text will be parsed assuming a format equivalent to that used for the RFC 2045 'Content-Type' and RFC 2183 'Content-Disposition' header fields.
Creates a message header field object with the field id id and the content data in text. If fieldType is QMailMessageHeaderField::StructuredField, then text will be parsed assuming a format equivalent to that used for the RFC 2045 'Content-Type' and RFC 2183 'Content-Disposition' header fields.
Returns the content of the header field, without any associated parameters.
See also setContent().
Returns the content of input, decoding any encountered RFC 2045 'encoded-word' format tokens to unicode.
Returns the content of input decoded from RFC 2231 'extended-parameter' format.
Returns the content of input decoded from RFC 2045 'encoded-word' format.
Returns the content of the header field as unicode text. If the content of the field contains any encoded-word or encoded-parameter values, they will be decoded on output.
Returns the content of the string input encoded into a sequence of RFC 2045 'encoded-word' format tokens. The encoding used can be specified in charset, or can be deduced for each token read from input if charset is empty.
Returns the content of the string input encoded into RFC 2231 'extended-parameter' format. The encoding used can be specified in charset, or can be deduced from the content of input if charset is empty. If language is non-empty, it will be included in the encoded output; otherwise the language component will be extracted from charset, if it contains a trailing language specifier as defined in RFC 2231.
Returns the content of the string input encoded into a series of RFC 2045 'encoded-word' format tokens, each no longer than 75 characters. The encoding used can be specified in charset, or can be deduced from the content of input if charset is empty.
Returns the ID of the header field.
See also setId().
Returns true if the header field has not been initialized.
Returns true if the parameter with name name exists and is marked as encoded according to RFC 2231; otherwise returns false. Name comparisons are case-insensitive.
Returns the value of the parameter with the name name. Name comparisons are case-insensitive.
See also setParameter().
Returns the list of parameters from the header field. For each parameter, the member first contains the name text, and the member second contains the value text.
Returns the content of input with any comment sections removed.
Returns the content of input with any whitespace characters removed. Whitespace inside double quotes is preserved.
Sets the content of the header field to text.
See also content().
Sets the ID of the header field to id.
See also id().
Sets the parameter with the name name to have the value value, if present; otherwise a new parameter is appended with the supplied properties. If name ends with a single asterisk, the parameter will be flagged as encoded.
See also parameter() and setParameterEncoded().
Sets any parameters with the name name to be marked as encoded. Name comparisons are case-insensitive.
See also isParameterEncoded().
Returns the entire header field text as a formatted string, with the name of the field included if includeName is true. If presentable is true, artifacts of RFC 2822 transmission format such as parameter folding will be removed. For example:
QMailMessageHeaderField hdr;
hdr.setId("Content-Type");
hdr.setContent("text/plain");
hdr.setParameter("charset", "us-ascii");
QString s = hdr.toString(); // s: "Content-Type: text/plain; charset=us-ascii"
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