1#ifndef BLUETOE_LINK_STATE_HPP
2#define BLUETOE_LINK_STATE_HPP
4#include <bluetoe/pairing_status.hpp>
5#include <bluetoe/codes.hpp>
24 , pairing_status_( device_pairing_status::no_key )
31 bool is_encrypted()
const
41 bool is_encrypted(
bool encrypted )
43 const bool result = encrypted_ != encrypted;
44 encrypted_ = encrypted;
52 device_pairing_status pairing_status()
const
54 return pairing_status_;
60 void pairing_status( device_pairing_status status )
62 pairing_status_ = status;
68 connection_security_attributes security_attributes()
const
70 return connection_security_attributes{ encrypted_, pairing_status_ };
75 device_pairing_status pairing_status_;
81 class link_state_no_security
84 bool is_encrypted()
const
92 device_pairing_status pairing_status()
const
94 return device_pairing_status::no_key;
100 connection_security_attributes security_attributes()
const
102 return connection_security_attributes{
false, device_pairing_status::no_key };