connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/api/IStatusDisplay.java
changeset 1039 c7873299d91f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/api/IStatusDisplay.java	Mon Mar 01 11:27:50 2010 -0600
@@ -0,0 +1,42 @@
+/**
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+package com.nokia.carbide.remoteconnections.internal.api;
+
+import org.eclipse.core.runtime.IStatus;
+
+public interface IStatusDisplay {
+
+	/**
+	 * Asynchronously displays status with notification UI
+	 * @param status IStatus
+	 */
+	void displayStatus(IStatus status);
+	
+	/**
+	 * Synchronously displays status with notification UI
+	 * Displays a prompt and runs action if user accepts.
+	 * Calling thread will block until notification is closed (either by timer or by user)
+	 * and if action will be called on the calling thread.
+	 * NOTE: This cannot be called on display thread!<br>
+	 * <code>assert Display.getCurrent() == null;</code>
+	 * @param status IStatus
+	 * @param prompt String
+	 * @param action Runnable
+	 */
+	void displayStatusWithAction(IStatus status, String prompt, Runnable action);
+}