1 /*
2   Copyright (C) 2007-2013 Werner Dittmann
3 
4   This program is free software: you can redistribute it and/or modify
5   it under the terms of the GNU Lesser General Public License as published by
6   the Free Software Foundation, either version 3 of the License, or
7   (at your option) any later version.
8 
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef _ZRTPPACKETERRORACK_H_
19 #define _ZRTPPACKETERRORACK_H_
20 
21 /**
22  * @file ZrtpPacketErrorAck.h
23  * @brief The ZRTP ErrorAck message
24  *
25  * @ingroup GNU_ZRTP
26  * @{
27  */
28 
29 #include <libzrtpcpp/ZrtpPacketBase.h>
30 
31 /**
32  * Implement the ErrorAck packet.
33  *
34  * The ZRTP simple message ErrorAck. The implementation sends this
35  * after receiving and checking the Error message.
36  *
37  * @author Werner Dittmann <Werner.Dittmann@t-online.de>
38  */
39 class __EXPORT ZrtpPacketErrorAck : public ZrtpPacketBase {
40 
41  public:
42     /// Creates a ErrorAck packet with default data
43     ZrtpPacketErrorAck();
44 
45     /// Creates a ErrorAck packet from received data
46     ZrtpPacketErrorAck(uint8_t* data);
47     virtual ~ZrtpPacketErrorAck();
48 
49  private:
50      ErrorAckPacket_t data;
51 };
52 
53 /**
54  * @}
55  */
56 #endif  // _ZRTPPACKETERRORACK_H_
57