|
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: RtcInterface |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef RTCINTERFACE_H |
|
19 #define RTCINTERFACE_H |
|
20 |
|
21 #include <string> |
|
22 |
|
23 #include "javauid.h" |
|
24 #include "commsmessage.h" |
|
25 |
|
26 #include "rtcmessages.h" // RTC_LAUNCH_TYPE consts |
|
27 |
|
28 using java::util::Uid; |
|
29 using java::comms::CommsMessage; |
|
30 |
|
31 namespace java |
|
32 { |
|
33 namespace captain |
|
34 { |
|
35 |
|
36 class rtcLaunchInfo |
|
37 { |
|
38 public: |
|
39 rtcLaunchInfo(const Uid& aUID, |
|
40 const int& aLaunchType = RTC_LAUNCH_TYPE_NORMAL_C, |
|
41 std::string aRtcType = "midp", |
|
42 std::wstring aApplicationArguments = L"", |
|
43 std::wstring aRuntimeArguments = L"") |
|
44 :mUID(aUID), mLaunchType(aLaunchType), mRtcType(aRtcType), |
|
45 mApplicationArguments(aApplicationArguments), |
|
46 mRuntimeArguments(aRuntimeArguments) |
|
47 {} |
|
48 |
|
49 public: |
|
50 const Uid mUID; |
|
51 const int mLaunchType; |
|
52 const std::string mRtcType; |
|
53 const std::wstring mApplicationArguments; |
|
54 const std::wstring mRuntimeArguments; |
|
55 }; |
|
56 |
|
57 class rtcTerminateInfo |
|
58 { |
|
59 public: |
|
60 rtcTerminateInfo(const Uid& aUID):mUID(aUID) |
|
61 {} |
|
62 |
|
63 Uid mUID; |
|
64 }; |
|
65 |
|
66 class RtcInterface |
|
67 { |
|
68 public: |
|
69 virtual ~RtcInterface() {} |
|
70 |
|
71 virtual bool launch(const rtcLaunchInfo& aLaunchInfo) = 0; |
|
72 virtual bool terminate(const rtcTerminateInfo& aTerminateInfo) = 0; |
|
73 |
|
74 virtual bool enable(const Uid& aUID) = 0; |
|
75 virtual bool disable(const Uid& aUID) = 0; |
|
76 |
|
77 virtual void setGlobalRuntimeArguments(const std::wstring& aArguments) = 0; |
|
78 virtual std::wstring getGlobalRuntimeArguments() = 0; |
|
79 |
|
80 virtual void setGlobalApplicationArguments(const std::wstring& aArguments) = 0; |
|
81 virtual std::wstring getGlobalApplicationArguments() = 0; |
|
82 }; |
|
83 |
|
84 } // namespace captain |
|
85 } // namespace java |
|
86 |
|
87 #endif // RTCINTERFACE_H |
|
88 |