ekiga r6167 - in trunk: . src/endpoints
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6167 - in trunk: . src/endpoints
- Date: Thu, 10 Apr 2008 22:04:00 +0100 (BST)
Author: dsandras
Date: Thu Apr 10 22:04:00 2008
New Revision: 6167
URL: http://svn.gnome.org/viewvc/ekiga?rev=6167&view=rev
Log:
Removed a bunch of now unused methods.
Modified:
trunk/ChangeLog
trunk/src/endpoints/manager.cpp
trunk/src/endpoints/manager.h
Modified: trunk/src/endpoints/manager.cpp
==============================================================================
--- trunk/src/endpoints/manager.cpp (original)
+++ trunk/src/endpoints/manager.cpp Thu Apr 10 22:04:00 2008
@@ -700,13 +700,6 @@
}
-void
-GMManager::SetUserInputMode ()
-{
- h323EP->SetUserInputMode ();
-}
-
-
GMH323Endpoint *
GMManager::GetH323Endpoint ()
{
@@ -721,57 +714,6 @@
}
-PString
-GMManager::GetCurrentAddress (PString protocol)
-{
- OpalEndPoint *ep = NULL;
-
- PIPSocket::Address ip(PIPSocket::GetDefaultIpAny());
- WORD port = 0;
-
- ep = FindEndPoint (protocol.IsEmpty () ? "sip" : protocol);
-
- if (!ep)
- return PString ();
-
- if (!ep->GetListeners ().IsEmpty ())
- ep->GetListeners()[0].GetLocalAddress().GetIpAndPort (ip, port);
-
- return ip.AsString () + ":" + PString (port);
-}
-
-
-PString
-GMManager::GetURL (PString protocol)
-{
- GmAccount *account = NULL;
- PString url;
- gchar *account_url = NULL;
-
- if (protocol.IsEmpty ())
- return PString ();
-
- account = gnomemeeting_get_default_account ((gchar *)(const char *) protocol);
-
- if (account) {
-
- if (account->enabled)
- account_url = g_strdup_printf ("%s:%s %s", (const char *) protocol,
- account->username, account->host);
- gm_account_delete (account);
- }
-
- if (!account_url)
- account_url = g_strdup_printf ("%s:%s", (const char *) protocol,
- (const char *) GetCurrentAddress (protocol));
-
- url = account_url;
- g_free (account_url);
-
- return url;
-}
-
-
void
GMManager::UpdatePublishers (void)
{
@@ -870,28 +812,6 @@
}
-
-PSafePtr<OpalConnection> GMManager::GetConnection (PSafePtr<OpalCall> call,
- bool is_remote)
-{
- PSafePtr<OpalConnection> connection = NULL;
-
- if (call == NULL)
- return connection;
-
- connection = call->GetConnection (is_remote ? 1:0);
- /* is_remote => SIP or H.323 connection
- * !is_remote => PCSS Connection
- */
- if (!connection
- || (is_remote && PIsDescendant(&(*connection), OpalPCSSConnection))
- || (!is_remote && !PIsDescendant(&(*connection), OpalPCSSConnection)))
- connection = call->GetConnection (is_remote ? 0:1);
-
- return connection;
-}
-
-
OpalCall *GMManager::CreateCall ()
{
Ekiga::Call *call = NULL;
Modified: trunk/src/endpoints/manager.h
==============================================================================
--- trunk/src/endpoints/manager.h (original)
+++ trunk/src/endpoints/manager.h Thu Apr 10 22:04:00 2008
@@ -184,16 +184,6 @@
void Init ();
- /* DESCRIPTION : /
- * BEHAVIOR : Returns the local or remote OpalConnection for the
- * given call. If there are several remote connections,
- * the first one is returned.
- * PRE : /
- */
- PSafePtr<OpalConnection> GetConnection (PSafePtr<OpalCall>,
- bool);
-
-
OpalCall *CreateCall ();
@@ -227,14 +217,6 @@
/* DESCRIPTION : /
- * BEHAVIOR : Sets the User Input Mode following the
- * configuration options for each of the endpoints.
- * PRE : /
- */
- void SetUserInputMode ();
-
-
- /* DESCRIPTION : /
* BEHAVIOR : Returns the H.323 endpoint.
* PRE : /
*/
@@ -248,24 +230,6 @@
GMSIPEndpoint *GetSIPEndpoint ();
- /* DESCRIPTION : /
- * BEHAVIOR : Return the current listener address of the endpoint.
- * for the given protocol. (default sip).
- * PRE : /
- */
- PString GetCurrentAddress (PString protocol = PString::Empty ());
-
-
- /* DESCRIPTION : /
- * BEHAVIOR : Returns the default url for the given protocol (if any).
- * The returned url is the best guess. It is in general more
- * accurate with SIP than with H.323. If there is no default
- * account configured and enabled, the IP address is returned.
- * PRE : Non-empty protocol.
- */
- PString GetURL (PString);
-
-
#ifdef HAVE_AVAHI
/* DESCRIPTION : /
* BEHAVIOR : Create a zeroconf client that will publish information
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]