mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
21 lines
501 B
C++
21 lines
501 B
C++
#pragma once
|
|
#include "ui_item.hpp"
|
|
#define UI_STATUS_BAR_TYPE std::string("ui_status_bar")
|
|
|
|
class UI_status_bar : public UI_item
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit UI_status_bar(QObject *parent = nullptr);
|
|
UI_status_bar(std::string message, QObject *parent = nullptr);
|
|
|
|
void show_message(std::string message, size_t timeout = 0);
|
|
std::string message() const;
|
|
|
|
void from_json(const json &j) override;
|
|
json to_json(size_t id) const override;
|
|
|
|
private:
|
|
size_t m_timeout;
|
|
};
|