smf/smfservermodule/smfserver/server/smfserverqtsession.h
changeset 13 b5d63d5fc252
child 18 013a02bf2bb0
equal deleted inserted replaced
12:5bed45b14781 13:b5d63d5fc252
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0"
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  *
       
    15  *
       
    16  * Description: Session implementation for Qt desktop builds
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFSERVERQTSESSION_H
       
    21 #define SMFSERVERQTSESSION_H
       
    22 
       
    23 #include <QObject>
       
    24 #include <QLocalSocket>
       
    25 
       
    26 class SmfServerQt;
       
    27 
       
    28 class SmfServerQtSession : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server);
       
    34     ~SmfServerQtSession();
       
    35 
       
    36     void clientAuthorizationFinished(bool success);
       
    37 
       
    38 private:
       
    39     void handleRequest();
       
    40     void handleGetService();
       
    41 
       
    42 public slots:
       
    43     void readDataFromClient();
       
    44     void socketError(QLocalSocket::LocalSocketError error);
       
    45 
       
    46 private:
       
    47     int m_opCode;
       
    48     QLocalSocket *m_clientConnection;
       
    49     SmfServerQt *m_server;
       
    50 };
       
    51 
       
    52 #endif // SMFSERVERQTSESSION_H