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