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-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){
|
|
|
|
_importState = state;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
|
|
|
}
|