ekiga r6274 - in trunk: . lib/engine/protocol/skel src/endpoints
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6274 - in trunk: . lib/engine/protocol/skel src/endpoints
- Date: Sun, 18 May 2008 19:56:54 +0000 (UTC)
Author: dsandras
Date: Sun May 18 19:56:54 2008
New Revision: 6274
URL: http://svn.gnome.org/viewvc/ekiga?rev=6274&view=rev
Log:
Added signal so that a CallManager can signal when it is ready.
Modified:
trunk/ChangeLog
trunk/lib/engine/protocol/skel/call-core.cpp
trunk/lib/engine/protocol/skel/call-core.h
trunk/lib/engine/protocol/skel/call-manager.h
trunk/src/endpoints/manager.cpp
Modified: trunk/lib/engine/protocol/skel/call-core.cpp
==============================================================================
--- trunk/lib/engine/protocol/skel/call-core.cpp (original)
+++ trunk/lib/engine/protocol/skel/call-core.cpp Sun May 18 19:56:54 2008
@@ -215,3 +215,9 @@
{
registration_event.emit (*manager, account, state, info);
}
+
+
+void CallCore::on_manager_ready (std::string info, CallManager *manager)
+{
+ manager_ready.emit (*manager, info);
+}
Modified: trunk/lib/engine/protocol/skel/call-core.h
==============================================================================
--- trunk/lib/engine/protocol/skel/call-core.h (original)
+++ trunk/lib/engine/protocol/skel/call-core.h Sun May 18 19:56:54 2008
@@ -178,6 +178,8 @@
typedef enum { Processing, Registered, Unregistered, RegistrationFailed, UnregistrationFailed } RegistrationState;
sigc::signal<void, CallManager &, std::string, Ekiga::CallCore::RegistrationState, std::string> registration_event;
+ /*** Misc ***/
+ sigc::signal<void, CallManager &, std::string> manager_ready;
private:
void on_new_call (Call *call, CallManager *manager);
@@ -201,6 +203,8 @@
void on_mwi_event (std::string, std::string, CallManager *manager);
void on_registration_event (std::string, Ekiga::CallCore::RegistrationState, std::string, CallManager *manager);
+ void on_manager_ready (std::string, CallManager *manager);
+
std::set<CallManager *> managers;
};
Modified: trunk/lib/engine/protocol/skel/call-manager.h
==============================================================================
--- trunk/lib/engine/protocol/skel/call-manager.h (original)
+++ trunk/lib/engine/protocol/skel/call-manager.h Sun May 18 19:56:54 2008
@@ -248,6 +248,12 @@
*/
sigc::signal<void, std::string, Ekiga::CallCore::RegistrationState, std::string> registration_event;
+
+ /*
+ * MISC
+ */
+ sigc::signal<void, std::string> ready;
+
private:
std::set<CallProtocolManager *> managers;
};
Modified: trunk/src/endpoints/manager.cpp
==============================================================================
--- trunk/src/endpoints/manager.cpp (original)
+++ trunk/src/endpoints/manager.cpp Sun May 18 19:56:54 2008
@@ -106,6 +106,10 @@
//
call_core = dynamic_cast<Ekiga::CallCore *> (core.get ("call-core"));
+
+
+ // Ready
+ runtime.run_in_main (sigc::bind (ready.make_slot (), ""));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]