|
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: rtcinterfacehelpers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "TestHarness.h" |
|
20 |
|
21 #include "commsmessage.h" |
|
22 |
|
23 #include "rtcmessages.h" |
|
24 |
|
25 #include "testmessages.h" |
|
26 #include "rtcinterfacehelpers.h" |
|
27 |
|
28 using java::comms::CommsMessage; |
|
29 using namespace java::captain; |
|
30 |
|
31 void iLaunch(const Uid& aUid, const bool& /*sync*/, std::string rtc, const int type) |
|
32 { |
|
33 // Launch start |
|
34 CommsMessage msg; |
|
35 setLaunchAppParameters(msg, aUid, type, rtc); |
|
36 CHECK(commsClient->send(msg) == 0); |
|
37 // Launch end |
|
38 } |
|
39 |
|
40 void iTerminate(const Uid& aUid, const bool& /*sync*/) |
|
41 { |
|
42 // To make sure that the application is not running |
|
43 CommsMessage msg; |
|
44 setTerminateAppParameters(msg, aUid); |
|
45 CHECK(commsClient->send(msg) == 0); |
|
46 } |
|
47 |
|
48 void iDisable(const Uid& aUid) |
|
49 { |
|
50 CommsMessage msg; |
|
51 setDisableAppParameters(msg, aUid); |
|
52 CHECK(commsClient->send(msg) == 0); |
|
53 } |
|
54 |
|
55 void iEnable(const Uid& aUid) |
|
56 { |
|
57 CommsMessage msg; |
|
58 setEnableAppParameters(msg, aUid); |
|
59 CHECK(commsClient->send(msg) == 0); |
|
60 } |
|
61 |