| 56 | } |
| 57 | |
| 58 | int ClientModel::getNumConnections(unsigned int flags) const |
| 59 | { |
| 60 | CConnman::NumConnections connections = CConnman::CONNECTIONS_NONE; |
| 61 | |
| 62 | if(flags == CONNECTIONS_IN) |
| 63 | connections = CConnman::CONNECTIONS_IN; |
| 64 | else if (flags == CONNECTIONS_OUT) |
| 65 | connections = CConnman::CONNECTIONS_OUT; |
| 66 | else if (flags == CONNECTIONS_ALL) |
| 67 | connections = CConnman::CONNECTIONS_ALL; |
| 68 | |
| 69 | return m_node.getNodeCount(connections); |
| 70 | } |
| 71 | |
| 72 | int ClientModel::getHeaderTipHeight() const |
| 73 | { |
no test coverage detected