ekiga r6220 - in trunk: . src/endpoints
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6220 - in trunk: . src/endpoints
- Date: Thu, 24 Apr 2008 22:07:50 +0100 (BST)
Author: dsandras
Date: Thu Apr 24 21:07:50 2008
New Revision: 6220
URL: http://svn.gnome.org/viewvc/ekiga?rev=6220&view=rev
Log:
Added missing methods.
Modified:
trunk/ChangeLog
trunk/src/endpoints/sip.cpp
trunk/src/endpoints/sip.h
Modified: trunk/src/endpoints/sip.cpp
==============================================================================
--- trunk/src/endpoints/sip.cpp (original)
+++ trunk/src/endpoints/sip.cpp Thu Apr 24 21:07:50 2008
@@ -91,6 +91,18 @@
}
+const std::string & GMSIPEndpoint::get_protocol_name () const
+{
+ return uri_prefix;
+}
+
+
+const std::string & GMSIPEndpoint::get_interface () const
+{
+ return listener;
+}
+
+
bool GMSIPEndpoint::send_message (const std::string uri, const std::string message)
{
if (!uri.empty () && !message.empty ()) {
@@ -298,8 +310,11 @@
str << "udp$*:" << port;
while (port <= udp_max) {
- if (StartListeners (PStringArray (str.str ().c_str ())))
+ if (StartListeners (PStringArray (str.str ().c_str ()))) {
+
+ listener = str.str ();
return true;
+ }
port++;
}
}
Modified: trunk/src/endpoints/sip.h
==============================================================================
--- trunk/src/endpoints/sip.h (original)
+++ trunk/src/endpoints/sip.h Thu Apr 24 21:07:50 2008
@@ -74,6 +74,10 @@
/**/
bool dial (const std::string uri);
+ const std::string & get_protocol_name () const;
+
+ const std::string & get_interface () const;
+
bool send_message (const std::string uri,
const std::string message);
@@ -250,6 +254,7 @@
Ekiga::PresenceCore & presence_core;
Ekiga::Runtime & runtime;
+ std::string listener;
std::string uri_prefix;
std::string forward_uri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]