equal
deleted
inserted
replaced
|
1 /** |
|
2 This file is part of CWRT package ** |
|
3 |
|
4 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** |
|
5 |
|
6 This program is free software: you can redistribute it and/or modify |
|
7 it under the terms of the GNU (Lesser) General Public License as |
|
8 published by the Free Software Foundation, version 2.1 of the License. |
|
9 This program is distributed in the hope that it will be useful, but |
|
10 WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 (Lesser) General Public License for more details. You should have |
|
13 received a copy of the GNU (Lesser) General Public License along |
|
14 with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef serviceipcsharedmem_p_h |
|
19 #define serviceipcsharedmem_p_h |
|
20 |
|
21 #include <QtCore> |
|
22 #include "serviceipc_p.h" |
|
23 |
|
24 namespace WRT { |
|
25 |
|
26 class ServiceSharedMemIPC : public ServiceFwIPCPrivate |
|
27 { |
|
28 public: |
|
29 ServiceSharedMemIPC(); |
|
30 |
|
31 virtual ~ServiceSharedMemIPC(); |
|
32 |
|
33 public: |
|
34 |
|
35 bool connect(const QString& aServerName); |
|
36 |
|
37 void disconnect(); |
|
38 |
|
39 bool startServer(const QString& aServerName, const QString& aExeName); |
|
40 |
|
41 bool sendSync(const QString& aRequestType, const QByteArray& aData); |
|
42 |
|
43 void sendAsync(const QString& aRequestType, const QByteArray& aData); |
|
44 |
|
45 QByteArray readAll(); |
|
46 |
|
47 bool waitForRead(); |
|
48 }; |
|
49 |
|
50 } |
|
51 #endif // serviceipcsharedmem_p_h |