Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
Loading...
Searching...
No Matches
Public Member Functions
HNClient Class Reference

Represents, on the bar side, a client connected over D-Bus. More...

#include "HNClient.h"

Inheritance diagram for HNClient:
Inheritance graph
[legend]
Collaboration diagram for HNClient:
Collaboration graph
[legend]

Public Member Functions

const std::string & id () const noexcept
 Returns the D-Bus unique name of the client.
 
const std::string & name () const noexcept
 Returns the application name reported by the client.
 
HNTopbaractiveTopbar () const noexcept
 Returns the topbar the client currently wants displayed.
 
 ~HNClient () noexcept
 Destructor.
 

Detailed Description

Represents, on the bar side, a client connected over D-Bus.

A client owns a set of HNObject instances (its menu tree) and reports which of its topbars is currently active. Instances are created and destroyed by the bar library as clients register and disconnect.

Member Function Documentation

◆ activeTopbar()

HNTopbar * activeTopbar ( ) const
inlinenoexcept

Returns the topbar the client currently wants displayed.

Returns
Pointer to the active topbar, or nullptr if none is set.

◆ id()

const std::string & id ( ) const
inlinenoexcept

Returns the D-Bus unique name of the client.

Returns
Const reference to the client's D-Bus id.

◆ name()

const std::string & name ( ) const
inlinenoexcept

Returns the application name reported by the client.

Returns
Const reference to the client name (may be empty).

The documentation for this class was generated from the following file: