aboutsummaryrefslogtreecommitdiff
path: root/src/indicator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator.h')
-rw-r--r--src/indicator.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/indicator.h b/src/indicator.h
index b5524d1..db8c5ac 100644
--- a/src/indicator.h
+++ b/src/indicator.h
@@ -1,5 +1,6 @@
/*
* Copyright 2014-2016 Canonical Ltd.
+ * Copyright 2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -15,6 +16,7 @@
*
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#pragma once
@@ -32,6 +34,7 @@ struct Header
std::string title;
std::string label;
std::string a11y;
+ std::string tooltip;
std::shared_ptr<GIcon> icon;
bool operator== (const Header& that) const {
@@ -49,7 +52,7 @@ class Profile
{
public:
virtual std::string name() const =0;
- virtual const core::Property<Header>& header() const =0;
+ virtual core::Property<Header>& header() =0;
virtual std::shared_ptr<GMenuModel> menu_model() const =0;
virtual ~Profile();
@@ -62,11 +65,10 @@ class SimpleProfile: public Profile
{
public:
SimpleProfile(const char* name, const std::shared_ptr<GMenuModel>& menu): m_name(name), m_menu(menu) {}
- virtual ~SimpleProfile();
+ virtual ~SimpleProfile() override;
std::string name() const override {return m_name;}
- core::Property<Header>& header() {return m_header;}
- const core::Property<Header>& header() const override {return m_header;}
+ core::Property<Header>& header() override {return m_header;}
std::shared_ptr<GMenuModel> menu_model() const override {return m_menu;}
protected:
@@ -85,4 +87,3 @@ public:
virtual GSimpleActionGroup* action_group() const =0;
virtual std::vector<std::shared_ptr<Profile>> profiles() const =0;
};
-