/// <summary>データの更新があったことを通知</summary> /// <param name="updateInfo">[IN]更新のあったデータのフラグ</param> public void SetUpdateNotify(UpdateNotifyItem notify) { upDateNotify.Add(notify); if (notify == UpdateNotifyItem.EpgData) { updateEpgAutoAddAppend = true; epgAutoAddAppendList = null;//検索数が変わる。 reserveEventList = null; reserveEventListCache = null; } }
private void ResetNotifyWork(UpdateNotifyItem notify, bool resetOnly = false) { if (resetOnly == false && upDateNotify.Contains(notify) == true) { Action postFunc; if (DBChanged.TryGetValue(notify, out postFunc) == true && postFunc != null) { postFunc(); } } upDateNotify.Remove(notify); }
public NotifySrvInfoItem(NotifySrvInfo info) { Time = info.time.ToString("yyyy/MM/dd HH:mm:ss.fff"); UpdateNotifyItem notifyID = (UpdateNotifyItem)info.notifyID; Title = notifyID == UpdateNotifyItem.PreRecStart ? "予約録画開始準備" : notifyID == UpdateNotifyItem.RecStart ? "録画開始" : notifyID == UpdateNotifyItem.RecEnd ? "録画終了" : notifyID == UpdateNotifyItem.RecTuijyu ? "追従発生" : notifyID == UpdateNotifyItem.ChgTuijyu ? "番組変更" : notifyID == UpdateNotifyItem.PreEpgCapStart ? "EPG取得" : notifyID == UpdateNotifyItem.EpgCapStart ? "EPG取得" : notifyID == UpdateNotifyItem.EpgCapEnd ? "EPG取得" : info.notifyID.ToString(); LogText = notifyID == UpdateNotifyItem.EpgCapStart ? "開始" : notifyID == UpdateNotifyItem.EpgCapEnd ? "終了" : info.param4.Replace("\r\n", " "); }
/// <summary>データの更新があったことを通知</summary> /// <param name="updateInfo">[IN]更新のあったデータのフラグ</param> public void SetUpdateNotify(UpdateNotifyItem notify) { upDateNotify.Add(notify); if (notify == UpdateNotifyItem.EpgData) { updateEpgAutoAddAppend = true; epgAutoAddAppendList = null;//検索数が変わる。 reserveEventList = null; reserveEventListCache = null; EventTimeMinCurrent = DateTime.MaxValue; } else if (notify == UpdateNotifyItem.EpgDatabaseInfo) { EventTimeMinArc = DateTime.MaxValue; EventTimeMaxArc = DateTime.MinValue; } }
private ErrCode ReloadWork(UpdateNotifyItem notify, bool immediately, bool noRaiseChanged, Func <ErrCode, ErrCode> work) { if (immediately == true) { SetUpdateNotify(notify); } var ret = ErrCode.CMD_SUCCESS; if (IsNotifyRegistered(notify) == true) { ret = work(ret); if (ret == ErrCode.CMD_SUCCESS) { ResetNotifyWork(notify, noRaiseChanged); } } return(ret); }
/// <summary>データの更新があったことを通知</summary> /// <param name="updateInfo">[IN]更新のあったデータのフラグ</param> public void SetUpdateNotify(UpdateNotifyItem updateInfo) { switch (updateInfo) { case UpdateNotifyItem.EpgData: updateEpgData = true; updateEpgAutoAddAppend = true; epgAutoAddAppendList = null; //検索数が変わる。 reserveAppendList = null; break; case UpdateNotifyItem.ReserveInfo: updateReserveInfo = true; manualAutoAddAppendList = null; updateEpgAutoAddAppendReserveInfo = true; reserveAppendList = null; break; case UpdateNotifyItem.RecInfo: updateRecInfo = true; break; case UpdateNotifyItem.AutoAddEpgInfo: updateAutoAddEpgInfo = true; updateEpgAutoAddAppend = true; reserveAppendList = null; break; case UpdateNotifyItem.AutoAddManualInfo: updateAutoAddManualInfo = true; manualAutoAddAppendList = null; reserveAppendList = null; break; case UpdateNotifyItem.PlugInFile: updatePlugInFile = true; break; } }
/// <summary> /// データの更新があったことを通知 /// </summary> /// <param name="updateInfo">[IN]更新のあったデータのフラグ</param> public void SetUpdateNotify(UpdateNotifyItem updateInfo) { if (updateInfo == UpdateNotifyItem.EpgData) { updateEpgData = true; } if (updateInfo == UpdateNotifyItem.ReserveInfo) { updateReserveInfo = true; } if (updateInfo == UpdateNotifyItem.RecInfo) { updateRecInfo = true; } if (updateInfo == UpdateNotifyItem.AutoAddEpgInfo) { updateAutoAddEpgInfo = true; } if (updateInfo == UpdateNotifyItem.AutoAddManualInfo) { updateAutoAddManualInfo = true; } }
public void ResetUpdateNotify(UpdateNotifyItem notify) { ResetNotifyWork(notify, true); }
public bool IsNotifyRegistered(UpdateNotifyItem notify) { return(upDateNotify.Contains(notify)); }
public void update(UpdateNotifyItem notifyItem0) { if (!Settings.Instance.RecLog_SearchLog_IsEnabled) { return; } #if !DEBUG if (CommonManager.Instance.NWMode == true) { return; } #endif switch (notifyItem0) { case UpdateNotifyItem.EpgData: if (_bgw_Update_EpgData.IsBusy) { ; } else { _bgw_Update_EpgData.RunWorkerAsync(); } break; case UpdateNotifyItem.ReserveInfo: if (_bgw_Update_ReserveInfo.IsBusy) { ; } else { _bgw_Update_ReserveInfo.RunWorkerAsync(); } break; case UpdateNotifyItem.RecInfo: if (_bgw_Update_RecInfo.IsBusy) { ; } else { _bgw_Update_RecInfo.RunWorkerAsync(); } break; } }