AndroidAPS/app/src/main/java/info/nightscout/androidaps/interfaces/PluginBase.java

33 lines
803 B
Java
Raw Normal View History

2016-06-14 23:45:55 +02:00
package info.nightscout.androidaps.interfaces;
2016-06-10 18:50:46 +02:00
import java.util.Date;
/**
* Created by mike on 09.06.2016.
*/
public interface PluginBase {
int GENERAL = 1;
2016-06-13 22:53:41 +02:00
int TREATMENT = 2;
2017-05-12 16:27:33 +02:00
//int TEMPBASAL = 3;
2016-06-13 22:53:41 +02:00
int PROFILE = 4;
int APS = 5;
int PUMP = 6;
2016-06-20 20:45:55 +02:00
int CONSTRAINTS = 7;
2016-06-19 13:17:16 +02:00
int LOOP = 8;
2016-06-21 00:34:36 +02:00
int BGSOURCE = 9;
2017-04-21 11:45:25 +02:00
int INSULIN = 10;
int LAST = 11; // keep always highest number
2016-08-05 23:54:03 +02:00
int getType();
String getFragmentClass();
2016-06-13 22:53:41 +02:00
String getName();
2017-01-21 19:44:58 +01:00
String getNameShort();
2016-07-11 14:04:57 +02:00
boolean isEnabled(int type);
boolean isVisibleInTabs(int type);
boolean canBeHidden(int type);
2017-04-29 16:59:44 +02:00
boolean hasFragment();
boolean showInList(int type);
2016-07-11 14:04:57 +02:00
void setFragmentEnabled(int type, boolean fragmentEnabled);
void setFragmentVisible(int type, boolean fragmentVisible);
2016-06-13 22:53:41 +02:00
}