Ref T85, minor improvements on server type

* UI: generic generation of combobox
* UI: Read only for combobox
* CServer utility functions
This commit is contained in:
Klaus Basan
2017-06-23 17:04:31 +02:00
parent efd82f4391
commit 36037c4c04
7 changed files with 93 additions and 52 deletions

View File

@@ -12,9 +12,9 @@
#ifndef BLACKMISC_NETWORK_SERVERLIST_H
#define BLACKMISC_NETWORK_SERVERLIST_H
#include "server.h"
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/collection.h"
#include "blackmisc/network/server.h"
#include "blackmisc/sequence.h"
#include "blackmisc/variant.h"
@@ -25,8 +25,6 @@ namespace BlackMisc
{
namespace Network
{
class CServer;
//! Value object encapsulating a list of servers.
class BLACKMISC_EXPORT CServerList :
public CSequence<CServer>,
@@ -56,6 +54,9 @@ namespace BlackMisc
//! Add if address not already exists
void addIfAddressNotExists(const CServerList &servers);
//! Find all FSD servers
CServerList findFsdServers() const;
//! Set FSD setup for all entries
void setFsdSetup(const CFsdSetup &setup);
};