Make preset favorites per component type. That is, a single preset can be a favorite...
[debian/openrocket] / core / src / net / sf / openrocket / database / ComponentPresetDao.java
index 905e7a888711b08aa954e9569ba0b86a68592d0c..a27a7f5d424304295d84c631ea261be95a019b82 100644 (file)
@@ -23,7 +23,11 @@ public interface ComponentPresetDao {
        public List<ComponentPreset> listForType( ComponentPreset.Type type, boolean favorite );
 
        public List<ComponentPreset> listForTypes( ComponentPreset.Type ... type );
+       
+       public List<ComponentPreset> listForTypes( List<ComponentPreset.Type> types );
 
-       public void setFavorite( ComponentPreset preset, boolean favorite );
+       public void setFavorite( ComponentPreset preset, ComponentPreset.Type type, boolean favorite );
+       
+       public List<ComponentPreset> find( String manufacturer, String partNo );
        
 }
\ No newline at end of file