2009-04-13 14:39:26 +02:00
|
|
|
/**
|
|
|
|
* This file is part of the KDE project
|
|
|
|
* Copyright (C) 2009 Kevin Ottens <ervin@kde.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public License
|
|
|
|
* along with this library; see the file COPYING.LIB. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
#ifndef QTJOLIE_CLIENT_P_H
|
|
|
|
#define QTJOLIE_CLIENT_P_H
|
2009-04-13 14:39:26 +02:00
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
#include "client.h"
|
|
|
|
#include "pendingcall_p.h"
|
2009-04-13 14:39:26 +02:00
|
|
|
|
|
|
|
#include <QtCore/QMap>
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
namespace Jolie
|
|
|
|
{
|
|
|
|
|
|
|
|
class ClientThread;
|
2009-04-13 14:39:26 +02:00
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
class ClientPrivate : public QObject
|
2009-04-13 14:39:26 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2009-04-25 15:50:35 +02:00
|
|
|
ClientPrivate(Client *client)
|
2009-04-13 14:39:26 +02:00
|
|
|
: q(client),
|
2009-04-25 15:50:35 +02:00
|
|
|
error(Client::NoError) {}
|
2009-04-13 14:39:26 +02:00
|
|
|
|
|
|
|
public slots:
|
2009-04-25 15:50:35 +02:00
|
|
|
void messageReceived(const Jolie::Message &message);
|
2009-04-13 14:39:26 +02:00
|
|
|
|
|
|
|
private:
|
2009-04-25 15:50:35 +02:00
|
|
|
friend class Client;
|
|
|
|
Client * const q;
|
|
|
|
ClientThread *readerThread;
|
2009-04-13 14:39:26 +02:00
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
Client::Error error;
|
2009-04-13 14:39:26 +02:00
|
|
|
QString errorString;
|
2009-04-25 15:50:35 +02:00
|
|
|
QMap<int, QExplicitlySharedDataPointer<PendingCallPrivate> > pendingCalls;
|
2009-04-13 14:39:26 +02:00
|
|
|
};
|
|
|
|
|
2009-04-25 15:50:35 +02:00
|
|
|
} // namespace Jolie
|
|
|
|
|
2009-04-13 14:39:26 +02:00
|
|
|
#endif
|
2009-04-25 15:50:35 +02:00
|
|
|
|