1 /* 2 * Copyright (C) 2010 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 17 package com.android.sdkuilib.internal.repository; 18 19 import com.android.sdklib.ISdkLog; 20 import com.android.sdklib.SdkManager; 21 import com.android.sdklib.internal.avd.AvdManager; 22 import com.android.sdklib.internal.repository.ITaskFactory; 23 import com.android.sdklib.internal.repository.DownloadCache; 24 import com.android.sdkuilib.internal.repository.icons.ImageFactory; 25 26 import org.eclipse.swt.widgets.Shell; 27 28 29 /** 30 * Interface used to retrieve some parameters from an {@link UpdaterData} instance. 31 * Useful mostly for unit tests purposes. 32 */ 33 interface IUpdaterData { 34 getTaskFactory()35 public abstract ITaskFactory getTaskFactory(); 36 getSdkLog()37 public abstract ISdkLog getSdkLog(); 38 getDownloadCache()39 public abstract DownloadCache getDownloadCache(); 40 getImageFactory()41 public abstract ImageFactory getImageFactory(); 42 getSdkManager()43 public abstract SdkManager getSdkManager(); 44 getAvdManager()45 public abstract AvdManager getAvdManager(); 46 getSettingsController()47 public abstract SettingsController getSettingsController(); 48 getWindowShell()49 public abstract Shell getWindowShell(); 50 51 } 52