Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ButtonAccessFactory.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_UI_PANELS_BUTTONACCESSFACTORY_HPP_
2#define IV_SRC_UI_PANELS_BUTTONACCESSFACTORY_HPP_
3
5#include "ui/gui/CButton.hpp"
6
7#include <functional>
8#include <memory>
9#include <optional>
10
11namespace iv::panels::diamar
12{
13
15{
16public:
17 enum class AccessType
18 {
21 };
22
24 const std::function<void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback = nullptr,
25 bool canAccess = false);
26
28 const std::weak_ptr<iv::channels::AbstractChannel> &channel,
29 const std::function<void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback = nullptr,
30 bool canAccess = false);
31
33 AccessType accessType,
34 const std::function<void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback = nullptr,
35 const std::optional<std::weak_ptr<iv::channels::AbstractChannel>> &channelOpt = std::nullopt,
36 bool canAccess = false);
37};
38
39}// namespace iv::panels::diamar
40
41#endif//IV_SRC_UI_PANELS_BUTTONACCESSFACTORY_HPP_
Definition CButton.hpp:18
Definition ButtonAccessFactory.hpp:15
static CButton * createButtonAccessChannelParameters(const std::weak_ptr< iv::channels::AbstractChannel > &channel, const std::function< void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback=nullptr, bool canAccess=false)
Definition ButtonAccessFactory.cpp:20
static CButton * createButtonAccessVariablesOnline(const std::function< void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback=nullptr, bool canAccess=false)
Definition ButtonAccessFactory.cpp:13
static CButton * createButtonAccess(AccessType accessType, const std::function< void(bool, iv::diamar::eUserProfileType)> &canAccessChangedCallback=nullptr, const std::optional< std::weak_ptr< iv::channels::AbstractChannel > > &channelOpt=std::nullopt, bool canAccess=false)
Definition ButtonAccessFactory.cpp:167
AccessType
Definition ButtonAccessFactory.hpp:18
eUserProfileType
Definition enums.hpp:34
Definition ButtonAccessFactory.cpp:11