1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-01 08:06:44 +01:00

24 lines
512 B
Dart
Raw Normal View History

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;
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){
if(_importState != state)
{_importState = state;
2020-02-09 20:29:09 +08:00
notifyListeners();
}
2020-02-09 20:29:09 +08:00
}
}