summaryrefslogtreecommitdiffstats
path: root/lib/remote/messageorigin.hpp
blob: 8a91ecc466c9deae3d23f7490da7e590cc96e7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#ifndef MESSAGEORIGIN_H
#define MESSAGEORIGIN_H

#include "remote/zone.hpp"
#include "remote/jsonrpcconnection.hpp"

namespace icinga
{

/**
 * @ingroup remote
 */
class MessageOrigin final : public Object
{
public:
	DECLARE_PTR_TYPEDEFS(MessageOrigin);

	Zone::Ptr FromZone;
	JsonRpcConnection::Ptr FromClient;

	bool IsLocal() const;
};

}

#endif /* MESSAGEORIGIN_H */