The description of the Diagram Interface (First - client causing a method. Second - accepting party(side) (server)) 1) Archive assistant - Archive list GetFreeSpaceOnStoreDevice () - return the list with filling all storage device. It is necessary for DeMUX know about on what drive to write bool RecheckFreeSpace () - check and removal of old clips 2) Archive - Archive assistant list SetFreeSpaceOnStoreDevice () - return the list with filling all storage device. Similarly previos call, but proceeds from itself Archive Manager 3) AlarmDetector - DatabaseManager bool AddAlarmRecordToArchive (alarmRecord) - keeps in a database the information on the occurred alarm. 4) ClientManager - ArchiveManager stream GetRecordVideo (fileList, view) - returns a stream with video clips from archive bool AddStorage (device) - addition storage device and the notice on it ArchiveManager bool DeleteClips (timePeriod) - removal video clips by time period bool DeleteClips (fileList) - removal of video clips by file name int FreeSpaceCount () - Count the stayed space. Returns the answer in Mb. bool SaveClipToExternalStorage (fileList, device) - save video clips on external carriers. (For example CDR, DVDR, 1394) snapshot GetSnapshot (time, camera) - reception snapshot with maximal resolution fileList SearchClipByTime (timePeriod, camera) - search clips by time alarmList SearchAlarmByTime (timePeriod, source) - search alarms by time bool DeleteAlarmRecord (alarmList) - remove alarm records 5) Shdeule Manager - DeMUX bool StartRecordVideo (camera, stream [, stream1]) - start recording video (stream - file, (FIFO or shared mem)) bool StopRecord (camera) - stop recording video bool StartMotionDetect (camera, region) - start Motion detect bool StopMotionDetect (camera, region) - stop Motion detect 6) DeMUX - AlarmDetector bool Alarm (alarmSource) - alarm signal (Motion Detect) 7) Client Manager - DeMUX stream GetLiveVideo (view) - returns a stream with Real Video 8) AlarmDetector - SheduleManager bool CheckToStartRecording (alarmSource) - alarm signal, Shedule Manager makes a decision on the beginning of recording 9) ClientManager - Database Manager bool SetAlarmConditions (alarmConditions) - set conditions on activity of alarms (on time, on a source) bool SetCamerasView (cameraView) - set cameras views bool SetMotionDetectRegion (camera, region) - set Motion Detect region bool SetSheduleRecord (shedule) - set schedule of recording and Motion Detect bool SetVideoQality (qulity) - set video quality bool AddUser (userRecord) - add user bool ChangeUserInfo (userRecord) - change of the information on the user, including its rights bool DelteUser (name) - delete user 10) AlarmDetector - ClientManager bool NotifySurveillanceOperations (alarm) - the notice on the occurred alarm 11) Client - ClientManager bool Login (name, password) - login bool Logout () - logout list GetClips (query) - search video clips (on time etc.) bool DeleteClips (timePeriod) - removal video clips the certain period bool DeleteClips (fileList) - removal video clips by file name bool AddStorage (device) - add storage device and the notice on it ArchiveManager int FreeSpaceCount () - Count the stayed space. Returns the answer in Mb or in time bool SaveClipToExternalStorage (fileList, device) - save video clips to external device (For example CDR, DVDR, 1394) list GetAlarms (query) - search alarm record bool DeleteAlarmRecord (alarmList) - remove alarm record snapshot GetSnapshot (time, camera) - reception snapshot with maximal resolution bool AddUser (userRecord) - Add user bool ChangePassword (name, oldPass, newPass) - change of the password bool ChangeUserInfo (userRecord) - change of the information on the user, including his(its) rights bool DelteUser (name) - delete the user bool SetCamerasView (camView) - set camera view bool SetMotionDetectRegion (camera, region) - set Motion Detect region bool SetMotionDetectRegion (camera, region) - set Motion Detect region bool SetVideoQality (qulity) - qality of video stream GetLiveVideo (view) - reception of video Real-Time stream GetRecordVideo (time, view) - reception of written video 12) Client Manager - Client bool Alarm( alarm ) - alarm notifocation