|
|
@ -11,6 +11,10 @@ import 'meeting_upload_service.dart'; |
|
|
class MeetingTaskService extends GetxService { |
|
|
class MeetingTaskService extends GetxService { |
|
|
MeetingUploadService get _uploadService => Get.find<MeetingUploadService>(); |
|
|
MeetingUploadService get _uploadService => Get.find<MeetingUploadService>(); |
|
|
|
|
|
|
|
|
|
|
|
final GetStorage _storage = GetStorage(); |
|
|
|
|
|
static const String _pendingLocalRecordingTitleStorageKey = |
|
|
|
|
|
'meeting_pending_local_recording_titles'; |
|
|
|
|
|
|
|
|
List _taskList = []; //待处理的会议任务列表 |
|
|
List _taskList = []; //待处理的会议任务列表 |
|
|
|
|
|
|
|
|
bool _isTask = false; //是否有正在处理的任务 |
|
|
bool _isTask = false; //是否有正在处理的任务 |
|
|
@ -24,6 +28,27 @@ class MeetingTaskService extends GetxService { |
|
|
String summary = ''; |
|
|
String summary = ''; |
|
|
String overview = ''; |
|
|
String overview = ''; |
|
|
|
|
|
|
|
|
|
|
|
void setPendingLocalRecordingTitle(String wavFileName, String displayTitle) { |
|
|
|
|
|
if (wavFileName.isEmpty) return; |
|
|
|
|
|
final data = _storage.read(_pendingLocalRecordingTitleStorageKey); |
|
|
|
|
|
final map = (data is Map) |
|
|
|
|
|
? Map<String, dynamic>.from(data) |
|
|
|
|
|
: <String, dynamic>{}; |
|
|
|
|
|
map[wavFileName] = displayTitle; |
|
|
|
|
|
_storage.write(_pendingLocalRecordingTitleStorageKey, map); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String? takePendingLocalRecordingTitle(String wavFileName) { |
|
|
|
|
|
if (wavFileName.isEmpty) return null; |
|
|
|
|
|
final data = _storage.read(_pendingLocalRecordingTitleStorageKey); |
|
|
|
|
|
if (data is! Map) return null; |
|
|
|
|
|
final map = Map<String, dynamic>.from(data); |
|
|
|
|
|
final v = map.remove(wavFileName); |
|
|
|
|
|
if (v == null) return null; |
|
|
|
|
|
_storage.write(_pendingLocalRecordingTitleStorageKey, map); |
|
|
|
|
|
return v.toString(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void requestLocalImport() { |
|
|
void requestLocalImport() { |
|
|
localImportState.value++; |
|
|
localImportState.value++; |
|
|
} |
|
|
} |
|
|
|