swift
userlist.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_USERLIST_H
7 #define SWIFT_MISC_NETWORK_USERLIST_H
8 
9 #include <QMetaType>
10 
12 #include "misc/collection.h"
13 #include "misc/network/user.h"
14 #include "misc/sequence.h"
15 #include "misc/swiftmiscexport.h"
16 
17 SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::network, CUser, CUserList)
18 
19 namespace swift::misc::network
20 {
23  public CSequence<CUser>,
24  public aviation::ICallsignObjectList<CUser, CUserList>,
25  public mixin::MetaType<CUserList>
26  {
27  public:
30 
32  CUserList();
33 
35  CUserList(const CSequence &other);
36  };
37 } // namespace swift::misc::network
38 
39 Q_DECLARE_METATYPE(swift::misc::network::CUserList)
41 
42 #endif // SWIFT_MISC_NETWORK_USERLIST_H
Generic ordered container with value semantics.
Definition: collection.h:107
Generic sequential container with value semantics.
Definition: sequence.h:86
CSequence()=default
Default constructor.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Definition: mixinmetatype.h:29
Value object encapsulating a list of voice rooms.
Definition: userlist.h:26
#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.