9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * Manasij Roy, Nalina Hariharan |
13 * Manasij Roy, Nalina Hariharan |
14 * Description: |
14 * Description: |
15 * SMF Server implementation for platforms other than Symbian. |
15 * SMF Server implementation for platforms other than Symbian. |
16 * Uses QLocalServer-QLocalSocket classes |
16 * Uses QLocalServer-QLocalSocket classes |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
20 #ifndef SMFSERVERQT_P_H |
20 #ifndef SMFSERVERQT_P_H |
21 #define SMFSERVERQT_P_H |
21 #define SMFSERVERQT_P_H |
|
22 |
|
23 #include "smfglobal.h" |
22 |
24 |
23 #include <QObject> |
25 #include <QObject> |
24 class QLocalServer; |
26 class QLocalServer; |
25 class QLocalSocket; |
27 class QLocalSocket; |
26 |
28 |
27 class SmfServerQt : public QObject |
29 class SmfServerQt : public QObject |
28 { |
30 { |
29 Q_OBJECT |
31 Q_OBJECT |
30 |
32 |
31 public: |
33 public: |
32 SmfServerQt() {} |
34 SmfServerQt(); |
33 #endif |
35 ~SmfServerQt(); |
34 |
36 |
35 ~SmfServerQt() {} |
37 bool start(); |
36 bool start() {return false;} |
38 int sessionListCount() const; |
37 int sessionListCount() const {return 0;} |
39 void writeLog(QString log) const; |
|
40 void clientAuthorizationFinished(bool success); |
|
41 int findAndServiceclient(int requestID,QByteArray* parsedData,SmfError error); |
|
42 |
38 private slots: |
43 private slots: |
39 void newClientConnected() {} |
44 void newClientConnected(); |
40 void removeFromList() {} |
45 void removeFromList(); |
41 |
46 |
42 private: |
47 private: |
43 QLocalServer *server; |
48 QLocalServer *m_server; |
44 QLocalSocket *iClient; |
49 QLocalSocket *m_client; |
45 }; |
50 }; |
46 |
51 |
47 class SmfServerQtSession : public QObject |
52 class SmfServerQtSession : public QObject |
48 { |
53 { |
49 Q_OBJECT |
54 Q_OBJECT |
|
55 |
50 public: |
56 public: |
51 SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server) {Q_UNUSED(server) Q_UNUSED(clientConnection)} |
57 SmfServerQtSession(QLocalSocket *clientConnection, SmfServerQt *server); |
52 ~SmfServerQtSession() {} |
58 ~SmfServerQtSession(); |
|
59 |
|
60 void clientAuthorizationFinished(bool success); |
53 |
61 |
54 public slots: |
62 public slots: |
55 void readDataFromClient() {} |
63 void readDataFromClient(); |
56 |
64 |
57 private: |
65 private: |
58 SmfServerQt *iServer; |
66 SmfServerQt *m_server; |
59 QLocalSocket *iClientConnection; |
67 QLocalSocket *m_clientConnection; |
60 |
68 |
61 }; |
69 }; |
62 |
70 |
63 //#endif // SMFSERVERQT_P_H |
71 #endif // SMFSERVERQT_P_H |