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