• Main Page
  • Related Pages
  • Classes
  • Files
  • File List

src/client/ClientExecutionContext.hh

00001 /*
00002  * Copyright Staffan Gimåker 2006-2009.
00003  *
00004  * ---
00005  *
00006  * Distributed under the Boost Software License, Version 1.0.
00007  * (See accompanying file LICENSE_1_0.txt or copy at
00008  * http://www.boost.org/LICENSE_1_0.txt)
00009  */
00010 
00011 #ifndef PEEKABOT_CLIENT_CLIENT_EXECUTION_CONTEXT_HH_INCLUDED
00012 #define PEEKABOT_CLIENT_CLIENT_EXECUTION_CONTEXT_HH_INCLUDED
00013 
00014 
00015 #include <string>
00016 #include <boost/cstdint.hpp>
00017 
00018 #include "../Any.hh"
00019 #include "Status.hh"
00020 
00021 
00022 namespace peekabot
00023 {
00024     namespace client
00025     {
00026         class ClientImpl;
00027 
00028         class ClientExecutionContext
00029         {
00030         protected:
00031             ClientImpl *m_client;
00032 
00033         public:
00034             ClientExecutionContext(ClientImpl *client) throw();
00035 
00036             void report_action_status(
00037                 boost::uint32_t request_id,
00038                 OperationOutcome outcome,
00039                 const std::string &error_msg) throw();
00040 
00041             void report_action_result(
00042                 boost::uint32_t request_id,
00043                 const Any &result) throw();
00044         };
00045     }
00046 }
00047 
00048 
00049 #endif // PEEKABOT_CLIENT_CLIENT_EXECUTION_CONTEXT_HH_INCLUDED

Generated on Sun Jan 30 2011 for peekabot by  doxygen 1.7.1