diff -r 5bed45b14781 -r b5d63d5fc252 smf/smfservermodule/smfserver/server/smfserverqtsession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/smf/smfservermodule/smfserver/server/smfserverqtsession.h Mon Jun 07 11:43:45 2010 +0100 @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2010 Sasken Communication Technologies Ltd. + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of the "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html" + * + * Initial Contributors: + * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution + * + * Contributors: + * Manasij Roy, Nalina Hariharan + * + * + * Description: Session implementation for Qt desktop builds + * + */ + +#ifndef SMFSERVERQTSESSION_H +#define SMFSERVERQTSESSION_H + +#include +#include + +class SmfServerQt; + +class SmfServerQtSession : public QObject +{ + Q_OBJECT + +public: + SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server); + ~SmfServerQtSession(); + + void clientAuthorizationFinished(bool success); + +private: + void handleRequest(); + void handleGetService(); + +public slots: + void readDataFromClient(); + void socketError(QLocalSocket::LocalSocketError error); + +private: + int m_opCode; + QLocalSocket *m_clientConnection; + SmfServerQt *m_server; +}; + +#endif // SMFSERVERQTSESSION_H