|
1 | | -// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) |
| 1 | +// Copyright (C) 2015-2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) |
2 | 2 | // This Source Code Form is subject to the terms of the Mozilla Public |
3 | 3 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | 4 | // file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | 5 |
|
| 6 | +#if !defined (COMMONAPI_INTERNAL_COMPILATION) |
| 7 | +#error "Only <CommonAPI/CommonAPI.hpp> can be included directly, this file may disappear or change contents." |
| 8 | +#endif |
| 9 | + |
6 | 10 | #ifndef COMMONAPI_CALLINFO_HPP_ |
7 | 11 | #define COMMONAPI_CALLINFO_HPP_ |
8 | 12 |
|
9 | 13 | #include <CommonAPI/Config.hpp> |
10 | 14 | #include <CommonAPI/Types.hpp> |
| 15 | +#include <string> |
11 | 16 |
|
12 | 17 | namespace CommonAPI { |
13 | 18 |
|
14 | 19 | struct COMMONAPI_EXPORT CallInfo { |
15 | | - CallInfo() |
16 | | - : timeout_(DEFAULT_SEND_TIMEOUT_MS), sender_(0) { |
17 | | - } |
18 | | - CallInfo(Timeout_t _timeout) |
19 | | - : timeout_(_timeout), sender_(0) { |
20 | | - } |
21 | | - CallInfo(Timeout_t _timeout, Sender_t _sender) |
22 | | - : timeout_(_timeout), sender_(_sender) { |
23 | | - } |
24 | | - CallInfo(const CallInfo &_other) |
25 | | - : timeout_(_other.timeout_), sender_(_other.sender_) { |
26 | | - } |
| 20 | + CallInfo(); |
| 21 | + CallInfo(Timeout_t _timeout); |
| 22 | + CallInfo(const CallInfo &_other); |
| 23 | + CallInfo(Timeout_t _timeout, Sender_t _sender); |
27 | 24 |
|
28 | 25 | Timeout_t timeout_; |
29 | 26 | Sender_t sender_; |
30 | 27 | }; |
31 | 28 |
|
32 | 29 | } // namespace CommonAPI |
33 | 30 |
|
34 | | -#endif // COMMONAPI_ADDRESS_HPP_ |
| 31 | +#endif // COMMONAPI_CALLINFO_HPP_ |
0 commit comments