smf/smfservermodule/smfserver/server/smfserverqt_p.h
changeset 10 1d94eb8df9c2
parent 9 b85b0c039c14
equal deleted inserted replaced
9:b85b0c039c14 10:1d94eb8df9c2
     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 * Description:
       
    15 * SMF Server implementation for platforms other than Symbian.
       
    16 * Uses  QLocalServer-QLocalSocket classes
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef SMFSERVERQT_P_H
       
    21 #define SMFSERVERQT_P_H
       
    22 
       
    23 #include <QObject>
       
    24 class QLocalServer;
       
    25 class QLocalSocket;
       
    26 
       
    27 class SmfServerQt : public QObject
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     SmfServerQt() {}
       
    33 #endif
       
    34 
       
    35     ~SmfServerQt() {}
       
    36     bool start() {return false;}
       
    37     int sessionListCount() const {return 0;}
       
    38 private slots:
       
    39     void newClientConnected() {}
       
    40     void removeFromList() {}
       
    41 
       
    42 private:
       
    43     QLocalServer *server;
       
    44     QLocalSocket *iClient;
       
    45 };
       
    46 
       
    47 class SmfServerQtSession : public QObject
       
    48 {
       
    49     Q_OBJECT
       
    50 public:
       
    51     SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server) {Q_UNUSED(server) Q_UNUSED(clientConnection)}
       
    52     ~SmfServerQtSession() {}
       
    53 
       
    54 public slots:
       
    55     void readDataFromClient() {}
       
    56     
       
    57 private:
       
    58     SmfServerQt *iServer;
       
    59     QLocalSocket *iClientConnection;
       
    60 
       
    61 };
       
    62 
       
    63 //#endif // SMFSERVERQT_P_H