tsacdop-podcast-app-android/lib/class/importompl.dart

24 lines
512 B
Dart
Raw Normal View History

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