[ekiga] Made the Ekiga::Account and Ekiga::Bank class instances of Ekiga::LiveObject
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made the Ekiga::Account and Ekiga::Bank class instances of Ekiga::LiveObject
- Date: Sun, 13 Feb 2011 17:16:38 +0000 (UTC)
commit 379845a671716c7ee33e8f91bf507036fa6eb748
Author: Snark <jpuydt gnome org>
Date: Sun Feb 13 16:58:04 2011 +0100
Made the Ekiga::Account and Ekiga::Bank class instances of Ekiga::LiveObject
lib/engine/account/account.h | 34 ++------------------------
lib/engine/account/bank.h | 3 +-
lib/engine/components/opal/opal-account.cpp | 2 +
3 files changed, 7 insertions(+), 32 deletions(-)
---
diff --git a/lib/engine/account/account.h b/lib/engine/account/account.h
index 029a313..93a1b91 100644
--- a/lib/engine/account/account.h
+++ b/lib/engine/account/account.h
@@ -42,9 +42,7 @@
#include <string>
#include <boost/smart_ptr.hpp>
-#include "chain-of-responsibility.h"
-#include "form-request.h"
-#include "menu-builder.h"
+#include "live-object.h"
namespace Ekiga
{
@@ -54,7 +52,8 @@ namespace Ekiga
* @{
*/
- class Account
+ class Account:
+ public virtual LiveObject
{
public:
@@ -94,33 +93,6 @@ namespace Ekiga
* @return Whether the account is active
*/
virtual bool is_active () const = 0;
-
-
- /** Create the menu for that account and its actions.
- * This function is purely virtual and should be implemented by
- * the descendant of the Ekiga::Contact.
- * @param A MenuBuilder object to populate.
- */
- virtual bool populate_menu (MenuBuilder &) = 0;
-
-
- /**
- * Signals on that object
- */
-
- /** This signal is emitted when the Account has been updated.
- */
- boost::signal0<void> updated;
-
-
- /** This signal is emitted when the Account has been removed.
- */
- boost::signal0<void> removed;
-
-
- /** This chain allows the Account to present forms to the user
- */
- ChainOfResponsibility<FormRequestPtr> questions;
};
typedef boost::shared_ptr<Account> AccountPtr;
diff --git a/lib/engine/account/bank.h b/lib/engine/account/bank.h
index 4c60553..de55493 100644
--- a/lib/engine/account/bank.h
+++ b/lib/engine/account/bank.h
@@ -48,7 +48,8 @@ namespace Ekiga
* @{
*/
- class Bank
+ class Bank:
+ public virtual LiveObject
{
public:
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index bb883f3..2e194c1 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -298,6 +298,8 @@ void Opal::Account::enable ()
std::cout << "opening presentity for " << get_aor () << std::endl;
presentity->Open ();
+ presentity->SubscribeToPresence ("sip:julien puydt ekiga net");
+ presentity->SubscribeToPresence ("sip:eugen dedu ekiga net");
}
updated ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]