/**********************************************************************
* Copyright (c) 2012, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Bernd Hufmann - Initial API and implementation
**********************************************************************/
package org.eclipse.tracecompass.internal.lttng2.control.ui.views.dialogs;
import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceDomainType;
import org.eclipse.tracecompass.internal.lttng2.control.core.model.IChannelInfo;
import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TargetNodeComponent;
import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceDomainComponent;
/**
* <p>
* Interface for the enable channel dialog when domain is known.
* </p>
*
* @author Bernd Hufmann
*/
public interface IEnableChannelDialog {
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
/**
* @return the configuration info for the new channel.
*/
IChannelInfo getChannelInfo();
/**
* Sets the domain component
* @param domain - the trace domain component
*/
void setDomainComponent(TraceDomainComponent domain);
/**
* Set the targent node component
* @param node - the node component
*/
void setTargetNodeComponent(TargetNodeComponent node);
/**
* @return The domain type ({@link TraceDomainType})
*/
TraceDomainType getDomain();
/**
* Sets the whether dialog is for Kernel or UST
* @param isKernel true for kernel domain else UST
*/
void setHasKernel(boolean isKernel);
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
/**
* @return the open return value
*/
int open();
}