AndroidAPS/app/src/main/java/info/nightscout/androidaps/interfaces/PluginBase.java
2016-08-05 23:54:03 +02:00

29 lines
691 B
Java

package info.nightscout.androidaps.interfaces;
import java.util.Date;
/**
* Created by mike on 09.06.2016.
*/
public interface PluginBase {
int GENERAL = 1;
int TREATMENT = 2;
int TEMPBASAL = 3;
int PROFILE = 4;
int APS = 5;
int PUMP = 6;
int CONSTRAINTS = 7;
int LOOP = 8;
int BGSOURCE = 9;
int LAST = 10; // keep always highest number
int getType();
String getFragmentClass();
String getName();
boolean isEnabled(int type);
boolean isVisibleInTabs(int type);
boolean canBeHidden(int type);
void setFragmentEnabled(int type, boolean fragmentEnabled);
void setFragmentVisible(int type, boolean fragmentVisible);
}