2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
2016-03-23 18:43:12 +00:00
|
|
|
#include "mtproto/rpc_sender.h"
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
RPCOwnedDoneHandler::RPCOwnedDoneHandler(RPCSender *owner) : _owner(owner) {
|
2014-08-01 11:09:46 +00:00
|
|
|
_owner->_rpcRegHandler(this);
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RPCOwnedDoneHandler::~RPCOwnedDoneHandler() {
|
2014-08-01 11:09:46 +00:00
|
|
|
if (_owner) _owner->_rpcUnregHandler(this);
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RPCOwnedFailHandler::RPCOwnedFailHandler(RPCSender *owner) : _owner(owner) {
|
2014-08-01 11:09:46 +00:00
|
|
|
_owner->_rpcRegHandler(this);
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RPCOwnedFailHandler::~RPCOwnedFailHandler() {
|
2014-08-01 11:09:46 +00:00
|
|
|
if (_owner) _owner->_rpcUnregHandler(this);
|
2014-05-30 08:53:19 +00:00
|
|
|
}
|