33 std::shared_ptr<ClientInfo> pClientInfo)
34 : m_xBuilder(
Application::CreateBuilder(pClientBox->GetContainer(),
"modules/simpress/ui/clientboxfragment.ui"))
35 ,
m_xContainer(m_xBuilder->weld_container(
"ClientboxFragment"))
36 , m_xDeviceName(m_xBuilder->weld_label(
"name"))
37 , m_xPinLabel(m_xBuilder->weld_label(
"pinlabel"))
38 , m_xPinBox(m_xBuilder->weld_entry(
"pin"))
39 , m_xDeauthoriseButton(m_xBuilder->weld_button(
"button"))
40 , m_xClientInfo(
std::move(pClientInfo))
41 , m_pClientBox(pClientBox)
60 std::unique_ptr<weld::Container> xContents)
61 : m_xScroll(
std::move(xScroll))
62 , m_xContents(
std::move(xContents))
85 TClientBoxEntry xEntry = std::make_shared<ClientBoxEntry>(
this, pClientInfo);
104#ifdef ENABLE_SDREMOTE
109 for (
const auto& rxClient : aClients )
119#ifdef ENABLE_SDREMOTE
122 m_pClientBox->populateEntries();
128 pOldEntry->m_xContainer->set_stack_background();
129 m_pClientBox->setActive(
this);
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void addEntry(const std::shared_ptr< ClientInfo > &pClientInfo)
std::unique_ptr< weld::ScrolledWindow > m_xScroll
ClientBoxEntry * GetActiveEntry()
void setActive(ClientBoxEntry *pClientData)
ClientBoxEntry * m_pActive
ClientBox(std::unique_ptr< weld::ScrolledWindow > xScroll, std::unique_ptr< weld::Container > xContents)
weld::Container * GetContainer()
std::unique_ptr< weld::Container > m_xContents
std::vector< TClientBoxEntry > m_vEntries
static SD_DLLPUBLIC std::vector< std::shared_ptr< ClientInfo > > getClients()
static SD_DLLPUBLIC void deauthoriseClient(const std::shared_ptr< ClientInfo > &pClient)
static SD_DLLPUBLIC void ensureDiscoverable()
ensure that discoverability (eg. for Bluetooth) is enabled
virtual void move(weld::Widget *pWidget, weld::Container *pNewParent)=0
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(MainSequence, onTimerHdl, Timer *, void)
std::shared_ptr< ClientBoxEntry > TClientBoxEntry
Reference< XNameAccess > m_xContainer
std::unique_ptr< weld::Button > m_xDeauthoriseButton
std::unique_ptr< weld::Container > m_xContainer
std::shared_ptr< ClientInfo > m_xClientInfo
ClientBoxEntry(ClientBox *pClientBox, std::shared_ptr< ClientInfo > pClientInfo)
std::unique_ptr< weld::Entry > m_xPinBox
std::unique_ptr< weld::Label > m_xPinLabel
std::unique_ptr< weld::Label > m_xDeviceName