1/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.sdkuilib.internal.tasks;
18
19
20/**
21 * Interface for a user interface that displays the log from a task monitor.
22 */
23public interface ILogUiProvider {
24
25    /**
26     * Sets the description in the current task dialog.
27     * This method can be invoked from a non-UI thread.
28     */
29    public abstract void setDescription(String description);
30
31    /**
32     * Logs a "normal" information line.
33     * This method can be invoked from a non-UI thread.
34     */
35    public abstract void log(String log);
36
37    /**
38     * Logs an "error" information line.
39     * This method can be invoked from a non-UI thread.
40     */
41    public abstract void logError(String log);
42
43    /**
44     * Logs a "verbose" information line, that is extra details which are typically
45     * not that useful for the end-user and might be hidden until explicitly shown.
46     * This method can be invoked from a non-UI thread.
47     */
48    public abstract void logVerbose(String log);
49
50}
51