2020-02-09 13:29:09 +01:00
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
2020-02-11 14:01:57 +01:00
|
|
|
enum ImportState{start, import, parse, complete, stop, error}
|
2020-02-09 13:29:09 +01:00
|
|
|
|
|
|
|
class ImportOmpl extends ChangeNotifier{
|
|
|
|
ImportState _importState = ImportState.stop;
|
|
|
|
String _rssTitle;
|
2020-02-11 14:01:57 +01:00
|
|
|
|
2020-02-09 13:29:09 +01:00
|
|
|
String get rsstitle => _rssTitle;
|
2020-02-11 14:01:57 +01:00
|
|
|
|
2020-02-09 13:29:09 +01:00
|
|
|
set rssTitle(String title){
|
|
|
|
_rssTitle = title;
|
2020-03-03 17:04:23 +01:00
|
|
|
notifyListeners();
|
2020-02-09 13:29:09 +01:00
|
|
|
}
|
2020-02-11 14:01:57 +01:00
|
|
|
|
2020-02-09 13:29:09 +01:00
|
|
|
ImportState get importState => _importState;
|
2020-02-11 14:01:57 +01:00
|
|
|
|
2020-02-09 13:29:09 +01:00
|
|
|
set importState(ImportState state){
|
2020-02-20 16:44:42 +01:00
|
|
|
if(_importState != state)
|
|
|
|
{_importState = state;
|
2020-02-09 13:29:09 +01:00
|
|
|
notifyListeners();
|
2020-02-20 16:44:42 +01:00
|
|
|
}
|
2020-02-09 13:29:09 +01:00
|
|
|
}
|
|
|
|
}
|