connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/api/IStatusDisplay.java
branchRCL_2_4
changeset 1034 42eaaa076776
equal deleted inserted replaced
1032:083e0a53ef29 1034:42eaaa076776
       
     1 /**
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 package com.nokia.carbide.remoteconnections.internal.api;
       
    19 
       
    20 import org.eclipse.core.runtime.IStatus;
       
    21 
       
    22 public interface IStatusDisplay {
       
    23 
       
    24 	/**
       
    25 	 * Asynchronously displays status with notification UI
       
    26 	 * @param status IStatus
       
    27 	 */
       
    28 	void displayStatus(IStatus status);
       
    29 	
       
    30 	/**
       
    31 	 * Synchronously displays status with notification UI
       
    32 	 * Displays a prompt and runs action if user accepts.
       
    33 	 * Calling thread will block until notification is closed (either by timer or by user)
       
    34 	 * and if action will be called on the calling thread.
       
    35 	 * NOTE: This cannot be called on display thread!<br>
       
    36 	 * <code>assert Display.getCurrent() == null;</code>
       
    37 	 * @param status IStatus
       
    38 	 * @param prompt String
       
    39 	 * @param action Runnable
       
    40 	 */
       
    41 	void displayStatusWithAction(IStatus status, String prompt, Runnable action);
       
    42 }