using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace FLY.Thick.RemoteHistory { public delegate void GetPathsReponseHandler(List paths, object state); public delegate void GetRootPathReponseHandler(string rootpath, object state); public interface IRemoteHistory : INotifyPropertyChanged { /// /// 数据能保存的天数 /// int KeeyDay { get; set; } /// /// 多少行保存一次 /// int SaveRows { get; set; } /// /// 当前总行数 /// int CurrRows { get; } /// /// 当前保存的文件路径 /// string CurrPath { get; } /// /// 当前保存的数据天数 /// int CurrDays { get; } /// /// 参数应用 /// void Apply(); /// /// 全部保存 /// void Flush(); //获取历史数据 void GetPaths(DateTime dt_begin, DateTime dt_end, string profilename, GetPathsReponseHandler return_func, object state); /// /// 获取根目录 /// void GetRootPath(GetRootPathReponseHandler return_func, object state); } }