|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: rtccommshelpers |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef RTCCOMMSHELPERS_H |
|
19 #define RTCCOMMSHELPERS_H |
|
20 |
|
21 #include "commsclientendpoint.h" |
|
22 #include "javauid.h" |
|
23 |
|
24 #include "rtcmessages.h" |
|
25 |
|
26 using java::util::Uid; |
|
27 using namespace java::captain; |
|
28 |
|
29 extern java::comms::CommsClientEndpoint* commsClient; |
|
30 |
|
31 const int sendReceiveTimeout = 10; |
|
32 const bool syncOn = true; |
|
33 const bool syncOff = false; |
|
34 |
|
35 void launch(const Uid& aUid, const bool& sync, std::string rtc = "midp", const int& type = RTC_LAUNCH_TYPE_NORMAL_C, const bool& allowFail = false); |
|
36 //void launch(const Uid& aUid, const bool& sync, std::string rtc = "midp", const int& type, const bool& allowFail) |
|
37 |
|
38 void terminate(const Uid& aUid, const bool& sync); |
|
39 void disable(const Uid& aUid); |
|
40 void enable(const Uid& aUid); |
|
41 |
|
42 #endif // RTCCOMMSHELPERS_H |
|
43 |