28#ifndef QOAUTH_NAMESPACE_H
29#define QOAUTH_NAMESPACE_H
46 typedef QMultiMap<QByteArray,QByteArray>
ParamMap;
This namespace encapsulates all classes and definitions provided by libqoauth.
Definition: interface.h:41
ErrorCode
This enum type defines error types that are assigned to the QOAuth::Interface::error property.
Definition: qoauth_namespace.h:124
@ BadRequest
Represents HTTP status code 400 (Bad Request)
Definition: qoauth_namespace.h:126
@ Unauthorized
Represents HTTP status code 401 (Unauthorized)
Definition: qoauth_namespace.h:127
@ RSAPrivateKeyEmpty
RSA private key has not been provided.
Definition: qoauth_namespace.h:137
@ ConsumerKeyEmpty
Consumer key has not been provided.
Definition: qoauth_namespace.h:130
@ Timeout
Represents a request timeout error.
Definition: qoauth_namespace.h:129
@ RSADecodingError
Definition: qoauth_namespace.h:139
@ RSAKeyFileError
The provided key file either doesn't exist or is unreadable.
Definition: qoauth_namespace.h:141
@ UnsupportedHttpMethod
Definition: qoauth_namespace.h:132
@ OtherError
A network-related error not specified above.
Definition: qoauth_namespace.h:142
@ NoError
No error occured (so far :-) )
Definition: qoauth_namespace.h:125
@ ConsumerSecretEmpty
Consumer secret has not been provided.
Definition: qoauth_namespace.h:131
@ Forbidden
Represents HTTP status code 403 (Forbidden)
Definition: qoauth_namespace.h:128
ParsingMode
This enum type specifies the method of parsing parameters into a parameter string.
Definition: qoauth_namespace.h:106
@ ParseForHeaderArguments
HTTP request header format (parameters to be put inside a request header)
Definition: qoauth_namespace.h:110
@ ParseForSignatureBaseString
Signature Base String format, meant for internal use.
Definition: qoauth_namespace.h:111
@ ParseForRequestContent
Inline query format (foo=bar&bar=baz&baz=foo ...), suitable for POST requests.
Definition: qoauth_namespace.h:107
@ ParseForInlineQuery
Definition: qoauth_namespace.h:108
QMultiMap< QByteArray, QByteArray > ParamMap
A typedef for the data structure for storing request parameters.
Definition: qoauth_namespace.h:46
SignatureMethod
This enum type describes the signature method used by the request.
Definition: qoauth_namespace.h:59
@ HMAC_SHA1
Sets the signature method to HMAC-SHA1.
Definition: qoauth_namespace.h:60
@ PLAINTEXT
Sets the signature method to PLAINTEXT (not implemented yet)
Definition: qoauth_namespace.h:62
@ RSA_SHA1
Sets the signature method to RSA-SHA1 (not implemented yet)
Definition: qoauth_namespace.h:61
QOAUTH_EXPORT QByteArray tokenParameterName()
Returns the name of the Access Token argument parameter (oauth_token in current implementation)
Definition: interface.cpp:183
HttpMethod
This enum type specifies the HTTP method used for creating a Signature Base String and/or sending a r...
Definition: qoauth_namespace.h:80
@ DELETE
Sets the HTTP method to DELETE.
Definition: qoauth_namespace.h:86
@ HEAD
Sets the HTTP method to HEAD.
Definition: qoauth_namespace.h:83
@ GET
Sets the HTTP method to GET.
Definition: qoauth_namespace.h:81
@ PUT
Sets the HTTP method to PUT.
Definition: qoauth_namespace.h:84
@ POST
Sets the HTTP method to POST.
Definition: qoauth_namespace.h:82
QOAUTH_EXPORT QByteArray supportedOAuthVersion()
Returns the supported OAuth protocol version.
Definition: interface.cpp:178
QOAUTH_EXPORT QByteArray tokenSecretParameterName()
Returns the name of the Token Secret argument parameter (oauth_token_secret in current implementation...
Definition: interface.cpp:188