| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012 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.ui.views.control.model.IChannelInfo; |
| 15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent; |
| 16 | |
| 17 | /** |
| 18 | * <b><u>ICreateChannelDialog</u></b> |
| 19 | * <p> |
| 20 | * Interface for the create channel dialog when domain is known. |
| 21 | * </p> |
| 22 | */ |
| 23 | public interface ICreateChannelDialog { |
| 24 | |
| 25 | // ------------------------------------------------------------------------ |
| 26 | // Accessors |
| 27 | // ------------------------------------------------------------------------ |
| 28 | /** |
| 29 | * @return the configuration info for the new channel. |
| 30 | */ |
| 31 | public IChannelInfo getChannelInfo(); |
| 32 | |
| 33 | /** |
| 34 | * Sets the domain component |
| 35 | * @param domain - the trace domain component |
| 36 | */ |
| 37 | public void setDomainComponent(TraceDomainComponent domain); |
| 38 | |
| 39 | // ------------------------------------------------------------------------ |
| 40 | // Operations |
| 41 | // ------------------------------------------------------------------------ |
| 42 | /** |
| 43 | * @return the open return value |
| 44 | */ |
| 45 | int open(); |
| 46 | } |