author | Ed Swartz <ed.swartz@nokia.com> |
Fri, 11 Dec 2009 10:41:54 -0600 | |
changeset 678 | 557efa279676 |
permissions | -rw-r--r-- |
678
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
1 |
/* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
8 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
11 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
13 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
15 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
17 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
18 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
19 |
package com.nokia.carbide.trk.support.service; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
20 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
21 |
import org.osgi.framework.Version; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
22 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
23 |
import com.nokia.carbide.remoteconnections.Messages; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
24 |
import com.nokia.carbide.remoteconnections.interfaces.IConnectedService; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
25 |
import com.nokia.carbide.remoteconnections.interfaces.IService; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
26 |
import com.nokia.cpp.internal.api.utils.core.IListenerFiring; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
27 |
import com.nokia.cpp.internal.api.utils.core.ListenerList; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
28 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
29 |
/** |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
30 |
* This is a stub for the TRK and Trace connected services used when the host |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
31 |
* does not support Chad's TCF. This reconciles the fact that a TRK connection publishes |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
32 |
* these services, but we cannot actually instantiate them. |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
33 |
* <p> |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
34 |
* In the future this should find a way to talk to the device over Eclipse TCF or something. |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
35 |
*/ |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
36 |
public class RemoteConnectedService implements IConnectedService { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
37 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
38 |
private boolean enabled = true; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
39 |
private final IService service; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
40 |
private IStatus unknownStatus = new IStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
41 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
42 |
public IConnectedService getConnectedService() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
43 |
return RemoteConnectedService.this; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
44 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
45 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
46 |
public EStatus getEStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
47 |
return EStatus.UNKNOWN; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
48 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
49 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
50 |
public String getLongDescription() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
51 |
return "The device is connected remotely; testing not yet implemented."; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
52 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
53 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
54 |
public String getShortDescription() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
55 |
return "Unknown"; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
56 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
57 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
58 |
}; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
59 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
60 |
private IStatus noStatus = new IStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
61 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
62 |
public IConnectedService getConnectedService() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
63 |
return RemoteConnectedService.this; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
64 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
65 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
66 |
public EStatus getEStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
67 |
return EStatus.UNKNOWN; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
68 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
69 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
70 |
public String getLongDescription() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
71 |
return Messages.getString("AbstractConnectedService.UserDisabledMessage"); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
72 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
73 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
74 |
public String getShortDescription() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
75 |
return Messages.getString("AbstractConnectedService.NoTestingLabel"); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
76 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
77 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
78 |
}; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
79 |
private ListenerList<IStatusChangedListener> listeners; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
80 |
private IStatus currentStatus; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
81 |
/** |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
82 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
83 |
*/ |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
84 |
public RemoteConnectedService(IService service) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
85 |
this.service = service; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
86 |
listeners = new ListenerList<IStatusChangedListener>(); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
87 |
currentStatus = noStatus; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
88 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
89 |
public void addStatusChangedListener(IStatusChangedListener listener) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
90 |
listeners.add(listener); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
91 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
92 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
93 |
public void dispose() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
94 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
95 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
96 |
public IService getService() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
97 |
return service; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
98 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
99 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
100 |
public IStatus getStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
101 |
return currentStatus; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
102 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
103 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
104 |
public void removeStatusChangedListener(IStatusChangedListener listener) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
105 |
listeners.remove(listener); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
106 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
107 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
108 |
public void testStatus() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
109 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
110 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
111 |
public void setDeviceOS(String familyName, Version version) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
112 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
113 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
114 |
public boolean isEnabled() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
115 |
return enabled; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
116 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
117 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
118 |
public void setEnabled(boolean enabled) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
119 |
this.enabled = enabled; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
120 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
121 |
currentStatus = enabled ? unknownStatus : noStatus; |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
122 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
123 |
fireListeners(); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
124 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
125 |
/** |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
126 |
* |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
127 |
*/ |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
128 |
private void fireListeners() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
129 |
listeners.fireListeners(new IListenerFiring<IStatusChangedListener>() { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
130 |
|
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
131 |
public void fire(IStatusChangedListener listener) { |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
132 |
listener.statusChanged(getStatus()); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
133 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
134 |
}); |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
135 |
} |
557efa279676
Fixes for #10354 (Linux & remote connections). Provide appropriate status for TRK/Tracing when remote connection not impemented. Do not provide installer data for now either.
Ed Swartz <ed.swartz@nokia.com>
parents:
diff
changeset
|
136 |
} |