aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-26 15:55:17 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-26 15:55:17 -0500
commitda980e33f340734c91950d244b980c7d8b5eef95 (patch)
tree5184c4670228cc9d8ace1683ea631a93eef9012a /include
parentea8bedf5ec63ca42de776de9f4c21343a8163578 (diff)
downloadayatana-indicator-datetime-da980e33f340734c91950d244b980c7d8b5eef95.tar.gz
ayatana-indicator-datetime-da980e33f340734c91950d244b980c7d8b5eef95.tar.bz2
ayatana-indicator-datetime-da980e33f340734c91950d244b980c7d8b5eef95.zip
Add Exporter's implementation to an Impl file because I'm about to shovel more methods and fields in there.
Diffstat (limited to 'include')
-rw-r--r--include/datetime/exporter.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/include/datetime/exporter.h b/include/datetime/exporter.h
index c228cc1..8ae70b1 100644
--- a/include/datetime/exporter.h
+++ b/include/datetime/exporter.h
@@ -25,8 +25,6 @@
#include <core/signal.h>
-#include <gio/gio.h> // GActionGroup
-
#include <memory> // std::shared_ptr
#include <vector>
@@ -40,31 +38,21 @@ namespace datetime {
class Exporter
{
public:
- Exporter() =default;
+ Exporter();
~Exporter();
- core::Signal<> name_lost;
+ core::Signal<>& name_lost();
void publish(const std::shared_ptr<Actions>& actions,
const std::vector<std::shared_ptr<Menu>>& menus);
private:
- static void on_bus_acquired(GDBusConnection*, const gchar *name, gpointer gthis);
- void on_bus_acquired(GDBusConnection*, const gchar *name);
-
- static void on_name_lost(GDBusConnection*, const gchar *name, gpointer gthis);
- void on_name_lost(GDBusConnection*, const gchar *name);
-
- std::set<guint> m_exported_menu_ids;
- guint m_own_id = 0;
- guint m_exported_actions_id = 0;
- GDBusConnection * m_dbus_connection = nullptr;
- std::shared_ptr<Actions> m_actions;
- std::vector<std::shared_ptr<Menu>> m_menus;
+ class Impl;
+ std::unique_ptr<Impl> p;
- // we've got raw pointers and gsignal tags in here, so disable copying
- Exporter(const Exporter&) =delete;
- Exporter& operator=(const Exporter&) =delete;
+ // disable copying
+ Exporter(const Exporter&) =delete;
+ Exporter& operator=(const Exporter&) =delete;
};
} // namespace datetime