29 lines
939 B
C
29 lines
939 B
C
|
|
#pragma once
|
||
|
|
#include "WindowEntity.h"
|
||
|
|
#include <libg/PixelBitmap.h>
|
||
|
|
#include <list>
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
class DockEntity {
|
||
|
|
public:
|
||
|
|
DockEntity() = default;
|
||
|
|
|
||
|
|
void set_icon(LG::PixelBitmap&& icon) { m_icon = std::move(icon); }
|
||
|
|
const LG::PixelBitmap& icon() const { return m_icon; }
|
||
|
|
|
||
|
|
void set_path_to_exec(const std::string& path) { m_path_to_exec = path; }
|
||
|
|
const std::string& path_to_exec() const { return m_path_to_exec; }
|
||
|
|
|
||
|
|
void set_bundle_id(const std::string& bid) { m_bundle_id = bid; }
|
||
|
|
const std::string& bundle_id() const { return m_bundle_id; }
|
||
|
|
|
||
|
|
void add_window(const WindowEntity& went) { m_windows.push_front(went); }
|
||
|
|
const std::list<WindowEntity>& windows() const { return m_windows; }
|
||
|
|
std::list<WindowEntity>& windows() { return m_windows; }
|
||
|
|
|
||
|
|
private:
|
||
|
|
LG::PixelBitmap m_icon;
|
||
|
|
std::string m_path_to_exec {};
|
||
|
|
std::string m_bundle_id {};
|
||
|
|
std::list<WindowEntity> m_windows {};
|
||
|
|
};
|