smf/smfservermodule/smfserver/server/smfserverqt_p.h
changeset 10 77a56c951f86
parent 7 be09cf1f39dd
child 13 b5d63d5fc252
--- a/smf/smfservermodule/smfserver/server/smfserverqt_p.h	Tue May 18 17:37:12 2010 +0530
+++ b/smf/smfservermodule/smfserver/server/smfserverqt_p.h	Fri May 21 15:45:10 2010 +0100
@@ -11,15 +11,17 @@
  *
  * Contributors:
  * Manasij Roy, Nalina Hariharan
-* Description:
-* SMF Server implementation for platforms other than Symbian.
-* Uses  QLocalServer-QLocalSocket classes
-*
-*/
+ * Description:
+ * SMF Server implementation for platforms other than Symbian.
+ * Uses  QLocalServer-QLocalSocket classes
+ *
+ */
 
 #ifndef SMFSERVERQT_P_H
 #define SMFSERVERQT_P_H
 
+#include "smfglobal.h"
+
 #include <QObject>
 class QLocalServer;
 class QLocalSocket;
@@ -29,35 +31,41 @@
     Q_OBJECT
 
 public:
-    SmfServerQt() {}
-#endif
+    SmfServerQt();
+    ~SmfServerQt();
 
-    ~SmfServerQt() {}
-    bool start() {return false;}
-    int sessionListCount() const {return 0;}
+    bool start();
+    int sessionListCount() const;
+    void writeLog(QString log) const;
+    void clientAuthorizationFinished(bool success);
+    int findAndServiceclient(int requestID,QByteArray* parsedData,SmfError error);
+
 private slots:
-    void newClientConnected() {}
-    void removeFromList() {}
+    void newClientConnected();
+    void removeFromList();
 
 private:
-    QLocalServer *server;
-    QLocalSocket *iClient;
+    QLocalServer *m_server;
+    QLocalSocket *m_client;
 };
 
 class SmfServerQtSession : public QObject
 {
     Q_OBJECT
+
 public:
-    SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server) {Q_UNUSED(server) Q_UNUSED(clientConnection)}
-    ~SmfServerQtSession() {}
+    SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server);
+    ~SmfServerQtSession();
+
+    void clientAuthorizationFinished(bool success);
 
 public slots:
-    void readDataFromClient() {}
+    void readDataFromClient();
     
 private:
-    SmfServerQt *iServer;
-    QLocalSocket *iClientConnection;
+    SmfServerQt *m_server;
+    QLocalSocket *m_clientConnection;
 
 };
 
-//#endif // SMFSERVERQT_P_H
+#endif // SMFSERVERQT_P_H