Commit | Line | Data |
---|---|---|
6503ae0f | 1 | /********************************************************************** |
ba3a9bd2 | 2 | * Copyright (c) 2012, 2013 Ericsson |
d4514365 | 3 | * |
6503ae0f BH |
4 | * All rights reserved. This program and the accompanying materials are |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
d4514365 BH |
8 | * |
9 | * Contributors: | |
6503ae0f | 10 | * Bernd Hufmann - Initial API and implementation |
ba3a9bd2 | 11 | * Bernd Hufmann - Updated for support of LTTng Tools 2.1 |
6503ae0f | 12 | **********************************************************************/ |
115b4a01 | 13 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
6503ae0f | 14 | |
115b4a01 BH |
15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceChannelComponent; |
16 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent; | |
6503ae0f BH |
17 | |
18 | /** | |
6503ae0f BH |
19 | * <p> |
20 | * Interface for a dialog box for collecting information about the events to enable. | |
21 | * </p> | |
d4514365 | 22 | * |
dbd4432d | 23 | * @author Bernd Hufmann |
6503ae0f BH |
24 | */ |
25 | public interface IGetEventInfoDialog { | |
d4514365 | 26 | |
6503ae0f BH |
27 | // ------------------------------------------------------------------------ |
28 | // Accessors | |
29 | // ------------------------------------------------------------------------ | |
30 | /** | |
31 | * @return the session the events shall be enabled. | |
32 | */ | |
a6e6f7b4 | 33 | TraceSessionComponent getSession(); |
6503ae0f BH |
34 | |
35 | /** | |
36 | * @return the channel the events shall be enabled. Null for default channel. | |
37 | */ | |
a6e6f7b4 | 38 | TraceChannelComponent getChannel(); |
d4514365 | 39 | |
d132bcc7 BH |
40 | /** |
41 | * Sets flag about domain. | |
42 | * @param isKernel - true for kernel, false for UST | |
43 | */ | |
a6e6f7b4 | 44 | void setIsKernel(boolean isKernel); |
d4514365 | 45 | |
d132bcc7 BH |
46 | /** |
47 | * Sets available session. | |
48 | * @param sessions - a array of available sessions. | |
49 | */ | |
a6e6f7b4 | 50 | void setSessions(TraceSessionComponent[] sessions); |
6503ae0f | 51 | |
d4514365 BH |
52 | /** |
53 | * Returns the filter expression. | |
54 | * @return the filter expression or null for no filtering | |
55 | */ | |
a6e6f7b4 | 56 | String getFilterExpression(); |
d4514365 | 57 | |
6503ae0f BH |
58 | // ------------------------------------------------------------------------ |
59 | // Operations | |
60 | // ------------------------------------------------------------------------ | |
61 | /** | |
62 | * @return returns the open return value | |
63 | */ | |
64 | int open(); | |
65 | } |