| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IUpdateView |
|
| 1.0;1 | ||||
| IUpdateView$Mode |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.view.able.update; | |
| 2 | ||
| 3 | /* | |
| 4 | * This file is part of JTheque. | |
| 5 | * | |
| 6 | * JTheque is free software: you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation, either version 3 of the License. | |
| 9 | * | |
| 10 | * JTheque is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | */ | |
| 18 | ||
| 19 | import org.jtheque.core.managers.module.beans.ModuleContainer; | |
| 20 | import org.jtheque.core.managers.update.Updatable; | |
| 21 | import org.jtheque.core.managers.view.able.IView; | |
| 22 | import org.jtheque.core.managers.view.able.WaitableView; | |
| 23 | import org.jtheque.utils.bean.Version; | |
| 24 | ||
| 25 | /** | |
| 26 | * An update view specification. | |
| 27 | * | |
| 28 | * @author Baptiste Wicht | |
| 29 | */ | |
| 30 | public interface IUpdateView extends IView, WaitableView { | |
| 31 | /** | |
| 32 | * The mode of the update view. | |
| 33 | */ | |
| 34 | 0 | enum Mode { |
| 35 | 0 | KERNEL, |
| 36 | 0 | MODULE, |
| 37 | 0 | UPDATABLE |
| 38 | } | |
| 39 | ||
| 40 | /** | |
| 41 | * Return the current mode of the view. | |
| 42 | * | |
| 43 | * @return The current mode of the view. | |
| 44 | */ | |
| 45 | Mode getMode(); | |
| 46 | ||
| 47 | /** | |
| 48 | * Return the selected version. | |
| 49 | * | |
| 50 | * @return The selected version. | |
| 51 | */ | |
| 52 | Version getSelectedVersion(); | |
| 53 | ||
| 54 | /** | |
| 55 | * Return the current module. | |
| 56 | * | |
| 57 | * @return The current module. | |
| 58 | */ | |
| 59 | ModuleContainer getModule(); | |
| 60 | ||
| 61 | /** | |
| 62 | * Return the current updatable. | |
| 63 | * | |
| 64 | * @return The current updatable. | |
| 65 | */ | |
| 66 | Updatable getUpdatable(); | |
| 67 | } |