| 1 |
/** |
| 2 |
* KQOAuth - An OAuth authentication library for Qt. |
| 3 |
* |
| 4 |
* Author: Johan Paul ([email protected]) |
| 5 |
* http://www.johanpaul.com |
| 6 |
* |
| 7 |
* This library is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU Lesser General Public |
| 9 |
* License as published by the Free Software Foundation; either |
| 10 |
* version 2.1 of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* KQOAuth is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public License |
| 18 |
* along with KQOAuth. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
// Note this class shouldn't be copied or used and the implementation might change later. |
| 22 |
#ifndef KQOAUTHAUTHREPLYSERVER_P_H |
| 23 |
#define KQOAUTHAUTHREPLYSERVER_P_H |
| 24 |
|
| 25 |
#include "kqoauthauthreplyserver.h" |
| 26 |
#include <QMultiMap> |
| 27 |
#include <QString> |
| 28 |
|
| 29 |
class KQOAuthAuthReplyServerPrivate: public QObject |
| 30 |
{ |
| 31 |
Q_OBJECT |
| 32 |
public: |
| 33 |
KQOAuthAuthReplyServerPrivate( KQOAuthAuthReplyServer * parent ); |
| 34 |
~KQOAuthAuthReplyServerPrivate(); |
| 35 |
QMultiMap<QString, QString> parseQueryParams(QByteArray *sdata); |
| 36 |
|
| 37 |
public Q_SLOTS: |
| 38 |
void onIncomingConnection(); |
| 39 |
void onBytesReady(); |
| 40 |
|
| 41 |
public: |
| 42 |
KQOAuthAuthReplyServer * q_ptr; |
| 43 |
Q_DECLARE_PUBLIC(KQOAuthAuthReplyServer); |
| 44 |
QTcpSocket *socket; |
| 45 |
|
| 46 |
}; |
| 47 |
|
| 48 |
#endif // KQOAUTHAUTHREPLYSERVER_P_H |