libmm-glib,call-properties: move deprecated methods to compat source
This commit is contained in:
@@ -1465,12 +1465,6 @@ mm_call_properties_new
|
||||
<SUBSECTION GettersSetters>
|
||||
mm_call_properties_get_number
|
||||
mm_call_properties_set_number
|
||||
mm_call_properties_get_direction
|
||||
mm_call_properties_set_direction
|
||||
mm_call_properties_get_state
|
||||
mm_call_properties_set_state
|
||||
mm_call_properties_get_state_reason
|
||||
mm_call_properties_set_state_reason
|
||||
<SUBSECTION Private>
|
||||
mm_call_properties_get_dictionary
|
||||
mm_call_properties_dup
|
||||
@@ -1831,6 +1825,14 @@ mm_serial_error_get_type
|
||||
<SECTION>
|
||||
<FILE>mm-compat</FILE>
|
||||
<TITLE>Deprecated Interface</TITLE>
|
||||
<SUBSECTION CallProperties>
|
||||
mm_call_properties_get_direction
|
||||
mm_call_properties_set_direction
|
||||
mm_call_properties_get_state
|
||||
mm_call_properties_set_state
|
||||
mm_call_properties_get_state_reason
|
||||
mm_call_properties_set_state_reason
|
||||
<SUBSECTION ModemOma>
|
||||
mm_modem_peek_pending_network_initiated_sessions
|
||||
mm_modem_get_pending_network_initiated_sessions
|
||||
</SECTION>
|
||||
|
@@ -84,133 +84,6 @@ mm_call_properties_get_number (MMCallProperties *self)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_direction:
|
||||
* @self: A #MMCallProperties.
|
||||
* @direction: the call direction
|
||||
*
|
||||
* Sets the call direction.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the direction of the call, as
|
||||
* it is implicit (outgoing always). Anyway, this parameter has always been
|
||||
* ignored during the new call creation processing.
|
||||
*/
|
||||
void
|
||||
mm_call_properties_set_direction (MMCallProperties *self,
|
||||
MMCallDirection direction)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_direction:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call direction.
|
||||
*
|
||||
* Returns: the call direction.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the direction of the call, as
|
||||
* it is implicit (outgoing always). This parameter has always been ignored
|
||||
* during the new call creation processing.
|
||||
*/
|
||||
MMCallDirection
|
||||
mm_call_properties_get_direction (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_DIRECTION_UNKNOWN;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_state:
|
||||
* @self: A #MMCallProperties.
|
||||
* @state: the call state
|
||||
*
|
||||
* Sets the call state
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state of the call before
|
||||
* the call is created. This parameter has always been ignored during the new
|
||||
* call creation processing.
|
||||
*/
|
||||
void
|
||||
mm_call_properties_set_state (MMCallProperties *self,
|
||||
MMCallState state)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_state:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call state.
|
||||
*
|
||||
* Returns: the call state.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state of the call before
|
||||
* the call is created. This parameter has always been ignored during the new
|
||||
* call creation processing.
|
||||
*/
|
||||
MMCallState
|
||||
mm_call_properties_get_state (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_STATE_UNKNOWN;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_state_reason:
|
||||
* @self: A #MMCallProperties.
|
||||
* @state_reason: the call state reason.
|
||||
*
|
||||
* Sets the call state reason.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state reason of the call
|
||||
* before the call is created. This parameter has always been ignored during the
|
||||
* new call creation processing.
|
||||
*/
|
||||
void
|
||||
mm_call_properties_set_state_reason (MMCallProperties *self,
|
||||
MMCallStateReason state_reason)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_state_reason:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call state reason.
|
||||
*
|
||||
* Returns: the call state reason.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state reason of the call
|
||||
* before the call is created. This parameter has always been ignored during the
|
||||
* new call creation processing.
|
||||
*/
|
||||
MMCallStateReason
|
||||
mm_call_properties_get_state_reason (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_STATE_REASON_UNKNOWN;
|
||||
}
|
||||
|
||||
#endif /* MM_DISABLE_DEPRECATED */
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/*
|
||||
* mm_call_properties_get_dictionary: (skip)
|
||||
*/
|
||||
|
@@ -61,24 +61,6 @@ void mm_call_properties_set_number (MMCallProperties *self,
|
||||
const gchar *text);
|
||||
const gchar *mm_call_properties_get_number (MMCallProperties *self);
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_direction (MMCallProperties *self,
|
||||
MMCallDirection direction);
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_state_reason (MMCallProperties *self,
|
||||
MMCallStateReason state_reason);
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_state (MMCallProperties *self,
|
||||
MMCallState state);
|
||||
G_DEPRECATED
|
||||
MMCallDirection mm_call_properties_get_direction (MMCallProperties *self);
|
||||
G_DEPRECATED
|
||||
MMCallStateReason mm_call_properties_get_state_reason (MMCallProperties *self);
|
||||
G_DEPRECATED
|
||||
MMCallState mm_call_properties_get_state (MMCallProperties *self);
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/* ModemManager/libmm-glib/mmcli specific methods */
|
||||
|
||||
|
@@ -26,6 +26,54 @@
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
void
|
||||
mm_call_properties_set_direction (MMCallProperties *self,
|
||||
MMCallDirection direction)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
MMCallDirection
|
||||
mm_call_properties_get_direction (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_DIRECTION_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
mm_call_properties_set_state (MMCallProperties *self,
|
||||
MMCallState state)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
|
||||
MMCallState
|
||||
mm_call_properties_get_state (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_STATE_UNKNOWN;
|
||||
}
|
||||
|
||||
void
|
||||
mm_call_properties_set_state_reason (MMCallProperties *self,
|
||||
MMCallStateReason state_reason)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
MMCallStateReason
|
||||
mm_call_properties_get_state_reason (MMCallProperties *self)
|
||||
{
|
||||
/* NO-OP */
|
||||
return MM_CALL_STATE_REASON_UNKNOWN;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
gboolean
|
||||
mm_modem_get_pending_network_initiated_sessions (MMModemOma *self,
|
||||
MMOmaPendingNetworkInitiatedSession **sessions,
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#error "Only <libmm-glib.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include "mm-call-properties.h"
|
||||
#include "mm-modem-oma.h"
|
||||
|
||||
/**
|
||||
@@ -40,6 +41,106 @@
|
||||
* innecessary API/ABI breaks, for compatibility purposes only.
|
||||
*/
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_direction:
|
||||
* @self: A #MMCallProperties.
|
||||
* @direction: the call direction
|
||||
*
|
||||
* Sets the call direction.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the direction of the call, as
|
||||
* it is implicit (outgoing always). Anyway, this parameter has always been
|
||||
* ignored during the new call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_direction (MMCallProperties *self,
|
||||
MMCallDirection direction);
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_state_reason:
|
||||
* @self: A #MMCallProperties.
|
||||
* @state_reason: the call state reason.
|
||||
*
|
||||
* Sets the call state reason.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state reason of the call
|
||||
* before the call is created. This parameter has always been ignored during the
|
||||
* new call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_state_reason (MMCallProperties *self,
|
||||
MMCallStateReason state_reason);
|
||||
|
||||
/**
|
||||
* mm_call_properties_set_state:
|
||||
* @self: A #MMCallProperties.
|
||||
* @state: the call state
|
||||
*
|
||||
* Sets the call state
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state of the call before
|
||||
* the call is created. This parameter has always been ignored during the new
|
||||
* call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
void mm_call_properties_set_state (MMCallProperties *self,
|
||||
MMCallState state);
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_direction:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call direction.
|
||||
*
|
||||
* Returns: the call direction.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the direction of the call, as
|
||||
* it is implicit (outgoing always). This parameter has always been ignored
|
||||
* during the new call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
MMCallDirection mm_call_properties_get_direction (MMCallProperties *self);
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_state_reason:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call state reason.
|
||||
*
|
||||
* Returns: the call state reason.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state reason of the call
|
||||
* before the call is created. This parameter has always been ignored during the
|
||||
* new call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
MMCallStateReason mm_call_properties_get_state_reason (MMCallProperties *self);
|
||||
|
||||
/**
|
||||
* mm_call_properties_get_state:
|
||||
* @self: A #MMCallProperties.
|
||||
*
|
||||
* Gets the call state.
|
||||
*
|
||||
* Returns: the call state.
|
||||
*
|
||||
* Since: 1.6
|
||||
* Deprecated: 1.12: the user should not specify the state of the call before
|
||||
* the call is created. This parameter has always been ignored during the new
|
||||
* call creation processing.
|
||||
*/
|
||||
G_DEPRECATED
|
||||
MMCallState mm_call_properties_get_state (MMCallProperties *self);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
* mm_modem_get_pending_network_initiated_sessions:
|
||||
* @self: A #MMModem.
|
||||
|
Reference in New Issue
Block a user