swift
Loading...
Searching...
No Matches
clientlist.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_MISC_NETWORK_CLIENTLIST_H
7#define SWIFT_MISC_NETWORK_CLIENTLIST_H
8
9#include <QMap>
10#include <QMetaType>
11
13#include "misc/collection.h"
14#include "misc/network/client.h"
15#include "misc/sequence.h"
17
18SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::network, CClient, CClientList)
19
20namespace swift::misc::network
21{
24 public CSequence<CClient>,
25 public aviation::ICallsignObjectList<CClient, CClientList>,
26 public mixin::MetaType<CClientList>
27 {
28 public:
31
33 CClientList() = default;
34
36 CClientList(const CSequence &other);
37 };
38
41} // namespace swift::misc::network
42
43Q_DECLARE_METATYPE(swift::misc::network::CClientList)
46
47#endif // SWIFT_MISC_NETWORK_CLIENTLIST_H
Generic ordered container with value semantics.
Definition collection.h:113
CSequence()=default
Default constructor.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Value object encapsulating a list of voice rooms.
Definition clientlist.h:27
CClientList()=default
Default constructor.
CSequence()=default
Default constructor.
QHash< aviation::CCallsign, CClient > CClientPerCallsign
Client per callsign.
Definition clientlist.h:40
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.