1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */ 2 3 #ifndef MESSAGEORIGIN_H 4 #define MESSAGEORIGIN_H 5 6 #include "remote/zone.hpp" 7 #include "remote/jsonrpcconnection.hpp" 8 9 namespace icinga 10 { 11 12 /** 13 * @ingroup remote 14 */ 15 class MessageOrigin final : public Object 16 { 17 public: 18 DECLARE_PTR_TYPEDEFS(MessageOrigin); 19 20 Zone::Ptr FromZone; 21 JsonRpcConnection::Ptr FromClient; 22 23 bool IsLocal() const; 24 }; 25 26 } 27 28 #endif /* MESSAGEORIGIN_H */ 29