| 1 | /* |
| 2 | * Copyright (C) 2009. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 3 or |
| 6 | * version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * General Public License for more details. |
| 12 | */ |
| 13 | package uk.me.parabola.imgfmt.app.mdr; |
| 14 | |
| 15 | /** |
| 16 | * A base class that provides access to the MDR configuration data. |
| 17 | */ |
| 18 | public abstract class ConfigBase { |
| 19 | private MdrConfig config; |
| 20 | |
| 21 | protected boolean isForDevice() { |
| 22 | return config.isForDevice(); |
| 23 | } |
| 24 | |
| 25 | public void setConfig(MdrConfig config) { |
| 26 | this.config = config; |
| 27 | } |
| 28 | |
| 29 | protected MdrConfig getConfig() { |
| 30 | return config; |
| 31 | } |
| 32 | } |