QObexHeader Class Reference
|
Constant | Value | Description |
---|---|---|
QObexHeader::Count | 0xc0 | The number of objects in the operation. |
QObexHeader::Name | 0x01 | The name of the object. |
QObexHeader::Type | 0x42 | The type of the object. |
QObexHeader::Length | 0xc3 | The size of the object. |
QObexHeader::Time | 0x44 | A date/time stamp in ISO 8601 format. |
QObexHeader::Description | 0x05 | A text description of the object. |
QObexHeader::Target | 0x46 | The service that is the target of the operation. |
QObexHeader::Http | 0x47 | A HTTP 1.x header. |
QObexHeader::Who | 0x4A | Identifies the OBEX application. |
QObexHeader::ConnectionId | 0xcb | An identifier used for OBEX connection multiplexing. |
QObexHeader::AppParameters | 0x4c | Used for extended application request and response information. |
QObexHeader::AuthChallenge | 0x4d | An authentication digest-challenge. |
QObexHeader::AuthResponse | 0x4e | An authentication digest-response. |
QObexHeader::CreatorId | 0xcf | Indicates the creator of an object. |
QObexHeader::WanUuid | 0x50 | Uniquely identifies a network client (OBEX server). |
QObexHeader::ObjectClass | 0x51 | Details the object class and properties. |
QObexHeader::SessionParameters | 0x52 | Parameters used in session commands and responses. |
QObexHeader::SessionSequenceNumber | 0x93 | Sequence number used in each OBEX packet for reliability. |
QObexHeader::MaximumHeaderId | 0x3f | The maximum value for a Header Identifer, as defined in the OBEX specification. |
Constructs an empty QObexHeader.
Constructs a QObexHeader with the contents from other.
Destroys the header.
Returns the value of the OBEX header field Application Parameters.
Returns an empty byte array if the Application Parameters header is not present.
See also setAppParameters().
Removes all header entries.
Returns the value of the OBEX header field Connection Id.
Returns 0 if the Connection Id header is not present.
See also setConnectionId().
Returns true if this set of headers has a header entry with the header identifier headerId; otherwise returns false.
See also headerIds().
Returns the value of the OBEX header field Count.
Returns 0 if the Count header is not present.
See also setCount().
Returns the value of the OBEX header field Connection Id.
Returns 0 if the Creator ID header is not present.
See also setCreatorId().
Returns a QDateTime that represents the date/time specified by dateTimeString, which must be in the Time header value format defined in the OBEX specification. That is, it must be in the format YYYYMMDDTHHMMSS (for local times) or YYYYMMDDTHHMMSSZ (for UTC time). The letter 'T' separates the date from the time.
Returns an invalid QDateTime if dateTimeString could not be parsed.
See also stringFromDateTime().
Returns the value of the OBEX header field Description.
Returns an empty string if the Description header is not present.
See also setDescription().
Returns a list of the header identifiers in this set of headers.
See also contains().
Returns the value of the OBEX header field HTTP.
Returns an empty byte array if the HTTP header is not present.
See also setHttp().
Returns the value of the OBEX header field Length.
Returns 0 if the Length header is not present.
See also setLength().
Returns the value of the OBEX header field Name.
Returns an empty string if the Name header is not present.
See also setName().
Returns the value of the OBEX header field Object Class.
Returns an empty byte array if the Object Class header is not present.
See also setObjectClass().
Removes the header entry with identifier headerId.
Returns true if the value was removed, or returns false if no entry exists for the identifier headerId.
Returns the value of the OBEX header field Session-Parameters.
Returns an empty byte array if the Session-Parameters header is not present.
See also setSessionParameters().
Returns the value of the OBEX header field Session-Sequence-Number.
Returns 0 if the Session-Sequence-Number header is not present.
See also setSessionSequenceNumber().
Sets the value of the OBEX header field Application Parameters to params.
See also appParameters().
Sets the value of the OBEX header field Authentication Challenge to an authentication challenge generated using the given options and realm.
The realm is a string that can be displayed to users to inform them of the username and password to be used for authentication. The supported encodings for the realm are ASCII, ISO-8859-1 and Unicode.
The options and realm fields are optional when creating a challenge.
Sets the value of the OBEX header field Connection Id to connectionId.
This value identifies the OBEX connection to which an OBEX request belongs, in order to differentiate between multiple clients on the same connection.
Note: If this header is to be sent in an OBEX request, you should not also add a Target value, as it is illegal to send a Target header and a Connection Id header in the same request (as stated in the OBEX specification).
See also connectionId() and QObexClientSession::connectionId().
Sets the value of the OBEX header field Count to count.
This value indicates the number of objects involved in the OBEX operation.
See also count().
Sets the value of the OBEX header field Creator ID to creatorId.
See also creatorId().
Sets the value of the OBEX header field Description to description.
This value can be used to provide additional information about the operation.
See also description().
Sets the value of the OBEX header field HTTP to http.
This value should be a byte sequence containing a HTTP 1.x header.
See also http().
Sets the value of the OBEX header field Length to length.
If the length of the object to be transferred is known in advance, this header should be used.
See also length().
Sets the value of the OBEX header field Name to name.
If an object is being sent to another device, this value should generally be the filename of the object.
An empty name string is used to specify particular behaviors for some GET and SETPATH operations. For GET, an empty string means that the "default" object should be retrieved. For SETPATH, an empty string means the path should be reset to the "default" folder.
See also name().
Sets the value of the OBEX header field Object Class to objectClass.
See also objectClass().
Sets the value of the OBEX header field Session-Parameters to params.
See also sessionParameters().
Sets the value of the OBEX header field Session-Sequence-Number to num.
See also sessionSequenceNumber().
Sets the value of the OBEX header field Target to target.
This value should identify the intended target of an OBEX operation.
Note: If this header is to be sent in an OBEX request, you should not also add a Connection Id value, as it is illegal to send a Target header and a Connection Id header in the same request (as stated in the OBEX specification).
See also target().
If dateTime is a valid QDateTime object, sets the value of the OBEX header field Time to dateTime.
See also time().
Sets the value of the OBEX header field Type to type.
This header corresponds to the content-type header in HTTP. The type value should be a standard ASCII mime type string, e.g. "text/plain", "image/jpeg".
See also type().
Sets the value of the header entry with identifier headerId to the value in variant.
The variant must be able to be converted into one of the following types:
The header encoding of headerId will be used to determine which of the data types should be used for conversion.
Returns true if the value was set for the header. Otherwise, returns false (for example, if the value in variant cannot be converted to the data type specified by headerId).
See also value().
Sets the value of the OBEX header field WAN UUID to uuid.
See also wanUuid().
Sets the value of the OBEX header field Who to who.
This value can be used to allow peer applications to identify each other.
See also who().
Returns the number of entries in the OBEX header.
Returns a date/time string that represents dateTime in the format defined for the Time header value in the OBEX specification.
The dateTime timeSpec() value is used to determine the time zone information. That is, the string will be in the format YYYYMMDDTHHMMSS if timeSpec() is Qt::LocalTime, or the format YYYYMMDDTHHMMSSZ if it is Qt::UTC.
Returns an empty string if dateTime is invalid.
See also dateTimeFromString().
Returns the value of the OBEX header field Target.
Returns an empty byte array if the Target header is not present.
See also setTarget().
Returns the value of the OBEX header field Time.
Returns an invalid QDateTime object if the Time header is not present, or if the header value does not conform to the ISO 8601 format.
See also setTime().
Returns the value of the OBEX header field Type.
Returns an empty string if the Type header is not present.
See also setType().
Returns the value of the header entry with identifier headerId.
Returns an invalid variant if no entry exists for headerId.
See also setValue().
Returns the value of the OBEX header field WAN UUID.
Returns a null UUID if the WAN UUID header is not present.
See also setWanUuid().
Returns the value of the OBEX header field Who.
Returns an empty byte array if the Who header is not present.
See also setWho().
Returns true if other is not equal to this header; otherwise returns false.
See also operator==().
Assigns the contents of other to this object and returns a reference to this header.
Returns true if other contains the same values as this header; otherwise returns false.
See also operator!=().
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