| 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.control.ui.views.dialogs; |
| 13 | |
| 14 | import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.ITraceControlComponent; |
| 15 | import org.eclipse.rse.core.model.IHost; |
| 16 | |
| 17 | /** |
| 18 | * <p> |
| 19 | * Interface for connection information dialog. |
| 20 | * </p> |
| 21 | * |
| 22 | * @author Bernd Hufmann |
| 23 | */ |
| 24 | public interface INewConnectionDialog { |
| 25 | |
| 26 | // ------------------------------------------------------------------------ |
| 27 | // Accessors |
| 28 | // ------------------------------------------------------------------------ |
| 29 | /** |
| 30 | * @return the connection name (alias). |
| 31 | */ |
| 32 | String getConnectionName(); |
| 33 | |
| 34 | /** |
| 35 | * @return the host name (IP address or DNS name) |
| 36 | */ |
| 37 | String getHostName(); |
| 38 | |
| 39 | /** |
| 40 | * @return port of IP connection to be used |
| 41 | */ |
| 42 | int getPort(); |
| 43 | |
| 44 | /** |
| 45 | * Sets the trace control root |
| 46 | * @param parent - the trace control parent |
| 47 | */ |
| 48 | void setTraceControlParent(ITraceControlComponent parent); |
| 49 | |
| 50 | /** |
| 51 | * Sets the available hosts to select. |
| 52 | * @param hosts - the available hosts |
| 53 | */ |
| 54 | void setHosts(IHost[] hosts); |
| 55 | |
| 56 | /** |
| 57 | * Set the port of the IP connection to be used. |
| 58 | * @param port - the IP port to set |
| 59 | */ |
| 60 | void setPort(int port); |
| 61 | |
| 62 | // ------------------------------------------------------------------------ |
| 63 | // Operations |
| 64 | // ------------------------------------------------------------------------ |
| 65 | /** |
| 66 | * @return returns the open return value |
| 67 | */ |
| 68 | int open(); |
| 69 | } |