| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012, 2013 Ericsson |
| 3 | * |
| 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 |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Bernd Hufmann - Initial API and implementation |
| 11 | **********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
| 13 | |
| 14 | import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo; |
| 15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent; |
| 16 | |
| 17 | /** |
| 18 | * <p> |
| 19 | * Interface for the enable channel dialog when domain is known. |
| 20 | * </p> |
| 21 | * |
| 22 | * @author Bernd Hufmann |
| 23 | */ |
| 24 | public interface IEnableChannelDialog { |
| 25 | |
| 26 | // ------------------------------------------------------------------------ |
| 27 | // Accessors |
| 28 | // ------------------------------------------------------------------------ |
| 29 | /** |
| 30 | * @return the configuration info for the new channel. |
| 31 | */ |
| 32 | IChannelInfo getChannelInfo(); |
| 33 | |
| 34 | /** |
| 35 | * Sets the domain component |
| 36 | * @param domain - the trace domain component |
| 37 | */ |
| 38 | void setDomainComponent(TraceDomainComponent domain); |
| 39 | |
| 40 | /** |
| 41 | * @return true for Kernel domain. False for UST. |
| 42 | */ |
| 43 | boolean isKernel(); |
| 44 | |
| 45 | /** |
| 46 | * Sets the whether dialog is for Kernel or UST |
| 47 | * @param isKernel true for kernel domain else UST |
| 48 | */ |
| 49 | void setHasKernel(boolean isKernel); |
| 50 | |
| 51 | // ------------------------------------------------------------------------ |
| 52 | // Operations |
| 53 | // ------------------------------------------------------------------------ |
| 54 | /** |
| 55 | * @return the open return value |
| 56 | */ |
| 57 | int open(); |
| 58 | } |