2016-06-14 23:45:55 +02:00
|
|
|
package info.nightscout.androidaps.interfaces;
|
2016-06-09 16:33:44 +02:00
|
|
|
|
2016-06-10 18:50:46 +02:00
|
|
|
import java.util.Date;
|
|
|
|
|
2016-06-09 16:33:44 +02:00
|
|
|
/**
|
|
|
|
* Created by mike on 09.06.2016.
|
|
|
|
*/
|
|
|
|
public interface PluginBase {
|
|
|
|
int GENERAL = 1;
|
2016-06-13 22:53:41 +02:00
|
|
|
int TREATMENT = 2;
|
|
|
|
int TEMPBASAL = 3;
|
|
|
|
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;
|
2016-07-11 14:04:57 +02:00
|
|
|
int LAST = 10; // keep always highest number
|
2016-06-09 16:33:44 +02:00
|
|
|
|
|
|
|
public int getType();
|
2016-06-13 22:53:41 +02:00
|
|
|
|
|
|
|
String getName();
|
2016-07-11 14:04:57 +02:00
|
|
|
boolean isEnabled(int type);
|
|
|
|
boolean isVisibleInTabs(int type);
|
|
|
|
boolean canBeHidden(int type);
|
|
|
|
void setFragmentEnabled(int type, boolean fragmentEnabled);
|
|
|
|
void setFragmentVisible(int type, boolean fragmentVisible);
|
2016-06-13 22:53:41 +02:00
|
|
|
}
|