QOAuth
1.0.1
Main Page
Namespaces
Classes
Files
File List
src
qoauth_namespace.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2009-2010 by Dominik Kapusta <d@ayoy.net> *
3
* *
4
* This library is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU Lesser General Public License as *
6
* published by the Free Software Foundation; either version 2.1 of *
7
* the License, or (at your option) any later version. *
8
* *
9
* This library is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12
* Lesser General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU Lesser General Public *
15
* License along with this library; if not, write to *
16
* the Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18
***************************************************************************/
19
20
28
#ifndef QOAUTH_NAMESPACE_H
29
#define QOAUTH_NAMESPACE_H
30
31
#include <QMultiMap>
32
#include <QByteArray>
33
34
#include "
qoauth_global.h
"
35
40
namespace
QOAuth {
41
46
typedef
QMultiMap<QByteArray,QByteArray>
ParamMap
;
47
59
enum
SignatureMethod
{
60
HMAC_SHA1
,
61
RSA_SHA1
,
62
PLAINTEXT
63
};
64
80
enum
HttpMethod
{
81
GET
,
82
POST
,
83
HEAD
,
84
PUT
85
#ifndef Q_WS_WIN
86
,
DELETE
87
#endif
88
};
89
106
enum
ParsingMode
{
107
ParseForRequestContent
,
108
ParseForInlineQuery
,
110
ParseForHeaderArguments
,
111
ParseForSignatureBaseString
112
};
113
124
enum
ErrorCode
{
125
NoError
= 200,
126
BadRequest
= 400,
127
Unauthorized
= 401,
128
Forbidden
= 403,
129
Timeout
= 1001,
130
ConsumerKeyEmpty
,
131
ConsumerSecretEmpty
,
132
UnsupportedHttpMethod
,
137
RSAPrivateKeyEmpty
= 1101,
138
// RSAPassphraseError, //!< RSA passphrase is incorrect (or has not been provided)
139
RSADecodingError
,
141
RSAKeyFileError
,
142
OtherError
143
};
144
145
149
QOAUTH_EXPORT QByteArray
supportedOAuthVersion
();
150
169
QOAUTH_EXPORT QByteArray
tokenParameterName
();
170
176
QOAUTH_EXPORT QByteArray
tokenSecretParameterName
();
177
178
}
// namespace QOAuth
179
180
#endif // QOAUTH_NAMESPACE_H
Generated by
1.8.1.1