[ekiga] Made Ekiga::PresenceCore's public method private
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made Ekiga::PresenceCore's public method private
- Date: Sun, 11 Aug 2013 17:09:24 +0000 (UTC)
commit a70c26d694386da44d548b021b7c14d9715828c8
Author: Julien Puydt <jpuydt free fr>
Date: Sun Aug 11 19:09:02 2013 +0200
Made Ekiga::PresenceCore's public method private
It's now called only when we do have something that must be widely known,
and it's automatically triggered.
(I also removed a non-existing private method from the header)
lib/engine/presence/presence-core.cpp | 5 +++--
lib/engine/presence/presence-core.h | 4 +---
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/presence/presence-core.cpp b/lib/engine/presence/presence-core.cpp
index 725d5a8..dd18993 100644
--- a/lib/engine/presence/presence-core.cpp
+++ b/lib/engine/presence/presence-core.cpp
@@ -41,7 +41,7 @@
Ekiga::PresenceCore::PresenceCore ( boost::shared_ptr<Ekiga::PersonalDetails> _details): details(_details)
{
- conns.add (details->updated.connect (boost::bind (boost::bind (&Ekiga::PresenceCore::publish, this, _1),
details)));
+ conns.add (details->updated.connect(boost::bind (&Ekiga::PresenceCore::publish, this)));
}
void
@@ -221,7 +221,8 @@ Ekiga::PresenceCore::add_presence_publisher (boost::shared_ptr<PresencePublisher
presence_publishers.push_back (publisher);
}
-void Ekiga::PresenceCore::publish (boost::shared_ptr<PersonalDetails> details)
+void
+Ekiga::PresenceCore::publish ()
{
for (std::list<boost::shared_ptr<PresencePublisher> >::iterator iter
= presence_publishers.begin ();
diff --git a/lib/engine/presence/presence-core.h b/lib/engine/presence/presence-core.h
index 3ccfbb0..d7194cb 100644
--- a/lib/engine/presence/presence-core.h
+++ b/lib/engine/presence/presence-core.h
@@ -276,12 +276,10 @@ namespace Ekiga
void add_presence_publisher (boost::shared_ptr<PresencePublisher> publisher);
- void publish (boost::shared_ptr<PersonalDetails> details);
-
private:
std::list<boost::shared_ptr<PresencePublisher> > presence_publishers;
- void on_personal_details_updated (PersonalDetails &details);
+ void publish ();
/*** API to control which uri are supported by runtime ***/
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]