Scopira 20080306

monitorservice.h

00001 
00002 /*
00003  *  Copyright (c) 2006-2007    National Research Council
00004  *
00005  *  All rights reserved.
00006  *
00007  *  This material is confidential and proprietary information of
00008  *  National Research Council Canada ("Confidential Information").
00009  *  This Confidential Information may only be used and reproduced
00010  *  in accordance with the terms of the license agreement.
00011  *
00012  */
00013 
00014 #ifndef __INCLUDED_SCOPIRA_AGENT_MONITORSERVICE_H__
00015 #define __INCLUDED_SCOPIRA_AGENT_MONITORSERVICE_H__
00016 
00017 #include <scopira/tool/uuid.h>
00018 #include <scopira/agent/context.h>
00019 
00020 namespace scopira
00021 {
00022   namespace agent
00023   {
00024     class monitor_service;
00025   }
00026 }
00027 
00041 class scopira::agent::monitor_service
00042 {
00043   public:
00045     monitor_service(scopira::agent::task_context &ctx);
00046 
00055     void add_watch(scopira::tool::uuid whotowatch, scopira::tool::uuid receipient, bool killonwatch=false);
00056     void remove_watch(scopira::tool::uuid whotowatch, scopira::tool::uuid receipient);
00057 
00058   private:
00059     scopira::agent::task_context &dm_ctx;
00060     scopira::tool::uuid dm_server;
00061 };
00062 
00063 #endif
00064