///
///
///
///
/**
* Type Definitions for Gjs (https://gjs.guide/)
*
* These type definitions are automatically generated, do not edit them by hand.
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
*
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
*/
declare module 'gi://ModemManager?version=1.0' {
// Module dependencies
import type Gio from 'gi://Gio?version=2.0';
import type GObject from 'gi://GObject?version=2.0';
import type GLib from 'gi://GLib?version=2.0';
import type GModule from 'gi://GModule?version=2.0';
export namespace ModemManager {
/**
* ModemManager-1.0
*/
export namespace BearerAccessTypePreference {
export const $gtype: GObject.GType;
}
enum BearerAccessTypePreference {
NONE,
'3GPP_ONLY',
'3GPP_PREFERRED',
NON_3GPP_ONLY,
}
export namespace BearerIpMethod {
export const $gtype: GObject.GType;
}
enum BearerIpMethod {
UNKNOWN,
PPP,
STATIC,
DHCP,
}
export namespace BearerMultiplexSupport {
export const $gtype: GObject.GType;
}
enum BearerMultiplexSupport {
UNKNOWN,
NONE,
REQUESTED,
REQUIRED,
}
export namespace BearerProfileSource {
export const $gtype: GObject.GType;
}
enum BearerProfileSource {
UNKNOWN,
ADMIN,
USER,
OPERATOR,
MODEM,
DEVICE,
}
export namespace BearerType {
export const $gtype: GObject.GType;
}
enum BearerType {
UNKNOWN,
DEFAULT,
DEFAULT_ATTACH,
DEDICATED,
}
export namespace CallDirection {
export const $gtype: GObject.GType;
}
enum CallDirection {
UNKNOWN,
INCOMING,
OUTGOING,
}
export namespace CallState {
export const $gtype: GObject.GType;
}
enum CallState {
UNKNOWN,
DIALING,
RINGING_OUT,
RINGING_IN,
ACTIVE,
HELD,
WAITING,
TERMINATED,
}
export namespace CallStateReason {
export const $gtype: GObject.GType;
}
enum CallStateReason {
UNKNOWN,
OUTGOING_STARTED,
INCOMING_NEW,
ACCEPTED,
TERMINATED,
REFUSED_OR_BUSY,
ERROR,
AUDIO_SETUP_FAILED,
TRANSFERRED,
DEFLECTED,
}
class CdmaActivationError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static NONE: number;
static UNKNOWN: number;
static ROAMING: number;
static WRONGRADIOINTERFACE: number;
static COULDNOTCONNECT: number;
static SECURITYAUTHENTICATIONFAILED: number;
static PROVISIONINGFAILED: number;
static NOSIGNAL: number;
static TIMEDOUT: number;
static STARTFAILED: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
export namespace CellType {
export const $gtype: GObject.GType;
}
enum CellType {
UNKNOWN,
CDMA,
GSM,
UMTS,
TDSCDMA,
LTE,
'5GNR',
}
class ConnectionError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static UNKNOWN: number;
static NOCARRIER: number;
static NODIALTONE: number;
static BUSY: number;
static NOANSWER: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
class CoreError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static FAILED: number;
static CANCELLED: number;
static ABORTED: number;
static UNSUPPORTED: number;
static NOPLUGINS: number;
static UNAUTHORIZED: number;
static INVALIDARGS: number;
static INPROGRESS: number;
static WRONGSTATE: number;
static CONNECTED: number;
static TOOMANY: number;
static NOTFOUND: number;
static RETRY: number;
static EXISTS: number;
static WRONGSIMSTATE: number;
static RESETRETRY: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
export namespace FirmwareImageType {
export const $gtype: GObject.GType;
}
enum FirmwareImageType {
UNKNOWN,
GENERIC,
GOBI,
}
class MessageError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static MEFAILURE: number;
static SMSSERVICERESERVED: number;
static NOTALLOWED: number;
static NOTSUPPORTED: number;
static INVALIDPDUPARAMETER: number;
static INVALIDTEXTPARAMETER: number;
static SIMNOTINSERTED: number;
static SIMPIN: number;
static PHSIMPIN: number;
static SIMFAILURE: number;
static SIMBUSY: number;
static SIMWRONG: number;
static SIMPUK: number;
static SIMPIN2: number;
static SIMPUK2: number;
static MEMORYFAILURE: number;
static INVALIDINDEX: number;
static MEMORYFULL: number;
static SMSCADDRESSUNKNOWN: number;
static NONETWORK: number;
static NETWORKTIMEOUT: number;
static NOCNMAACKEXPECTED: number;
static UNKNOWN: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
class MobileEquipmentError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static PHONEFAILURE: number;
static NOCONNECTION: number;
static LINKRESERVED: number;
static NOTALLOWED: number;
static NOTSUPPORTED: number;
static PHSIMPIN: number;
static PHFSIMPIN: number;
static PHFSIMPUK: number;
static SIMNOTINSERTED: number;
static SIMPIN: number;
static SIMPUK: number;
static SIMFAILURE: number;
static SIMBUSY: number;
static SIMWRONG: number;
static INCORRECTPASSWORD: number;
static SIMPIN2: number;
static SIMPUK2: number;
static MEMORYFULL: number;
static INVALIDINDEX: number;
static NOTFOUND: number;
static MEMORYFAILURE: number;
static TEXTTOOLONG: number;
static INVALIDCHARS: number;
static DIALSTRINGTOOLONG: number;
static DIALSTRINGINVALID: number;
static NONETWORK: number;
static NETWORKTIMEOUT: number;
static NETWORKNOTALLOWED: number;
static NETWORKPIN: number;
static NETWORKPUK: number;
static NETWORKSUBSETPIN: number;
static NETWORKSUBSETPUK: number;
static SERVICEPIN: number;
static SERVICEPUK: number;
static CORPPIN: number;
static CORPPUK: number;
static HIDDENKEYREQUIRED: number;
static EAPMETHODNOTSUPPORTED: number;
static INCORRECTPARAMETERS: number;
static COMMANDDISABLED: number;
static COMMANDABORTED: number;
static NOTATTACHEDRESTRICTED: number;
static NOTALLOWEDEMERGENCYONLY: number;
static NOTALLOWEDRESTRICTED: number;
static FIXEDDIALNUMBERONLY: number;
static TEMPORARILYOUTOFSERVICE: number;
static LANGUAGEORALPHABETNOTSUPPORTED: number;
static UNEXPECTEDDATAVALUE: number;
static SYSTEMFAILURE: number;
static DATAMISSING: number;
static CALLBARRED: number;
static MESSAGEWAITINGINDICATIONSUBSCRIPTIONFAILURE: number;
static UNKNOWN: number;
static IMSIUNKNOWNINHSS: number;
static ILLEGALUE: number;
static IMSIUNKNOWNINVLR: number;
static IMEINOTACCEPTED: number;
static ILLEGALME: number;
static PSSERVICESNOTALLOWED: number;
static PSANDNONPSSERVICESNOTALLOWED: number;
static UEIDENTITYNOTDERIVEDFROMNETWORK: number;
static IMPLICITLYDETACHED: number;
static PLMNNOTALLOWED: number;
static AREANOTALLOWED: number;
static ROAMINGNOTALLOWEDINAREA: number;
static PSSERVICESNOTALLOWEDINPLMN: number;
static NOCELLSINAREA: number;
static MSCTEMPORARILYNOTREACHABLE: number;
static NETWORKFAILUREATTACH: number;
static CSDOMAINUNAVAILABLE: number;
static ESMFAILURE: number;
static CONGESTION: number;
static MBMSBEARERCAPABILITIESINSUFFICIENTFORSERVICE: number;
static NOTAUTHORIZEDFORCSG: number;
static INSUFFICIENTRESOURCES: number;
static MISSINGORUNKNOWNAPN: number;
static UNKNOWNPDPADDRESSORTYPE: number;
static USERAUTHENTICATIONFAILED: number;
static ACTIVATIONREJECTEDBYGGSNORGW: number;
static ACTIVATIONREJECTEDUNSPECIFIED: number;
static SERVICEOPTIONNOTSUPPORTED: number;
static SERVICEOPTIONNOTSUBSCRIBED: number;
static SERVICEOPTIONOUTOFORDER: number;
static NSAPIORPTIALREADYINUSE: number;
static REGULARDEACTIVATION: number;
static QOSNOTACCEPTED: number;
static CALLCANNOTBEIDENTIFIED: number;
static CSSERVICETEMPORARILYUNAVAILABLE: number;
static FEATURENOTSUPPORTED: number;
static SEMANTICERRORINTFTOPERATION: number;
static SYNTACTICALERRORINTFTOPERATION: number;
static UNKNOWNPDPCONTEXT: number;
static SEMANTICERRORSINPACKETFILTER: number;
static SYNTACTICALERRORSINPACKETFILTER: number;
static PDPCONTEXTWITHOUTTFTALREADYACTIVATED: number;
static MULTICASTGROUPMEMBERSHIPTIMEOUT: number;
static GPRSUNKNOWN: number;
static PDPAUTHFAILURE: number;
static INVALIDMOBILECLASS: number;
static LASTPDNDISCONNECTIONNOTALLOWEDLEGACY: number;
static LASTPDNDISCONNECTIONNOTALLOWED: number;
static SEMANTICALLYINCORRECTMESSAGE: number;
static INVALIDMANDATORYINFORMATION: number;
static MESSAGETYPENOTIMPLEMENTED: number;
static CONDITIONALIEERROR: number;
static UNSPECIFIEDPROTOCOLERROR: number;
static OPERATORDETERMINEDBARRING: number;
static MAXIMUMNUMBEROFBEARERSREACHED: number;
static REQUESTEDAPNNOTSUPPORTED: number;
static REQUESTREJECTEDBCMVIOLATION: number;
static UNSUPPORTEDQCIOR5QIVALUE: number;
static USERDATAVIACONTROLPLANECONGESTED: number;
static SMSPROVIDEDVIAGPRSINROUTINGAREA: number;
static INVALIDPTIVALUE: number;
static NOBEARERACTIVATED: number;
static MESSAGENOTCOMPATIBLEWITHPROTOCOLSTATE: number;
static RECOVERYONTIMEREXPIRY: number;
static INVALIDTRANSACTIONIDVALUE: number;
static SERVICEOPTIONNOTAUTHORIZEDINPLMN: number;
static NETWORKFAILUREACTIVATION: number;
static REACTIVATIONREQUESTED: number;
static IPV4ONLYALLOWED: number;
static IPV6ONLYALLOWED: number;
static SINGLEADDRESSBEARERSONLYALLOWED: number;
static COLLISIONWITHNETWORKINITIATEDREQUEST: number;
static IPV4V6ONLYALLOWED: number;
static NONIPONLYALLOWED: number;
static BEARERHANDLINGUNSUPPORTED: number;
static APNRESTRICTIONINCOMPATIBLE: number;
static MULTIPLEACCESSTOPDNCONNECTIONNOTALLOWED: number;
static ESMINFORMATIONNOTRECEIVED: number;
static PDNCONNECTIONNONEXISTENT: number;
static MULTIPLEPDNCONNECTIONSAMEAPNNOTALLOWED: number;
static SEVERENETWORKFAILURE: number;
static INSUFFICIENTRESOURCESFORSLICEANDDNN: number;
static UNSUPPORTEDSSCMODE: number;
static INSUFFICIENTRESOURCESFORSLICE: number;
static MESSAGETYPENOTCOMPATIBLEWITHPROTOCOLSTATE: number;
static IENOTIMPLEMENTED: number;
static N1MODENOTALLOWED: number;
static RESTRICTEDSERVICEAREA: number;
static LADNUNAVAILABLE: number;
static MISSINGORUNKNOWNDNNINSLICE: number;
static NKGSIALREADYINUSE: number;
static PAYLOADNOTFORWARDED: number;
static NON3GPPACCESSTO5GCNNOTALLOWED: number;
static SERVINGNETWORKNOTAUTHORIZED: number;
static DNNNOTSUPPORTEDINSLICE: number;
static INSUFFICIENTUSERPLANERESOURCESFORPDUSESSION: number;
static OUTOFLADNSERVICEAREA: number;
static PTIMISMATCH: number;
static MAXDATARATEFORUSERPLANEINTEGRITYTOOLOW: number;
static SEMANTICERRORINQOSOPERATION: number;
static SYNTACTICALERRORINQOSOPERATION: number;
static INVALIDMAPPEDEPSBEARERIDENTITY: number;
static REDIRECTIONTO5GCNREQUIRED: number;
static REDIRECTIONTOEPCREQUIRED: number;
static TEMPORARILYUNAUTHORIZEDFORSNPN: number;
static PERMANENTLYUNAUTHORIZEDFORSNPN: number;
static ETHERNETONLYALLOWED: number;
static UNAUTHORIZEDFORCAG: number;
static NONETWORKSLICESAVAILABLE: number;
static WIRELINEACCESSAREANOTALLOWED: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
class Modem3gppDrxCycle {
static $gtype: GObject.GType;
// Static fields
static UNKNOWN: number;
static UNSUPPORTED: number;
static '32': number;
static '64': number;
static '128': number;
static '256': number;
// Constructors
_init(...args: any[]): void;
}
export namespace Modem3gppEpsUeModeOperation {
export const $gtype: GObject.GType;
}
enum Modem3gppEpsUeModeOperation {
UNKNOWN,
PS_1,
PS_2,
CSPS_1,
CSPS_2,
}
export namespace Modem3gppMicoMode {
export const $gtype: GObject.GType;
}
enum Modem3gppMicoMode {
UNKNOWN,
UNSUPPORTED,
DISABLED,
ENABLED,
}
export namespace Modem3gppNetworkAvailability {
export const $gtype: GObject.GType;
}
enum Modem3gppNetworkAvailability {
UNKNOWN,
AVAILABLE,
CURRENT,
FORBIDDEN,
}
export namespace Modem3gppPacketServiceState {
export const $gtype: GObject.GType;
}
enum Modem3gppPacketServiceState {
UNKNOWN,
DETACHED,
ATTACHED,
}
export namespace Modem3gppRegistrationState {
export const $gtype: GObject.GType;
}
enum Modem3gppRegistrationState {
IDLE,
HOME,
SEARCHING,
DENIED,
UNKNOWN,
ROAMING,
HOME_SMS_ONLY,
ROAMING_SMS_ONLY,
EMERGENCY_ONLY,
HOME_CSFB_NOT_PREFERRED,
ROAMING_CSFB_NOT_PREFERRED,
ATTACHED_RLOS,
}
export namespace Modem3gppSubscriptionState {
export const $gtype: GObject.GType;
}
enum Modem3gppSubscriptionState {
UNKNOWN,
UNPROVISIONED,
PROVISIONED,
OUT_OF_DATA,
}
export namespace Modem3gppUssdSessionState {
export const $gtype: GObject.GType;
}
enum Modem3gppUssdSessionState {
UNKNOWN,
IDLE,
ACTIVE,
USER_RESPONSE,
}
export namespace ModemBand {
export const $gtype: GObject.GType;
}
enum ModemBand {
UNKNOWN,
EGSM,
DCS,
PCS,
G850,
UTRAN_1,
UTRAN_3,
UTRAN_4,
UTRAN_6,
UTRAN_5,
UTRAN_8,
UTRAN_9,
UTRAN_2,
UTRAN_7,
G450,
G480,
G750,
G380,
G410,
G710,
G810,
EUTRAN_1,
EUTRAN_2,
EUTRAN_3,
EUTRAN_4,
EUTRAN_5,
EUTRAN_6,
EUTRAN_7,
EUTRAN_8,
EUTRAN_9,
EUTRAN_10,
EUTRAN_11,
EUTRAN_12,
EUTRAN_13,
EUTRAN_14,
EUTRAN_17,
EUTRAN_18,
EUTRAN_19,
EUTRAN_20,
EUTRAN_21,
EUTRAN_22,
EUTRAN_23,
EUTRAN_24,
EUTRAN_25,
EUTRAN_26,
EUTRAN_27,
EUTRAN_28,
EUTRAN_29,
EUTRAN_30,
EUTRAN_31,
EUTRAN_32,
EUTRAN_33,
EUTRAN_34,
EUTRAN_35,
EUTRAN_36,
EUTRAN_37,
EUTRAN_38,
EUTRAN_39,
EUTRAN_40,
EUTRAN_41,
EUTRAN_42,
EUTRAN_43,
EUTRAN_44,
EUTRAN_45,
EUTRAN_46,
EUTRAN_47,
EUTRAN_48,
EUTRAN_49,
EUTRAN_50,
EUTRAN_51,
EUTRAN_52,
EUTRAN_53,
EUTRAN_54,
EUTRAN_55,
EUTRAN_56,
EUTRAN_57,
EUTRAN_58,
EUTRAN_59,
EUTRAN_60,
EUTRAN_61,
EUTRAN_62,
EUTRAN_63,
EUTRAN_64,
EUTRAN_65,
EUTRAN_66,
EUTRAN_67,
EUTRAN_68,
EUTRAN_69,
EUTRAN_70,
EUTRAN_71,
EUTRAN_85,
CDMA_BC0,
CDMA_BC1,
CDMA_BC2,
CDMA_BC3,
CDMA_BC4,
CDMA_BC5,
CDMA_BC6,
CDMA_BC7,
CDMA_BC8,
CDMA_BC9,
CDMA_BC10,
CDMA_BC11,
CDMA_BC12,
CDMA_BC13,
CDMA_BC14,
CDMA_BC15,
CDMA_BC16,
CDMA_BC17,
CDMA_BC18,
CDMA_BC19,
UTRAN_10,
UTRAN_11,
UTRAN_12,
UTRAN_13,
UTRAN_14,
UTRAN_19,
UTRAN_20,
UTRAN_21,
UTRAN_22,
UTRAN_25,
UTRAN_26,
UTRAN_32,
ANY,
NGRAN_1,
NGRAN_2,
NGRAN_3,
NGRAN_5,
NGRAN_7,
NGRAN_8,
NGRAN_12,
NGRAN_13,
NGRAN_14,
NGRAN_18,
NGRAN_20,
NGRAN_25,
NGRAN_26,
NGRAN_28,
NGRAN_29,
NGRAN_30,
NGRAN_34,
NGRAN_38,
NGRAN_39,
NGRAN_40,
NGRAN_41,
NGRAN_48,
NGRAN_50,
NGRAN_51,
NGRAN_53,
NGRAN_65,
NGRAN_66,
NGRAN_70,
NGRAN_71,
NGRAN_74,
NGRAN_75,
NGRAN_76,
NGRAN_77,
NGRAN_78,
NGRAN_79,
NGRAN_80,
NGRAN_81,
NGRAN_82,
NGRAN_83,
NGRAN_84,
NGRAN_86,
NGRAN_89,
NGRAN_90,
NGRAN_91,
NGRAN_92,
NGRAN_93,
NGRAN_94,
NGRAN_95,
NGRAN_257,
NGRAN_258,
NGRAN_260,
NGRAN_261,
}
export namespace ModemCdmaActivationState {
export const $gtype: GObject.GType;
}
enum ModemCdmaActivationState {
UNKNOWN,
NOT_ACTIVATED,
ACTIVATING,
PARTIALLY_ACTIVATED,
ACTIVATED,
}
export namespace ModemCdmaRegistrationState {
export const $gtype: GObject.GType;
}
enum ModemCdmaRegistrationState {
UNKNOWN,
REGISTERED,
HOME,
ROAMING,
}
export namespace ModemCdmaRmProtocol {
export const $gtype: GObject.GType;
}
enum ModemCdmaRmProtocol {
UNKNOWN,
ASYNC,
PACKET_RELAY,
PACKET_NETWORK_PPP,
PACKET_NETWORK_SLIP,
STU_III,
}
export namespace ModemContactsStorage {
export const $gtype: GObject.GType;
}
enum ModemContactsStorage {
UNKNOWN,
ME,
SM,
MT,
}
export namespace ModemLock {
export const $gtype: GObject.GType;
}
enum ModemLock {
UNKNOWN,
NONE,
SIM_PIN,
SIM_PIN2,
SIM_PUK,
SIM_PUK2,
PH_SP_PIN,
PH_SP_PUK,
PH_NET_PIN,
PH_NET_PUK,
PH_SIM_PIN,
PH_CORP_PIN,
PH_CORP_PUK,
PH_FSIM_PIN,
PH_FSIM_PUK,
PH_NETSUB_PIN,
PH_NETSUB_PUK,
}
export namespace ModemPortType {
export const $gtype: GObject.GType;
}
enum ModemPortType {
UNKNOWN,
NET,
AT,
QCDM,
GPS,
QMI,
MBIM,
AUDIO,
IGNORED,
}
export namespace ModemPowerState {
export const $gtype: GObject.GType;
}
enum ModemPowerState {
UNKNOWN,
OFF,
LOW,
ON,
}
export namespace ModemState {
export const $gtype: GObject.GType;
}
enum ModemState {
FAILED,
UNKNOWN,
INITIALIZING,
LOCKED,
DISABLED,
DISABLING,
ENABLING,
ENABLED,
SEARCHING,
REGISTERED,
DISCONNECTING,
CONNECTING,
CONNECTED,
}
export namespace ModemStateChangeReason {
export const $gtype: GObject.GType;
}
enum ModemStateChangeReason {
UNKNOWN,
USER_REQUESTED,
SUSPEND,
FAILURE,
}
export namespace ModemStateFailedReason {
export const $gtype: GObject.GType;
}
enum ModemStateFailedReason {
NONE,
UNKNOWN,
SIM_MISSING,
SIM_ERROR,
UNKNOWN_CAPABILITIES,
ESIM_WITHOUT_PROFILES,
}
export namespace OmaSessionState {
export const $gtype: GObject.GType;
}
enum OmaSessionState {
FAILED,
UNKNOWN,
STARTED,
RETRYING,
CONNECTING,
CONNECTED,
AUTHENTICATED,
MDN_DOWNLOADED,
MSID_DOWNLOADED,
PRL_DOWNLOADED,
MIP_PROFILE_DOWNLOADED,
COMPLETED,
}
export namespace OmaSessionStateFailedReason {
export const $gtype: GObject.GType;
}
enum OmaSessionStateFailedReason {
UNKNOWN,
NETWORK_UNAVAILABLE,
SERVER_UNAVAILABLE,
AUTHENTICATION_FAILED,
MAX_RETRY_EXCEEDED,
SESSION_CANCELLED,
}
export namespace OmaSessionType {
export const $gtype: GObject.GType;
}
enum OmaSessionType {
UNKNOWN,
CLIENT_INITIATED_DEVICE_CONFIGURE,
CLIENT_INITIATED_PRL_UPDATE,
CLIENT_INITIATED_HANDS_FREE_ACTIVATION,
NETWORK_INITIATED_DEVICE_CONFIGURE,
NETWORK_INITIATED_PRL_UPDATE,
DEVICE_INITIATED_PRL_UPDATE,
DEVICE_INITIATED_HANDS_FREE_ACTIVATION,
}
class SerialError extends GLib.Error {
static $gtype: GObject.GType;
// Static fields
static UNKNOWN: number;
static OPENFAILED: number;
static SENDFAILED: number;
static RESPONSETIMEOUT: number;
static OPENFAILEDNODEVICE: number;
static FLASHFAILED: number;
static NOTOPEN: number;
static PARSEFAILED: number;
static FRAMENOTFOUND: number;
// Constructors
constructor(options: { message: string; code: number });
_init(...args: any[]): void;
// Static methods
static quark(): GLib.Quark;
}
export namespace ServingCellType {
export const $gtype: GObject.GType;
}
enum ServingCellType {
UNKNOWN,
PCELL,
SCELL,
PSCELL,
SSCELL,
INVALID,
}
export namespace SimEsimStatus {
export const $gtype: GObject.GType;
}
enum SimEsimStatus {
UNKNOWN,
NO_PROFILES,
WITH_PROFILES,
}
export namespace SimRemovability {
export const $gtype: GObject.GType;
}
enum SimRemovability {
UNKNOWN,
REMOVABLE,
NOT_REMOVABLE,
}
export namespace SimType {
export const $gtype: GObject.GType;
}
enum SimType {
UNKNOWN,
PHYSICAL,
ESIM,
}
export namespace SmsCdmaServiceCategory {
export const $gtype: GObject.GType;
}
enum SmsCdmaServiceCategory {
UNKNOWN,
EMERGENCY_BROADCAST,
ADMINISTRATIVE,
MAINTENANCE,
GENERAL_NEWS_LOCAL,
GENERAL_NEWS_REGIONAL,
GENERAL_NEWS_NATIONAL,
GENERAL_NEWS_INTERNATIONAL,
BUSINESS_NEWS_LOCAL,
BUSINESS_NEWS_REGIONAL,
BUSINESS_NEWS_NATIONAL,
BUSINESS_NEWS_INTERNATIONAL,
SPORTS_NEWS_LOCAL,
SPORTS_NEWS_REGIONAL,
SPORTS_NEWS_NATIONAL,
SPORTS_NEWS_INTERNATIONAL,
ENTERTAINMENT_NEWS_LOCAL,
ENTERTAINMENT_NEWS_REGIONAL,
ENTERTAINMENT_NEWS_NATIONAL,
ENTERTAINMENT_NEWS_INTERNATIONAL,
LOCAL_WEATHER,
TRAFFIC_REPORT,
FLIGHT_SCHEDULES,
RESTAURANTS,
LODGINGS,
RETAIL_DIRECTORY,
ADVERTISEMENTS,
STOCK_QUOTES,
EMPLOYMENT,
HOSPITALS,
TECHNOLOGY_NEWS,
MULTICATEGORY,
CMAS_PRESIDENTIAL_ALERT,
CMAS_EXTREME_THREAT,
CMAS_SEVERE_THREAT,
CMAS_CHILD_ABDUCTION_EMERGENCY,
CMAS_TEST,
}
export namespace SmsCdmaTeleserviceId {
export const $gtype: GObject.GType;
}
enum SmsCdmaTeleserviceId {
UNKNOWN,
CMT91,
WPT,
WMT,
VMN,
WAP,
WEMT,
SCPT,
CATPT,
}
export namespace SmsDeliveryState {
export const $gtype: GObject.GType;
}
enum SmsDeliveryState {
COMPLETED_RECEIVED,
COMPLETED_FORWARDED_UNCONFIRMED,
COMPLETED_REPLACED_BY_SC,
TEMPORARY_ERROR_CONGESTION,
TEMPORARY_ERROR_SME_BUSY,
TEMPORARY_ERROR_NO_RESPONSE_FROM_SME,
TEMPORARY_ERROR_SERVICE_REJECTED,
TEMPORARY_ERROR_QOS_NOT_AVAILABLE,
TEMPORARY_ERROR_IN_SME,
ERROR_REMOTE_PROCEDURE,
ERROR_INCOMPATIBLE_DESTINATION,
ERROR_CONNECTION_REJECTED,
ERROR_NOT_OBTAINABLE,
ERROR_QOS_NOT_AVAILABLE,
ERROR_NO_INTERWORKING_AVAILABLE,
ERROR_VALIDITY_PERIOD_EXPIRED,
ERROR_DELETED_BY_ORIGINATING_SME,
ERROR_DELETED_BY_SC_ADMINISTRATION,
ERROR_MESSAGE_DOES_NOT_EXIST,
TEMPORARY_FATAL_ERROR_CONGESTION,
TEMPORARY_FATAL_ERROR_SME_BUSY,
TEMPORARY_FATAL_ERROR_NO_RESPONSE_FROM_SME,
TEMPORARY_FATAL_ERROR_SERVICE_REJECTED,
TEMPORARY_FATAL_ERROR_QOS_NOT_AVAILABLE,
TEMPORARY_FATAL_ERROR_IN_SME,
UNKNOWN,
NETWORK_PROBLEM_ADDRESS_VACANT,
NETWORK_PROBLEM_ADDRESS_TRANSLATION_FAILURE,
NETWORK_PROBLEM_NETWORK_RESOURCE_OUTAGE,
NETWORK_PROBLEM_NETWORK_FAILURE,
NETWORK_PROBLEM_INVALID_TELESERVICE_ID,
NETWORK_PROBLEM_OTHER,
TERMINAL_PROBLEM_NO_PAGE_RESPONSE,
TERMINAL_PROBLEM_DESTINATION_BUSY,
TERMINAL_PROBLEM_NO_ACKNOWLEDGMENT,
TERMINAL_PROBLEM_DESTINATION_RESOURCE_SHORTAGE,
TERMINAL_PROBLEM_SMS_DELIVERY_POSTPONED,
TERMINAL_PROBLEM_DESTINATION_OUT_OF_SERVICE,
TERMINAL_PROBLEM_DESTINATION_NO_LONGER_AT_THIS_ADDRESS,
TERMINAL_PROBLEM_OTHER,
RADIO_INTERFACE_PROBLEM_RESOURCE_SHORTAGE,
RADIO_INTERFACE_PROBLEM_INCOMPATIBILITY,
RADIO_INTERFACE_PROBLEM_OTHER,
GENERAL_PROBLEM_ENCODING,
GENERAL_PROBLEM_SMS_ORIGINATION_DENIED,
GENERAL_PROBLEM_SMS_TERMINATION_DENIED,
GENERAL_PROBLEM_SUPPLEMENTARY_SERVICE_NOT_SUPPORTED,
GENERAL_PROBLEM_SMS_NOT_SUPPORTED,
GENERAL_PROBLEM_MISSING_EXPECTED_PARAMETER,
GENERAL_PROBLEM_MISSING_MANDATORY_PARAMETER,
GENERAL_PROBLEM_UNRECOGNIZED_PARAMETER_VALUE,
GENERAL_PROBLEM_UNEXPECTED_PARAMETER_VALUE,
GENERAL_PROBLEM_USER_DATA_SIZE_ERROR,
GENERAL_PROBLEM_OTHER,
TEMPORARY_NETWORK_PROBLEM_ADDRESS_VACANT,
TEMPORARY_NETWORK_PROBLEM_ADDRESS_TRANSLATION_FAILURE,
TEMPORARY_NETWORK_PROBLEM_NETWORK_RESOURCE_OUTAGE,
TEMPORARY_NETWORK_PROBLEM_NETWORK_FAILURE,
TEMPORARY_NETWORK_PROBLEM_INVALID_TELESERVICE_ID,
TEMPORARY_NETWORK_PROBLEM_OTHER,
TEMPORARY_TERMINAL_PROBLEM_NO_PAGE_RESPONSE,
TEMPORARY_TERMINAL_PROBLEM_DESTINATION_BUSY,
TEMPORARY_TERMINAL_PROBLEM_NO_ACKNOWLEDGMENT,
TEMPORARY_TERMINAL_PROBLEM_DESTINATION_RESOURCE_SHORTAGE,
TEMPORARY_TERMINAL_PROBLEM_SMS_DELIVERY_POSTPONED,
TEMPORARY_TERMINAL_PROBLEM_DESTINATION_OUT_OF_SERVICE,
TEMPORARY_TERMINAL_PROBLEM_DESTINATION_NO_LONGER_AT_THIS_ADDRESS,
TEMPORARY_TERMINAL_PROBLEM_OTHER,
TEMPORARY_RADIO_INTERFACE_PROBLEM_RESOURCE_SHORTAGE,
TEMPORARY_RADIO_INTERFACE_PROBLEM_INCOMPATIBILITY,
TEMPORARY_RADIO_INTERFACE_PROBLEM_OTHER,
TEMPORARY_GENERAL_PROBLEM_ENCODING,
TEMPORARY_GENERAL_PROBLEM_SMS_ORIGINATION_DENIED,
TEMPORARY_GENERAL_PROBLEM_SMS_TERMINATION_DENIED,
TEMPORARY_GENERAL_PROBLEM_SUPPLEMENTARY_SERVICE_NOT_SUPPORTED,
TEMPORARY_GENERAL_PROBLEM_SMS_NOT_SUPPORTED,
TEMPORARY_GENERAL_PROBLEM_MISSING_EXPECTED_PARAMETER,
TEMPORARY_GENERAL_PROBLEM_MISSING_MANDATORY_PARAMETER,
TEMPORARY_GENERAL_PROBLEM_UNRECOGNIZED_PARAMETER_VALUE,
TEMPORARY_GENERAL_PROBLEM_UNEXPECTED_PARAMETER_VALUE,
TEMPORARY_GENERAL_PROBLEM_USER_DATA_SIZE_ERROR,
TEMPORARY_GENERAL_PROBLEM_OTHER,
}
export namespace SmsPduType {
export const $gtype: GObject.GType;
}
enum SmsPduType {
UNKNOWN,
DELIVER,
SUBMIT,
STATUS_REPORT,
CDMA_DELIVER,
CDMA_SUBMIT,
CDMA_CANCELLATION,
CDMA_DELIVERY_ACKNOWLEDGEMENT,
CDMA_USER_ACKNOWLEDGEMENT,
CDMA_READ_ACKNOWLEDGEMENT,
}
export namespace SmsState {
export const $gtype: GObject.GType;
}
enum SmsState {
UNKNOWN,
STORED,
RECEIVING,
RECEIVED,
SENDING,
SENT,
}
export namespace SmsStorage {
export const $gtype: GObject.GType;
}
enum SmsStorage {
UNKNOWN,
SM,
ME,
MT,
SR,
BM,
TA,
}
export namespace SmsValidityType {
export const $gtype: GObject.GType;
}
enum SmsValidityType {
UNKNOWN,
RELATIVE,
ABSOLUTE,
ENHANCED,
}
/**
* This value may be specified in the 'profile-id' property When the user
* creates a new #MM3gppProfile, to indicate that the real profile id should
* be assigned by the device.
*/
const __3GPP_PROFILE_ID_UNKNOWN: number;
const BEARER_METHOD_CONNECT: string;
const BEARER_METHOD_DISCONNECT: string;
const BEARER_PROPERTY_BEARERTYPE: string;
const BEARER_PROPERTY_CONNECTED: string;
const BEARER_PROPERTY_CONNECTIONERROR: string;
const BEARER_PROPERTY_INTERFACE: string;
const BEARER_PROPERTY_IP4CONFIG: string;
const BEARER_PROPERTY_IP6CONFIG: string;
const BEARER_PROPERTY_IPTIMEOUT: string;
const BEARER_PROPERTY_MULTIPLEXED: string;
const BEARER_PROPERTY_PROFILEID: string;
const BEARER_PROPERTY_PROPERTIES: string;
const BEARER_PROPERTY_RELOADSTATSSUPPORTED: string;
const BEARER_PROPERTY_STATS: string;
const BEARER_PROPERTY_SUSPENDED: string;
const CALL_METHOD_ACCEPT: string;
const CALL_METHOD_DEFLECT: string;
const CALL_METHOD_HANGUP: string;
const CALL_METHOD_JOINMULTIPARTY: string;
const CALL_METHOD_LEAVEMULTIPARTY: string;
const CALL_METHOD_SENDDTMF: string;
const CALL_METHOD_START: string;
const CALL_PROPERTY_AUDIOFORMAT: string;
const CALL_PROPERTY_AUDIOPORT: string;
const CALL_PROPERTY_DIRECTION: string;
const CALL_PROPERTY_MULTIPARTY: string;
const CALL_PROPERTY_NUMBER: string;
const CALL_PROPERTY_STATE: string;
const CALL_PROPERTY_STATEREASON: string;
const CALL_SIGNAL_DTMFRECEIVED: string;
const CALL_SIGNAL_STATECHANGED: string;
const DBUS_ERROR_PREFIX: string;
const DBUS_INTERFACE: string;
const DBUS_INTERFACE_BEARER: string;
const DBUS_INTERFACE_CALL: string;
const DBUS_INTERFACE_MODEM: string;
const DBUS_INTERFACE_MODEM_FIRMWARE: string;
const DBUS_INTERFACE_MODEM_LOCATION: string;
const DBUS_INTERFACE_MODEM_MESSAGING: string;
const DBUS_INTERFACE_MODEM_MODEM3GPP: string;
const DBUS_INTERFACE_MODEM_MODEM3GPP_PROFILEMANAGER: string;
const DBUS_INTERFACE_MODEM_MODEM3GPP_USSD: string;
const DBUS_INTERFACE_MODEM_MODEMCDMA: string;
const DBUS_INTERFACE_MODEM_OMA: string;
const DBUS_INTERFACE_MODEM_SAR: string;
const DBUS_INTERFACE_MODEM_SIGNAL: string;
const DBUS_INTERFACE_MODEM_SIMPLE: string;
const DBUS_INTERFACE_MODEM_TIME: string;
const DBUS_INTERFACE_MODEM_VOICE: string;
const DBUS_INTERFACE_SIM: string;
const DBUS_INTERFACE_SMS: string;
const DBUS_PATH: string;
const DBUS_SERVICE: string;
/**
* Evaluates to the major version number of ModemManager which this source
* is compiled against.
*/
const MAJOR_VERSION: number;
const MANAGER_METHOD_INHIBITDEVICE: string;
const MANAGER_METHOD_REPORTKERNELEVENT: string;
const MANAGER_METHOD_SCANDEVICES: string;
const MANAGER_METHOD_SETLOGGING: string;
const MANAGER_PROPERTY_VERSION: string;
/**
* Evaluates to the micro version number of ModemManager which this source
* compiled against.
*/
const MICRO_VERSION: number;
/**
* Evaluates to the minor version number of ModemManager which this source
* is compiled against.
*/
const MINOR_VERSION: number;
/**
* Identifier for an unknown NID.
*/
const MODEM_CDMA_NID_UNKNOWN: number;
/**
* Identifier for an unknown SID.
*/
const MODEM_CDMA_SID_UNKNOWN: number;
const MODEM_FIRMWARE_METHOD_LIST: string;
const MODEM_FIRMWARE_METHOD_SELECT: string;
const MODEM_FIRMWARE_PROPERTY_UPDATESETTINGS: string;
const MODEM_LOCATION_METHOD_GETLOCATION: string;
const MODEM_LOCATION_METHOD_INJECTASSISTANCEDATA: string;
const MODEM_LOCATION_METHOD_SETGPSREFRESHRATE: string;
const MODEM_LOCATION_METHOD_SETSUPLSERVER: string;
const MODEM_LOCATION_METHOD_SETUP: string;
const MODEM_LOCATION_PROPERTY_ASSISTANCEDATASERVERS: string;
const MODEM_LOCATION_PROPERTY_CAPABILITIES: string;
const MODEM_LOCATION_PROPERTY_ENABLED: string;
const MODEM_LOCATION_PROPERTY_GPSREFRESHRATE: string;
const MODEM_LOCATION_PROPERTY_LOCATION: string;
const MODEM_LOCATION_PROPERTY_SIGNALSLOCATION: string;
const MODEM_LOCATION_PROPERTY_SUPLSERVER: string;
const MODEM_LOCATION_PROPERTY_SUPPORTEDASSISTANCEDATA: string;
const MODEM_MESSAGING_METHOD_CREATE: string;
const MODEM_MESSAGING_METHOD_DELETE: string;
const MODEM_MESSAGING_METHOD_LIST: string;
const MODEM_MESSAGING_PROPERTY_DEFAULTSTORAGE: string;
const MODEM_MESSAGING_PROPERTY_MESSAGES: string;
const MODEM_MESSAGING_PROPERTY_SUPPORTEDSTORAGES: string;
const MODEM_MESSAGING_SIGNAL_ADDED: string;
const MODEM_MESSAGING_SIGNAL_DELETED: string;
const MODEM_METHOD_COMMAND: string;
const MODEM_METHOD_CREATEBEARER: string;
const MODEM_METHOD_DELETEBEARER: string;
const MODEM_METHOD_ENABLE: string;
const MODEM_METHOD_FACTORYRESET: string;
const MODEM_METHOD_GETCELLINFO: string;
const MODEM_METHOD_LISTBEARERS: string;
const MODEM_METHOD_RESET: string;
const MODEM_METHOD_SETCURRENTBANDS: string;
const MODEM_METHOD_SETCURRENTCAPABILITIES: string;
const MODEM_METHOD_SETCURRENTMODES: string;
const MODEM_METHOD_SETPOWERSTATE: string;
const MODEM_METHOD_SETPRIMARYSIMSLOT: string;
const MODEM_MODEM3GPP_METHOD_DISABLEFACILITYLOCK: string;
const MODEM_MODEM3GPP_METHOD_REGISTER: string;
const MODEM_MODEM3GPP_METHOD_SCAN: string;
const MODEM_MODEM3GPP_METHOD_SETCARRIERLOCK: string;
const MODEM_MODEM3GPP_METHOD_SETEPSUEMODEOPERATION: string;
const MODEM_MODEM3GPP_METHOD_SETINITIALEPSBEARERSETTINGS: string;
const MODEM_MODEM3GPP_METHOD_SETNR5GREGISTRATIONSETTINGS: string;
const MODEM_MODEM3GPP_METHOD_SETPACKETSERVICESTATE: string;
const MODEM_MODEM3GPP_PROFILEMANAGER_METHOD_DELETE: string;
const MODEM_MODEM3GPP_PROFILEMANAGER_METHOD_LIST: string;
const MODEM_MODEM3GPP_PROFILEMANAGER_METHOD_SET: string;
const MODEM_MODEM3GPP_PROFILEMANAGER_PROPERTY_INDEXFIELD: string;
const MODEM_MODEM3GPP_PROFILEMANAGER_SIGNAL_UPDATED: string;
const MODEM_MODEM3GPP_PROPERTY_ENABLEDFACILITYLOCKS: string;
const MODEM_MODEM3GPP_PROPERTY_EPSUEMODEOPERATION: string;
const MODEM_MODEM3GPP_PROPERTY_IMEI: string;
const MODEM_MODEM3GPP_PROPERTY_INITIALEPSBEARER: string;
const MODEM_MODEM3GPP_PROPERTY_INITIALEPSBEARERSETTINGS: string;
const MODEM_MODEM3GPP_PROPERTY_NR5GREGISTRATIONSETTINGS: string;
const MODEM_MODEM3GPP_PROPERTY_OPERATORCODE: string;
const MODEM_MODEM3GPP_PROPERTY_OPERATORNAME: string;
const MODEM_MODEM3GPP_PROPERTY_PACKETSERVICESTATE: string;
const MODEM_MODEM3GPP_PROPERTY_PCO: string;
const MODEM_MODEM3GPP_PROPERTY_REGISTRATIONSTATE: string;
const MODEM_MODEM3GPP_PROPERTY_SUBSCRIPTIONSTATE: string;
const MODEM_MODEM3GPP_USSD_METHOD_CANCEL: string;
const MODEM_MODEM3GPP_USSD_METHOD_INITIATE: string;
const MODEM_MODEM3GPP_USSD_METHOD_RESPOND: string;
const MODEM_MODEM3GPP_USSD_PROPERTY_NETWORKNOTIFICATION: string;
const MODEM_MODEM3GPP_USSD_PROPERTY_NETWORKREQUEST: string;
const MODEM_MODEM3GPP_USSD_PROPERTY_STATE: string;
const MODEM_MODEMCDMA_METHOD_ACTIVATE: string;
const MODEM_MODEMCDMA_METHOD_ACTIVATEMANUAL: string;
const MODEM_MODEMCDMA_PROPERTY_ACTIVATIONSTATE: string;
const MODEM_MODEMCDMA_PROPERTY_CDMA1XREGISTRATIONSTATE: string;
const MODEM_MODEMCDMA_PROPERTY_ESN: string;
const MODEM_MODEMCDMA_PROPERTY_EVDOREGISTRATIONSTATE: string;
const MODEM_MODEMCDMA_PROPERTY_MEID: string;
const MODEM_MODEMCDMA_PROPERTY_NID: string;
const MODEM_MODEMCDMA_PROPERTY_SID: string;
const MODEM_MODEMCDMA_SIGNAL_ACTIVATIONSTATECHANGED: string;
const MODEM_OMA_METHOD_ACCEPTNETWORKINITIATEDSESSION: string;
const MODEM_OMA_METHOD_CANCELSESSION: string;
const MODEM_OMA_METHOD_SETUP: string;
const MODEM_OMA_METHOD_STARTCLIENTINITIATEDSESSION: string;
const MODEM_OMA_PROPERTY_FEATURES: string;
const MODEM_OMA_PROPERTY_PENDINGNETWORKINITIATEDSESSIONS: string;
const MODEM_OMA_PROPERTY_SESSIONSTATE: string;
const MODEM_OMA_PROPERTY_SESSIONTYPE: string;
const MODEM_OMA_SIGNAL_SESSIONSTATECHANGED: string;
const MODEM_PROPERTY_ACCESSTECHNOLOGIES: string;
const MODEM_PROPERTY_BEARERS: string;
const MODEM_PROPERTY_CARRIERCONFIGURATION: string;
const MODEM_PROPERTY_CARRIERCONFIGURATIONREVISION: string;
const MODEM_PROPERTY_CURRENTBANDS: string;
const MODEM_PROPERTY_CURRENTCAPABILITIES: string;
const MODEM_PROPERTY_CURRENTMODES: string;
const MODEM_PROPERTY_DEVICE: string;
const MODEM_PROPERTY_DEVICEIDENTIFIER: string;
const MODEM_PROPERTY_DRIVERS: string;
const MODEM_PROPERTY_EQUIPMENTIDENTIFIER: string;
const MODEM_PROPERTY_HARDWAREREVISION: string;
const MODEM_PROPERTY_MANUFACTURER: string;
const MODEM_PROPERTY_MAXACTIVEBEARERS: string;
const MODEM_PROPERTY_MAXACTIVEMULTIPLEXEDBEARERS: string;
const MODEM_PROPERTY_MAXBEARERS: string;
const MODEM_PROPERTY_MODEL: string;
const MODEM_PROPERTY_OWNNUMBERS: string;
const MODEM_PROPERTY_PHYSDEV: string;
const MODEM_PROPERTY_PLUGIN: string;
const MODEM_PROPERTY_PORTS: string;
const MODEM_PROPERTY_POWERSTATE: string;
const MODEM_PROPERTY_PRIMARYPORT: string;
const MODEM_PROPERTY_PRIMARYSIMSLOT: string;
const MODEM_PROPERTY_REVISION: string;
const MODEM_PROPERTY_SIGNALQUALITY: string;
const MODEM_PROPERTY_SIM: string;
const MODEM_PROPERTY_SIMSLOTS: string;
const MODEM_PROPERTY_STATE: string;
const MODEM_PROPERTY_STATEFAILEDREASON: string;
const MODEM_PROPERTY_SUPPORTEDBANDS: string;
const MODEM_PROPERTY_SUPPORTEDCAPABILITIES: string;
const MODEM_PROPERTY_SUPPORTEDIPFAMILIES: string;
const MODEM_PROPERTY_SUPPORTEDMODES: string;
const MODEM_PROPERTY_UNLOCKREQUIRED: string;
const MODEM_PROPERTY_UNLOCKRETRIES: string;
const MODEM_SAR_METHOD_ENABLE: string;
const MODEM_SAR_METHOD_SETPOWERLEVEL: string;
const MODEM_SAR_PROPERTY_POWERLEVEL: string;
const MODEM_SAR_PROPERTY_STATE: string;
const MODEM_SIGNAL_METHOD_SETUP: string;
const MODEM_SIGNAL_METHOD_SETUPTHRESHOLDS: string;
const MODEM_SIGNAL_PROPERTY_CDMA: string;
const MODEM_SIGNAL_PROPERTY_ERRORRATETHRESHOLD: string;
const MODEM_SIGNAL_PROPERTY_EVDO: string;
const MODEM_SIGNAL_PROPERTY_GSM: string;
const MODEM_SIGNAL_PROPERTY_LTE: string;
const MODEM_SIGNAL_PROPERTY_NR5G: string;
const MODEM_SIGNAL_PROPERTY_RATE: string;
const MODEM_SIGNAL_PROPERTY_RSSITHRESHOLD: string;
const MODEM_SIGNAL_PROPERTY_UMTS: string;
const MODEM_SIGNAL_STATECHANGED: string;
const MODEM_SIMPLE_METHOD_CONNECT: string;
const MODEM_SIMPLE_METHOD_DISCONNECT: string;
const MODEM_SIMPLE_METHOD_GETSTATUS: string;
const MODEM_TIME_METHOD_GETNETWORKTIME: string;
const MODEM_TIME_PROPERTY_NETWORKTIMEZONE: string;
const MODEM_TIME_SIGNAL_NETWORKTIMECHANGED: string;
const MODEM_VOICE_METHOD_CALLWAITINGQUERY: string;
const MODEM_VOICE_METHOD_CALLWAITINGSETUP: string;
const MODEM_VOICE_METHOD_CREATECALL: string;
const MODEM_VOICE_METHOD_DELETECALL: string;
const MODEM_VOICE_METHOD_HANGUPALL: string;
const MODEM_VOICE_METHOD_HANGUPANDACCEPT: string;
const MODEM_VOICE_METHOD_HOLDANDACCEPT: string;
const MODEM_VOICE_METHOD_LISTCALLS: string;
const MODEM_VOICE_METHOD_TRANSFER: string;
const MODEM_VOICE_PROPERTY_CALLS: string;
const MODEM_VOICE_PROPERTY_EMERGENCYONLY: string;
const MODEM_VOICE_SIGNAL_CALLADDED: string;
const MODEM_VOICE_SIGNAL_CALLDELETED: string;
const SIMPLE_PROPERTY_3GPP_OPERATOR_CODE: string;
const SIMPLE_PROPERTY_3GPP_OPERATOR_NAME: string;
const SIMPLE_PROPERTY_3GPP_REGISTRATION_STATE: string;
const SIMPLE_PROPERTY_3GPP_SUBSCRIPTION_STATE: string;
const SIMPLE_PROPERTY_ACCESS_TECHNOLOGIES: string;
const SIMPLE_PROPERTY_CDMA_CDMA1X_REGISTRATION_STATE: string;
const SIMPLE_PROPERTY_CDMA_EVDO_REGISTRATION_STATE: string;
const SIMPLE_PROPERTY_CDMA_NID: string;
const SIMPLE_PROPERTY_CDMA_SID: string;
const SIMPLE_PROPERTY_CURRENT_BANDS: string;
const SIMPLE_PROPERTY_SIGNAL_QUALITY: string;
const SIMPLE_PROPERTY_STATE: string;
const SIM_METHOD_CHANGEPIN: string;
const SIM_METHOD_ENABLEPIN: string;
const SIM_METHOD_SENDPIN: string;
const SIM_METHOD_SENDPUK: string;
const SIM_METHOD_SETPREFERREDNETWORKS: string;
const SIM_PROPERTY_ACTIVE: string;
const SIM_PROPERTY_EID: string;
const SIM_PROPERTY_EMERGENCYNUMBERS: string;
const SIM_PROPERTY_ESIMSTATUS: string;
const SIM_PROPERTY_GID1: string;
const SIM_PROPERTY_GID2: string;
const SIM_PROPERTY_IMSI: string;
const SIM_PROPERTY_OPERATORIDENTIFIER: string;
const SIM_PROPERTY_OPERATORNAME: string;
const SIM_PROPERTY_PREFERREDNETWORKS: string;
const SIM_PROPERTY_REMOVABILITY: string;
const SIM_PROPERTY_SIMIDENTIFIER: string;
const SIM_PROPERTY_SIMTYPE: string;
const SMS_METHOD_SEND: string;
const SMS_METHOD_STORE: string;
const SMS_PROPERTY_CLASS: string;
const SMS_PROPERTY_DATA: string;
const SMS_PROPERTY_DELIVERYREPORTREQUEST: string;
const SMS_PROPERTY_DELIVERYSTATE: string;
const SMS_PROPERTY_DISCHARGETIMESTAMP: string;
const SMS_PROPERTY_MESSAGEREFERENCE: string;
const SMS_PROPERTY_NUMBER: string;
const SMS_PROPERTY_PDUTYPE: string;
const SMS_PROPERTY_SERVICECATEGORY: string;
const SMS_PROPERTY_SMSC: string;
const SMS_PROPERTY_STATE: string;
const SMS_PROPERTY_STORAGE: string;
const SMS_PROPERTY_TELESERVICEID: string;
const SMS_PROPERTY_TEXT: string;
const SMS_PROPERTY_TIMESTAMP: string;
const SMS_PROPERTY_VALIDITY: string;
/**
* Identifier for reporting unknown unlock retries.
*/
const UNLOCK_RETRIES_UNKNOWN: number;
/**
* Gets the nickname string for the #MMBearerAccessTypePreference specified at `val`.
* @param val a MMBearerAccessTypePreference.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function bearer_access_type_preference_get_string(val: BearerAccessTypePreference | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMBearerAllowedAuth in `mask`.
* @param mask bitmask of MMBearerAllowedAuth values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function bearer_allowed_auth_build_string_from_mask(mask: BearerAllowedAuth | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMBearerApnType in `mask`.
* @param mask bitmask of MMBearerApnType values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function bearer_apn_type_build_string_from_mask(mask: BearerApnType | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMBearerIpFamily in `mask`.
* @param mask bitmask of MMBearerIpFamily values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function bearer_ip_family_build_string_from_mask(mask: BearerIpFamily | null): string;
/**
* Gets the nickname string for the #MMBearerIpMethod specified at `val`.
* @param val a MMBearerIpMethod.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function bearer_ip_method_get_string(val: BearerIpMethod | null): string;
/**
* Gets the nickname string for the #MMBearerMultiplexSupport specified at `val`.
* @param val a MMBearerMultiplexSupport.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function bearer_multiplex_support_get_string(val: BearerMultiplexSupport | null): string;
/**
* Gets the nickname string for the #MMBearerProfileSource specified at `val`.
* @param val a MMBearerProfileSource.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function bearer_profile_source_get_string(val: BearerProfileSource | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMBearerRoamingAllowance in `mask`.
* @param mask bitmask of MMBearerRoamingAllowance values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function bearer_roaming_allowance_build_string_from_mask(mask: BearerRoamingAllowance | null): string;
/**
* Gets the nickname string for the #MMBearerType specified at `val`.
* @param val a MMBearerType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function bearer_type_get_string(val: BearerType | null): string;
/**
* Gets the nickname string for the #MMCallDirection specified at `val`.
* @param val a MMCallDirection.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function call_direction_get_string(val: CallDirection | null): string;
/**
* Gets the nickname string for the #MMCallState specified at `val`.
* @param val a MMCallState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function call_state_get_string(val: CallState | null): string;
/**
* Gets the nickname string for the #MMCallStateReason specified at `val`.
* @param val a MMCallStateReason.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function call_state_reason_get_string(val: CallStateReason | null): string;
function cdma_activation_error_quark(): GLib.Quark;
/**
* Gets the nickname string for the #MMCellType specified at `val`.
* @param val a MMCellType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function cell_type_get_string(val: CellType | null): string;
function connection_error_quark(): GLib.Quark;
function core_error_quark(): GLib.Quark;
/**
* Gets the nickname string for the #MMFirmwareImageType specified at `val`.
* @param val a MMFirmwareImageType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function firmware_image_type_get_string(val: FirmwareImageType | null): string;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Bearer D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_bearer_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusBearer interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_bearer_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Call D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_call_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusCall interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_call_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem3gpp_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModem3gpp interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem3gpp_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem3gpp_profile_manager_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModem3gppProfileManager interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem3gpp_profile_manager_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem3gpp_ussd_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModem3gppUssd interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem3gpp_ussd_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.ModemCdma D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_cdma_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemCdma interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_cdma_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Firmware D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_firmware_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemFirmware interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_firmware_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_interface_info(): Gio.DBusInterfaceInfo;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Location D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_location_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemLocation interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_location_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Messaging D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_messaging_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemMessaging interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_messaging_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Oma D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_oma_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemOma interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_oma_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Overrides all #GObject properties in the #MmGdbusModem interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Sar D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_sar_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemSar interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_sar_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Signal D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_signal_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemSignal interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_signal_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Simple D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_simple_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemSimple interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_simple_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Time D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_time_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemTime interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_time_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Voice D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_modem_voice_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusModemVoice interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_modem_voice_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1 D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_org_freedesktop_modem_manager1_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusOrgFreedesktopModemManager1 interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_org_freedesktop_modem_manager1_override_properties(
klass: typeof GObject.Object,
property_id_begin: number,
): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Sim D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_sim_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusSim interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_sim_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
/**
* Gets a machine-readable description of the org.freedesktop.ModemManager1.Sms D-Bus interface.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
function gdbus_sms_interface_info(): Gio.DBusInterfaceInfo;
/**
* Overrides all #GObject properties in the #MmGdbusSms interface for a concrete class.
* The properties are overridden in the order they are defined.
* @param klass The class structure for a #GObject derived class.
* @param property_id_begin The property id to assign to the first overridden property.
* @returns The last property id.
*/
function gdbus_sms_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
function message_error_quark(): GLib.Quark;
function mobile_equipment_error_quark(): GLib.Quark;
/**
* Gets the nickname string for the #MMModem3gppDrxCycle specified at `val`.
* @param val a MMModem3gppDrxCycle.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_drx_cycle_get_string(val: Modem3gppDrxCycle | null): string;
/**
* Gets the nickname string for the #MMModem3gppEpsUeModeOperation specified at `val`.
* @param val a MMModem3gppEpsUeModeOperation.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_eps_ue_mode_operation_get_string(val: Modem3gppEpsUeModeOperation | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModem3gppFacility in `mask`.
* @param mask bitmask of MMModem3gppFacility values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_3gpp_facility_build_string_from_mask(mask: Modem3gppFacility | null): string;
/**
* Gets the nickname string for the #MMModem3gppMicoMode specified at `val`.
* @param val a MMModem3gppMicoMode.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_mico_mode_get_string(val: Modem3gppMicoMode | null): string;
/**
* Gets the nickname string for the #MMModem3gppNetworkAvailability specified at `val`.
* @param val a MMModem3gppNetworkAvailability.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_network_availability_get_string(val: Modem3gppNetworkAvailability | null): string;
/**
* Gets the nickname string for the #MMModem3gppPacketServiceState specified at `val`.
* @param val a MMModem3gppPacketServiceState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_packet_service_state_get_string(val: Modem3gppPacketServiceState | null): string;
/**
* Gets the nickname string for the #MMModem3gppRegistrationState specified at `val`.
* @param val a MMModem3gppRegistrationState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_registration_state_get_string(val: Modem3gppRegistrationState | null): string;
/**
* Gets the nickname string for the #MMModem3gppSubscriptionState specified at `val`.
* @param val a MMModem3gppSubscriptionState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_subscription_state_get_string(val: Modem3gppSubscriptionState | null): string;
/**
* Gets the nickname string for the #MMModem3gppUssdSessionState specified at `val`.
* @param val a MMModem3gppUssdSessionState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_3gpp_ussd_session_state_get_string(val: Modem3gppUssdSessionState | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemAccessTechnology in `mask`.
* @param mask bitmask of MMModemAccessTechnology values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_access_technology_build_string_from_mask(mask: ModemAccessTechnology | null): string;
/**
* Gets the nickname string for the #MMModemBand specified at `val`.
* @param val a MMModemBand.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_band_get_string(val: ModemBand | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemCapability in `mask`.
* @param mask bitmask of MMModemCapability values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_capability_build_string_from_mask(mask: ModemCapability | null): string;
/**
* Gets the nickname string for the #MMModemCdmaActivationState specified at `val`.
* @param val a MMModemCdmaActivationState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_cdma_activation_state_get_string(val: ModemCdmaActivationState | null): string;
/**
* Gets the nickname string for the #MMModemCdmaRegistrationState specified at `val`.
* @param val a MMModemCdmaRegistrationState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_cdma_registration_state_get_string(val: ModemCdmaRegistrationState | null): string;
/**
* Gets the nickname string for the #MMModemCdmaRmProtocol specified at `val`.
* @param val a MMModemCdmaRmProtocol.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_cdma_rm_protocol_get_string(val: ModemCdmaRmProtocol | null): string;
/**
* Gets the nickname string for the #MMModemContactsStorage specified at `val`.
* @param val a MMModemContactsStorage.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_contacts_storage_get_string(val: ModemContactsStorage | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemFirmwareUpdateMethod in `mask`.
* @param mask bitmask of MMModemFirmwareUpdateMethod values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_firmware_update_method_build_string_from_mask(mask: ModemFirmwareUpdateMethod | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemLocationAssistanceDataType in `mask`.
* @param mask bitmask of MMModemLocationAssistanceDataType values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_location_assistance_data_type_build_string_from_mask(
mask: ModemLocationAssistanceDataType | null,
): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemLocationSource in `mask`.
* @param mask bitmask of MMModemLocationSource values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_location_source_build_string_from_mask(mask: ModemLocationSource | null): string;
/**
* Gets the nickname string for the #MMModemLock specified at `val`.
* @param val a MMModemLock.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_lock_get_string(val: ModemLock | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMModemMode in `mask`.
* @param mask bitmask of MMModemMode values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function modem_mode_build_string_from_mask(mask: ModemMode | null): string;
/**
* Gets the nickname string for the #MMModemPortType specified at `val`.
* @param val a MMModemPortType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_port_type_get_string(val: ModemPortType | null): string;
/**
* Gets the nickname string for the #MMModemPowerState specified at `val`.
* @param val a MMModemPowerState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_power_state_get_string(val: ModemPowerState | null): string;
/**
* Gets the nickname string for the #MMModemStateChangeReason specified at `val`.
* @param val a MMModemStateChangeReason.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_state_change_reason_get_string(val: ModemStateChangeReason | null): string;
/**
* Gets the nickname string for the #MMModemStateFailedReason specified at `val`.
* @param val a MMModemStateFailedReason.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_state_failed_reason_get_string(val: ModemStateFailedReason | null): string;
/**
* Gets the nickname string for the #MMModemState specified at `val`.
* @param val a MMModemState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function modem_state_get_string(val: ModemState | null): string;
/**
* Builds a string containing a comma-separated list of nicknames for
* each #MMOmaFeature in `mask`.
* @param mask bitmask of MMOmaFeature values.
* @returns a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
function oma_feature_build_string_from_mask(mask: OmaFeature | null): string;
/**
* Gets the nickname string for the #MMOmaSessionStateFailedReason specified at `val`.
* @param val a MMOmaSessionStateFailedReason.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function oma_session_state_failed_reason_get_string(val: OmaSessionStateFailedReason | null): string;
/**
* Gets the nickname string for the #MMOmaSessionState specified at `val`.
* @param val a MMOmaSessionState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function oma_session_state_get_string(val: OmaSessionState | null): string;
/**
* Gets the nickname string for the #MMOmaSessionType specified at `val`.
* @param val a MMOmaSessionType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function oma_session_type_get_string(val: OmaSessionType | null): string;
function serial_error_quark(): GLib.Quark;
/**
* Gets the nickname string for the #MMServingCellType specified at `val`.
* @param val a MMServingCellType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function serving_cell_type_get_string(val: ServingCellType | null): string;
/**
* Gets the nickname string for the #MMSimEsimStatus specified at `val`.
* @param val a MMSimEsimStatus.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sim_esim_status_get_string(val: SimEsimStatus | null): string;
/**
* Gets the nickname string for the #MMSimRemovability specified at `val`.
* @param val a MMSimRemovability.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sim_removability_get_string(val: SimRemovability | null): string;
/**
* Gets the nickname string for the #MMSimType specified at `val`.
* @param val a MMSimType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sim_type_get_string(val: SimType | null): string;
/**
* Gets the nickname string for the #MMSmsCdmaServiceCategory specified at `val`.
* @param val a MMSmsCdmaServiceCategory.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_cdma_service_category_get_string(val: SmsCdmaServiceCategory | null): string;
/**
* Gets the nickname string for the #MMSmsCdmaTeleserviceId specified at `val`.
* @param val a MMSmsCdmaTeleserviceId.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_cdma_teleservice_id_get_string(val: SmsCdmaTeleserviceId | null): string;
/**
* Gets the nickname string for the #MMSmsDeliveryState specified at `val`.
* @param val a MMSmsDeliveryState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_delivery_state_get_string(val: SmsDeliveryState | null): string;
/**
* Gets the nickname string for the #MMSmsPduType specified at `val`.
* @param val a MMSmsPduType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_pdu_type_get_string(val: SmsPduType | null): string;
/**
* Gets the nickname string for the #MMSmsState specified at `val`.
* @param val a MMSmsState.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_state_get_string(val: SmsState | null): string;
/**
* Gets the nickname string for the #MMSmsStorage specified at `val`.
* @param val a MMSmsStorage.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_storage_get_string(val: SmsStorage | null): string;
/**
* Gets the nickname string for the #MMSmsValidityType specified at `val`.
* @param val a MMSmsValidityType.
* @returns a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
function sms_validity_type_get_string(val: SmsValidityType | null): string;
interface UnlockRetriesForeachCb {
(lock: ModemLock, count: number): void;
}
export namespace __3gppProfileCmpFlags {
export const $gtype: GObject.GType<__3gppProfileCmpFlags>;
}
enum __3gppProfileCmpFlags {
NONE,
NO_PROFILE_ID,
NO_PROFILE_NAME,
NO_AUTH,
NO_APN_TYPE,
NO_IP_TYPE,
NO_ACCESS_TYPE_PREFERENCE,
NO_ENABLED,
NO_ROAMING_ALLOWANCE,
NO_PROFILE_SOURCE,
}
export namespace BearerAllowedAuth {
export const $gtype: GObject.GType;
}
enum BearerAllowedAuth {
UNKNOWN,
NONE,
PAP,
CHAP,
MSCHAP,
MSCHAPV2,
EAP,
}
export namespace BearerApnType {
export const $gtype: GObject.GType;
}
enum BearerApnType {
NONE,
INITIAL,
DEFAULT,
IMS,
MMS,
MANAGEMENT,
VOICE,
EMERGENCY,
PRIVATE,
PURCHASE,
VIDEO_SHARE,
LOCAL,
APP,
XCAP,
TETHERING,
}
export namespace BearerIpFamily {
export const $gtype: GObject.GType;
}
enum BearerIpFamily {
NONE,
IPV4,
IPV6,
IPV4V6,
NON_IP,
ANY,
}
export namespace BearerPropertiesCmpFlags {
export const $gtype: GObject.GType;
}
enum BearerPropertiesCmpFlags {
NONE,
LOOSE,
NO_PASSWORD,
NO_ALLOW_ROAMING,
NO_RM_PROTOCOL,
NO_APN_TYPE,
NO_PROFILE_ID,
NO_PROFILE_NAME,
NO_ACCESS_TYPE_PREFERENCE,
NO_ROAMING_ALLOWANCE,
}
export namespace BearerRoamingAllowance {
export const $gtype: GObject.GType;
}
enum BearerRoamingAllowance {
NONE,
HOME,
PARTNER,
NON_PARTNER,
}
export namespace Modem3gppFacility {
export const $gtype: GObject.GType;
}
enum Modem3gppFacility {
NONE,
SIM,
FIXED_DIALING,
PH_SIM,
PH_FSIM,
NET_PERS,
NET_SUB_PERS,
PROVIDER_PERS,
CORP_PERS,
}
export namespace ModemAccessTechnology {
export const $gtype: GObject.GType;
}
enum ModemAccessTechnology {
UNKNOWN,
POTS,
GSM,
GSM_COMPACT,
GPRS,
EDGE,
UMTS,
HSDPA,
HSUPA,
HSPA,
HSPA_PLUS,
'1XRTT',
EVDO0,
EVDOA,
EVDOB,
LTE,
'5GNR',
LTE_CAT_M,
LTE_NB_IOT,
ANY,
}
export namespace ModemCapability {
export const $gtype: GObject.GType;
}
enum ModemCapability {
NONE,
POTS,
CDMA_EVDO,
GSM_UMTS,
LTE,
IRIDIUM,
'5GNR',
TDS,
ANY,
}
export namespace ModemFirmwareUpdateMethod {
export const $gtype: GObject.GType;
}
enum ModemFirmwareUpdateMethod {
NONE,
FASTBOOT,
QMI_PDC,
MBIM_QDU,
FIREHOSE,
SAHARA,
}
export namespace ModemLocationAssistanceDataType {
export const $gtype: GObject.GType;
}
enum ModemLocationAssistanceDataType {
NONE,
XTRA,
}
export namespace ModemLocationSource {
export const $gtype: GObject.GType;
}
enum ModemLocationSource {
NONE,
'3GPP_LAC_CI',
GPS_RAW,
GPS_NMEA,
CDMA_BS,
GPS_UNMANAGED,
AGPS_MSA,
AGPS_MSB,
}
export namespace ModemMode {
export const $gtype: GObject.GType;
}
enum ModemMode {
NONE,
CS,
'2G',
'3G',
'4G',
'5G',
ANY,
}
export namespace OmaFeature {
export const $gtype: GObject.GType;
}
enum OmaFeature {
NONE,
DEVICE_PROVISIONING,
PRL_UPDATE,
HANDS_FREE_ACTIVATION,
}
namespace __3gppProfile {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MM3gppProfile structure contains private data and should
* only be accessed using the provided API.
*/
class __3gppProfile extends GObject.Object {
static $gtype: GObject.GType<__3gppProfile>;
// Constructors
constructor(properties?: Partial<__3gppProfile.ConstructorProps>, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): __3gppProfile;
// Methods
consume_string(key: string, value: string): boolean;
consume_variant(key: string, value: GLib.Variant): boolean;
/**
* Gets 5G network access type preference.
* @returns a #MMBearerAccessTypePreference.
*/
get_access_type_preference(): BearerAccessTypePreference;
/**
* Gets the methods allowed to use when authenticating with the access point.
* @returns a bitmask of #MMBearerAllowedAuth values, or %MM_BEARER_ALLOWED_AUTH_UNKNOWN to request the modem-default method.
*/
get_allowed_auth(): BearerAllowedAuth;
/**
* Gets the name of the access point.
* @returns the access point, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_apn(): string;
/**
* Gets the APN types to use.
* @returns a mask of #MMBearerApnType values.
*/
get_apn_type(): BearerApnType;
/**
* Checks whether the profile is enabled or disabled.
* @returns %TRUE if the profile is enabled, %FALSE otherwise.
*/
get_enabled(): boolean;
/**
* Gets the IP type to use.
* @returns a #MMBearerIpFamily.
*/
get_ip_type(): BearerIpFamily;
/**
* Gets the password used to authenticate with the access point.
* @returns the password, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_password(): string;
/**
* Gets the profile id.
* @returns the profile id..
*/
get_profile_id(): number;
/**
* Gets the name of the profile.
* @returns the profile name, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_profile_name(): string;
/**
* Gets the profile source.
* @returns a #MMBearerProfileSource.
*/
get_profile_source(): BearerProfileSource;
/**
* Gets the roaming allowance rules.
* @returns a mask of #MMBearerRoamingAllowance values.
*/
get_roaming_allowance(): BearerRoamingAllowance;
/**
* Gets the username used to authenticate with the access point.
* @returns the username, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_user(): string;
/**
* Sets the 5G network access type preference.
* @param access_type_preference a #MMBearerAccessTypePreference.
*/
set_access_type_preference(access_type_preference: BearerAccessTypePreference | null): void;
/**
* Sets the method to use when authenticating with the access point.
* @param allowed_auth a bitmask of #MMBearerAllowedAuth values. %MM_BEARER_ALLOWED_AUTH_UNKNOWN may be given to request the modem-default method.
*/
set_allowed_auth(allowed_auth: BearerAllowedAuth | null): void;
/**
* Sets the name of the access point to use.
* @param apn Name of the access point.
*/
set_apn(apn: string): void;
/**
* Sets the APN types to use.
* @param apn_type a mask of #MMBearerApnType values.
*/
set_apn_type(apn_type: BearerApnType | null): void;
/**
* Sets the flag to indicate whether the profile is enabled or disabled.
* @param enabled boolean value.
*/
set_enabled(enabled: boolean): void;
/**
* Sets the IP type to use.
* @param ip_type a #MMBearerIpFamily.
*/
set_ip_type(ip_type: BearerIpFamily | null): void;
/**
* Sets the password used to authenticate with the access point.
* @param password the password
*/
set_password(password: string): void;
/**
* Sets the profile id to use.
*
* If none specified explicitly, #MM_3GPP_PROFILE_ID_UNKNOWN is assumed.
* @param profile_id Numeric profile id to use, or #MM_3GPP_PROFILE_ID_UNKNOWN.
*/
set_profile_id(profile_id: number): void;
/**
* Sets the name of the profile.
* @param profile_name Name of the profile.
*/
set_profile_name(profile_name: string): void;
/**
* Sets profile source.
* @param profile_source a #MMBearerProfileSource.
*/
set_profile_source(profile_source: BearerProfileSource | null): void;
/**
* Sets the roaming allowance rules.
* @param roaming_allowance a mask of #MMBearerRoamingAllowance values.
*/
set_roaming_allowance(roaming_allowance: BearerRoamingAllowance | null): void;
/**
* Sets the username used to authenticate with the access point.
* @param user the username
*/
set_user(user: string): void;
}
namespace Bearer {
// Constructor properties interface
interface ConstructorProps
extends GdbusBearerProxy.ConstructorProps,
Gio.AsyncInitable.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
Gio.Initable.ConstructorProps,
GdbusBearer.ConstructorProps {}
}
/**
* The #MMBearer structure contains private data and should only be accessed
* using the provided API.
*/
class Bearer
extends GdbusBearerProxy
implements Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, GdbusBearer
{
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Asynchronously requests activation of a packet data connection with the
* network using this #MMBearer properties.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_connect_finish() to get the result of the operation.
*
* See mm_bearer_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
connect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests activation of a packet data connection with the
* network using this #MMBearer properties.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_connect_finish() to get the result of the operation.
*
* See mm_bearer_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
connect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously requests activation of a packet data connection with the
* network using this #MMBearer properties.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_connect_finish() to get the result of the operation.
*
* See mm_bearer_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
connect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
connect(...args: never[]): any;
/**
* Finishes an operation started with mm_bearer_connect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_bearer_connect().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
connect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests activation of a packet data connection with the
* network using this #MMBearer properties.
*
* The calling thread is blocked until a reply is received.
* See mm_bearer_connect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
connect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Synchronously requests disconnection and deactivation of the packet data
* connection.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_disconnect_finish() to get the result of the operation.
*
* See mm_bearer_disconnect_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
*/
disconnect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Synchronously requests disconnection and deactivation of the packet data
* connection.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_disconnect_finish() to get the result of the operation.
*
* See mm_bearer_disconnect_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
disconnect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Synchronously requests disconnection and deactivation of the packet data
* connection.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_bearer_disconnect_finish() to get the result of the operation.
*
* See mm_bearer_disconnect_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
disconnect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
// Conflicted with GObject.Object.disconnect
disconnect(...args: never[]): any;
/**
* Finishes an operation started with mm_bearer_disconnect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_bearer_disconnect().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
disconnect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests disconnection and deactivation of the packet data
* connection.
*
* The calling thread is blocked until a reply is received.
* See mm_bearer_disconnect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
disconnect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Gets a copy of the operating system name for the network data interface that
* provides packet data using this #MMBearer. This will only be available once
* the #MMBearer is in connected state.
* @returns The name of the interface, or %NULL if it couldn't be retrieved. The returned value should be freed with g_free().
*/
dup_interface(): string;
/**
* Gets a copy of the DBus path of the #MMBearer object.
* @returns The DBus path of the #MMBearer object. The returned value should be freed with g_free().
*/
dup_path(): string;
/**
* Gets the type of bearer.
* @returns a #MMBearerType.
*/
get_bearer_type(): BearerType;
/**
* Checks whether or not the #MMBearer is connected and thus whether packet data
* communication is possible.
* @returns %TRUE if the #MMBearer is connected, #FALSE otherwise.
*/
get_connected(): boolean;
/**
* Gets a #GError specifying the connection error details, if any.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_bearer_get_connection_error() again to get a new #GError with the
* new values.
* @returns A #GError that must be freed with g_error_free() or %NULL if none.
*/
get_connection_error(): GLib.Error;
/**
* Gets the operating system name for the network data interface that provides
* packet data using this #MMBearer. This will only be available once the #MMBearer
* is in connected state.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_dup_interface() if on another
* thread.
* @returns The name of the interface, or %NULL if it couldn't be retrieved.
*/
get_interface(): string;
/**
* Gets the maximum time to wait for the bearer to retrieve a valid IP address.
* @returns The IP timeout, or 0 if no specific one given.
*/
get_ip_timeout(): number;
/**
* Gets a #MMBearerIpConfig object specifying the IPv4 configuration to use in
* the bearer.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_bearer_get_ipv4_config() again to get a new #MMBearerIpConfig with the
* new values.
* @returns A #MMBearerIpConfig that must be freed with g_object_unref() or %NULL if unknown.
*/
get_ipv4_config(): BearerIpConfig;
/**
* Gets a #MMBearerIpConfig object specifying the IPv6 configuration to use in
* the bearer.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_bearer_get_ipv6_config() again to get a new #MMBearerIpConfig with the
* new values.
* @returns A #MMBearerIpConfig that must be freed with g_object_unref() or %NULL if unknown.
*/
get_ipv6_config(): BearerIpConfig;
/**
* Checks whether or not the #MMBearer is connected through a multiplexed
* network likn.
* @returns %TRUE if packet data service is connected via a multiplexed network link in the #MMBearer, #FALSE otherwise.
*/
get_multiplexed(): boolean;
/**
* Gets the DBus path of the #MMBearer object.
* @returns The DBus path of the #MMBearer object.
*/
get_path(): string;
/**
* Gets profile ID associated to the bearer connection, if known.
*
* If the bearer is disconnected or the modem doesn't support profile management
* features, %MM_3GPP_PROFILE_ID_UNKNOWN.
* @returns a profile id.
*/
get_profile_id(): number;
/**
* Gets a #MMBearerProperties object specifying the properties which were used
* to create the bearer.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_bearer_get_properties() again to get a new #MMBearerProperties with the
* new values.
* @returns A #MMBearerProperties that must be freed with g_object_unref() or %NULL if unknown.
*/
get_properties(): BearerProperties;
/**
* Checks whether or not the #MMBearer supporting stats reload (to have
* RX and TX bytes of the ongoing connection).
* @returns %TRUE if the #MMBearer supports these stats, #FALSE otherwise.
*/
get_reload_stats_supported(): boolean;
/**
* Gets a #MMBearerStats object specifying the statistics of the current bearer
* connection.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_bearer_get_stats() again to get a new #MMBearerStats with the
* new values.
* @returns A #MMBearerStats that must be freed with g_object_unref() or %NULL if unknown.
*/
get_stats(): BearerStats;
/**
* Checks whether or not the #MMBearer is suspended (but not deactivated) while
* the device is handling other communications, like a voice call.
* @returns %TRUE if packet data service is suspended in the #MMBearer, #FALSE otherwise.
*/
get_suspended(): boolean;
/**
* Gets a #GError specifying the connection error details, if any.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_get_connection_error() if on another
* thread.
* @returns A #GError, or %NULL if none. Do not free the returned value, it belongs to @self.
*/
peek_connection_error(): GLib.Error;
/**
* Gets a #MMBearerIpConfig object specifying the IPv4 configuration to use in
* the bearer.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_get_ipv4_config() if on another
* thread.
* @returns A #MMBearerIpConfig. Do not free the returned value, it belongs to @self.
*/
peek_ipv4_config(): BearerIpConfig;
/**
* Gets a #MMBearerIpConfig object specifying the IPv6 configuration to use in
* the bearer.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_get_ipv6_config() if on another
* thread.
* @returns A #MMBearerIpConfig. Do not free the returned value, it belongs to @self.
*/
peek_ipv6_config(): BearerIpConfig;
/**
* Gets a #MMBearerProperties object specifying the properties which were used
* to create the bearer.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_get_properties() if on another
* thread.
* @returns A #MMBearerProperties. Do not free the returned value, it belongs to @self.
*/
peek_properties(): BearerProperties;
/**
* Gets a #MMBearerStats object specifying the statistics of the current bearer
* connection.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_bearer_get_stats() if on another
* thread.
* @returns A #MMBearerStats. Do not free the returned value, it belongs to @self.
*/
peek_stats(): BearerStats;
// Inherited properties
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearer_type(): number;
set bearer_type(val: number);
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearerType(): number;
set bearerType(val: number);
/**
* Represents the D-Bus property "Connected".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connected(): boolean;
set connected(val: boolean);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connection_error(): GLib.Variant;
set connection_error(val: GLib.Variant);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connectionError(): GLib.Variant;
set connectionError(val: GLib.Variant);
/**
* Represents the D-Bus property "Interface".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get interface(): string;
set interface(val: string);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip_timeout(): number;
set ip_timeout(val: number);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ipTimeout(): number;
set ipTimeout(val: number);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4_config(): GLib.Variant;
set ip4_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4Config(): GLib.Variant;
set ip4Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6_config(): GLib.Variant;
set ip6_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6Config(): GLib.Variant;
set ip6Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Multiplexed".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiplexed(): boolean;
set multiplexed(val: boolean);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profile_id(): number;
set profile_id(val: number);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profileId(): number;
set profileId(val: number);
/**
* Represents the D-Bus property "Properties".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get properties(): GLib.Variant;
set properties(val: GLib.Variant);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reload_stats_supported(): boolean;
set reload_stats_supported(val: boolean);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reloadStatsSupported(): boolean;
set reloadStatsSupported(val: boolean);
/**
* Represents the D-Bus property "Stats".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stats(): GLib.Variant;
set stats(val: GLib.Variant);
/**
* Represents the D-Bus property "Suspended".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get suspended(): boolean;
set suspended(val: boolean);
// Inherited methods
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
init_async(io_priority: number, cancellable?: Gio.Cancellable | null): Promise;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init_finish(res: Gio.AsyncResult): boolean;
/**
* Finishes the async construction for the various g_async_initable_new
* calls, returning the created object or %NULL on error.
* @param res the #GAsyncResult from the callback
* @returns a newly created #GObject, or %NULL on error. Free with g_object_unref().
*/
new_finish(res: Gio.AsyncResult): Bearer;
// Conflicted with ModemManager.GdbusBearerProxy.new_finish
new_finish(...args: never[]): any;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
vfunc_init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
*/
vfunc_init_finish(res: Gio.AsyncResult): boolean;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_connect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_connect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_connect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Connect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_connect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_disconnect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_disconnect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_disconnect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Disconnect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_disconnect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Helper function used in service implementations to finish handling invocations of the Connect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_connect(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Disconnect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_disconnect(invocation: Gio.DBusMethodInvocation): void;
vfunc_handle_connect(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_disconnect(invocation: Gio.DBusMethodInvocation): boolean;
/**
* Creates a binding between `source_property` on `source` and `target_property`
* on `target`.
*
* Whenever the `source_property` is changed the `target_property` is
* updated using the same value. For instance:
*
*
* ```c
* g_object_bind_property (action, "active", widget, "sensitive", 0);
* ```
*
*
* Will result in the "sensitive" property of the widget #GObject instance to be
* updated with the same value of the "active" property of the action #GObject
* instance.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well.
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. To remove the binding without affecting the
* `source` and the `target` you can just call g_object_unref() on the returned
* #GBinding instance.
*
* Removing the binding by calling g_object_unref() on it must only be done if
* the binding, `source` and `target` are only used from a single thread and it
* is clear that both `source` and `target` outlive the binding. Especially it
* is not safe to rely on this if the binding, `source` or `target` can be
* finalized from different threads. Keep another reference to the binding and
* use g_binding_unbind() instead to be on the safe side.
*
* A #GObject can have multiple bindings.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
): GObject.Binding;
/**
* Complete version of g_object_bind_property().
*
* Creates a binding between `source_property` on `source` and `target_property`
* on `target,` allowing you to set the transformation functions to be used by
* the binding.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well. The `transform_from` function is only used in case
* of bidirectional bindings, otherwise it will be ignored
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. This will release the reference that is
* being held on the #GBinding instance; if you want to hold on to the
* #GBinding instance, you will need to hold a reference to it.
*
* To remove the binding, call g_binding_unbind().
*
* A #GObject can have multiple bindings.
*
* The same `user_data` parameter will be used for both `transform_to`
* and `transform_from` transformation functions; the `notify` function will
* be called once, when the binding is removed. If you need different data
* for each transformation function, please use
* g_object_bind_property_with_closures() instead.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property_full(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
transform_to?: GObject.BindingTransformFunc | null,
transform_from?: GObject.BindingTransformFunc | null,
notify?: GLib.DestroyNotify | null,
): GObject.Binding;
// Conflicted with GObject.Object.bind_property_full
bind_property_full(...args: never[]): any;
/**
* This function is intended for #GObject implementations to re-enforce
* a [floating][floating-ref] object reference. Doing this is seldom
* required: all #GInitiallyUnowneds are created with a floating reference
* which usually just needs to be sunken by calling g_object_ref_sink().
*/
force_floating(): void;
/**
* Increases the freeze count on `object`. If the freeze count is
* non-zero, the emission of "notify" signals on `object` is
* stopped. The signals are queued until the freeze count is decreased
* to zero. Duplicate notifications are squashed so that at most one
* #GObject::notify signal is emitted for each property modified while the
* object is frozen.
*
* This is necessary for accessors that modify multiple properties to prevent
* premature notification while the object is still being modified.
*/
freeze_notify(): void;
/**
* Gets a named field from the objects table of associations (see g_object_set_data()).
* @param key name of the key for that association
* @returns the data if found, or %NULL if no such data exists.
*/
get_data(key: string): any | null;
/**
* Gets a property of an object.
*
* The value can be:
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
* - a GObject.Value initialized with the expected type of the property
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
*
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
*
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
* @param property_name The name of the property to get
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
*/
get_property(property_name: string, value: GObject.Value | any): any;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
get_qdata(quark: GLib.Quark): any | null;
/**
* Gets `n_properties` properties for an `object`.
* Obtained properties will be set to `values`. All properties must be valid.
* Warnings will be emitted and undefined behaviour may result if invalid
* properties are passed in.
* @param names the names of each property to get
* @param values the values of each property to get
*/
getv(names: string[], values: (GObject.Value | any)[]): void;
/**
* Checks whether `object` has a [floating][floating-ref] reference.
* @returns %TRUE if @object has a floating reference
*/
is_floating(): boolean;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param property_name the name of a property installed on the class of @object.
*/
notify(property_name: string): void;
/**
* Emits a "notify" signal for the property specified by `pspec` on `object`.
*
* This function omits the property name lookup, hence it is faster than
* g_object_notify().
*
* One way to avoid using g_object_notify() from within the
* class that registered the properties, and using g_object_notify_by_pspec()
* instead, is to store the GParamSpec used with
* g_object_class_install_property() inside a static array, e.g.:
*
*
* ```c
* typedef enum
* {
* PROP_FOO = 1,
* PROP_LAST
* } MyObjectProperty;
*
* static GParamSpec *properties[PROP_LAST];
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* g_object_class_install_property (gobject_class,
* PROP_FOO,
* properties[PROP_FOO]);
* }
* ```
*
*
* and then notify a change on the "foo" property with:
*
*
* ```c
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
* ```
*
* @param pspec the #GParamSpec of a property installed on the class of @object.
*/
notify_by_pspec(pspec: GObject.ParamSpec): void;
/**
* Increases the reference count of `object`.
*
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
* of `object` will be propagated to the return type (using the GCC typeof()
* extension), so any casting the caller needs to do on the return type must be
* explicit.
* @returns the same @object
*/
ref(): GObject.Object;
/**
* Increase the reference count of `object,` and possibly remove the
* [floating][floating-ref] reference, if `object` has a floating reference.
*
* In other words, if the object is floating, then this call "assumes
* ownership" of the floating reference, converting it to a normal
* reference by clearing the floating flag while leaving the reference
* count unchanged. If the object is not floating, then this call
* adds a new normal reference increasing the reference count by one.
*
* Since GLib 2.56, the type of `object` will be propagated to the return type
* under the same conditions as for g_object_ref().
* @returns @object
*/
ref_sink(): GObject.Object;
/**
* Releases all references to other objects. This can be used to break
* reference cycles.
*
* This function should only be called from object system implementations.
*/
run_dispose(): void;
/**
* Each object carries around a table of associations from
* strings to pointers. This function lets you set an association.
*
* If the object already had an association with that name,
* the old association will be destroyed.
*
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
* This means a copy of `key` is kept permanently (even after `object` has been
* finalized) — so it is recommended to only use a small, bounded set of values
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
* @param key name of the key
* @param data data to associate with that key
*/
set_data(key: string, data?: any | null): void;
/**
* Sets a property on an object.
* @param property_name The name of the property to set
* @param value The value to set the property to
*/
set_property(property_name: string, value: GObject.Value | any): void;
/**
* Remove a specified datum from the object's data associations,
* without invoking the association's destroy handler.
* @param key name of the key
* @returns the data if found, or %NULL if no such data exists.
*/
steal_data(key: string): any | null;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata() and removes the `data` from object
* without invoking its destroy() function (if any was
* set).
* Usually, calling this function is only required to update
* user data pointers with a destroy notifier, for example:
*
* ```c
* void
* object_add_to_user_list (GObject *object,
* const gchar *new_string)
* {
* // the quark, naming the object data
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
* // retrieve the old string list
* GList *list = g_object_steal_qdata (object, quark_string_list);
*
* // prepend new string
* list = g_list_prepend (list, g_strdup (new_string));
* // this changed 'list', so we need to set it again
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
* }
* static void
* free_string_list (gpointer data)
* {
* GList *node, *list = data;
*
* for (node = list; node; node = node->next)
* g_free (node->data);
* g_list_free (list);
* }
* ```
*
* Using g_object_get_qdata() in the above example, instead of
* g_object_steal_qdata() would have left the destroy function set,
* and thus the partial string list would have been freed upon
* g_object_set_qdata_full().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
steal_qdata(quark: GLib.Quark): any | null;
/**
* Reverts the effect of a previous call to
* g_object_freeze_notify(). The freeze count is decreased on `object`
* and when it reaches zero, queued "notify" signals are emitted.
*
* Duplicate notifications for each property are squashed so that at most one
* #GObject::notify signal is emitted for each property, in the reverse order
* in which they have been queued.
*
* It is an error to call this function when the freeze count is zero.
*/
thaw_notify(): void;
/**
* Decreases the reference count of `object`. When its reference count
* drops to 0, the object is finalized (i.e. its memory is freed).
*
* If the pointer to the #GObject may be reused in future (for example, if it is
* an instance variable of another object), it is recommended to clear the
* pointer to %NULL rather than retain a dangling pointer to a potentially
* invalid #GObject instance. Use g_clear_object() for this.
*/
unref(): void;
/**
* This function essentially limits the life time of the `closure` to
* the life time of the object. That is, when the object is finalized,
* the `closure` is invalidated by calling g_closure_invalidate() on
* it, in order to prevent invocations of the closure with a finalized
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
* added as marshal guards to the `closure,` to ensure that an extra
* reference count is held on `object` during invocation of the
* `closure`. Usually, this function will be called on closures that
* use this `object` as closure data.
* @param closure #GClosure to watch
*/
watch_closure(closure: GObject.Closure): void;
/**
* the `constructed` function is called by g_object_new() as the
* final step of the object creation process. At the point of the call, all
* construction properties have been set on the object. The purpose of this
* call is to allow for object initialisation steps that can only be performed
* after construction properties have been set. `constructed` implementors
* should chain up to the `constructed` call of their parent class to allow it
* to complete its initialisation.
*/
vfunc_constructed(): void;
/**
* emits property change notification for a bunch
* of properties. Overriding `dispatch_properties_changed` should be rarely
* needed.
* @param n_pspecs
* @param pspecs
*/
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
/**
* the `dispose` function is supposed to drop all references to other
* objects, but keep the instance otherwise intact, so that client method
* invocations still work. It may be run multiple times (due to reference
* loops). Before returning, `dispose` should chain up to the `dispose` method
* of the parent class.
*/
vfunc_dispose(): void;
/**
* instance finalization function, should finish the finalization of
* the instance begun in `dispose` and chain up to the `finalize` method of the
* parent class.
*/
vfunc_finalize(): void;
/**
* the generic getter for all properties of this type. Should be
* overridden for every type with properties.
* @param property_id
* @param value
* @param pspec
*/
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param pspec
*/
vfunc_notify(pspec: GObject.ParamSpec): void;
/**
* the generic setter for all properties of this type. Should be
* overridden for every type with properties. If implementations of
* `set_property` don't emit property change notification explicitly, this will
* be done implicitly by the type system. However, if the notify signal is
* emitted explicitly, the type system will not emit it a second time.
* @param property_id
* @param value
* @param pspec
*/
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
* @param properties Object containing the properties to set
*/
set(properties: { [key: string]: any }): void;
/**
* Blocks a handler of an instance so it will not be called during any signal emissions
* @param id Handler ID of the handler to be blocked
*/
block_signal_handler(id: number): void;
/**
* Unblocks a handler so it will be called again during any signal emissions
* @param id Handler ID of the handler to be unblocked
*/
unblock_signal_handler(id: number): void;
/**
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
* @param detailedName Name of the signal to stop emission of
*/
stop_emission_by_name(detailedName: string): void;
}
namespace BearerIpConfig {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMBearerIpConfig structure contains private data and should
* only be accessed using the provided API.
*/
class BearerIpConfig extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the IP address to be used with this bearer.
* @returns a string with the IP address, or #NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_address(): string;
/**
* Gets the list of IP addresses of DNS servers to be used with this bearer.
* @returns a %NULL-terminated array of strings. Do not free the returned value, it is owned by @self.
*/
get_dns(): string[];
/**
* Gets the IP address of the gateway to be used with this bearer.
* @returns a string with the IP address, or #NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gateway(): string;
/**
* Gets the IP method to be used with this bearer.
* @returns a #MMBearerIpMethod.
*/
get_method(): BearerIpMethod;
/**
* Gets the MTU to be used with this bearer.
* @returns the MTU.
*/
get_mtu(): number;
/**
* Gets the network prefix to be used with this bearer.
* @returns the network prefix.
*/
get_prefix(): number;
}
namespace BearerProperties {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMBearerProperties structure contains private data and should
* only be accessed using the provided API.
*/
class BearerProperties extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): BearerProperties;
// Methods
/**
* Gets the 5G network access type preference.
* @returns a #MMBearerAccessTypePreference value.
*/
get_access_type_preference(): BearerAccessTypePreference;
/**
* Checks whether roaming is allowed in the connection.
* @returns %TRUE if roaming is allowed, %FALSE otherwise.
*/
get_allow_roaming(): boolean;
/**
* Gets the authentication methods allowed in the connection.
* @returns a bitmask of #MMBearerAllowedAuth values, or %MM_BEARER_ALLOWED_AUTH_UNKNOWN to request the modem-default method.
*/
get_allowed_auth(): BearerAllowedAuth;
/**
* Gets the name of the access point to use when connecting.
* @returns the access point, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_apn(): string;
/**
* Gets the APN types to use.
* @returns a mask of #MMBearerApnType values.
*/
get_apn_type(): BearerApnType;
/**
* Sets the IP type to use.
* @returns a #MMBearerIpFamily.
*/
get_ip_type(): BearerIpFamily;
/**
* Gets the type of multiplex support requested by the user.
* @returns a #MMBearerMultiplexSupport.
*/
get_multiplex(): BearerMultiplexSupport;
/**
* Gets the number to use when performing the connection.
* @returns the number, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_number(): string;
/**
* Gets the password used to authenticate with the access point.
* @returns the password, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_password(): string;
/**
* Gets the profile ID to use.
* @returns the profile id.
*/
get_profile_id(): number;
/**
* Gets the name of the profile to use when connecting.
* @returns the profile name, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_profile_name(): string;
/**
* Gets the RM protocol requested to use in the CDMA connection.
* @returns a #MMModemCdmaRmProtocol.
*/
get_rm_protocol(): ModemCdmaRmProtocol;
/**
* Gets the roaming allowance rules.
* @returns a mask of #MMBearerRoamingAllowance values.
*/
get_roaming_allowance(): BearerRoamingAllowance;
/**
* Gets the username used to authenticate with the access point.
* @returns the username, or #NULL if not set. Do not free the returned value, it is owned by @self.
*/
get_user(): string;
/**
* Sets the 5G network access type preference.
* @param access_type_preference a #MMBearerAccessTypePreference value.
*/
set_access_type_preference(access_type_preference: BearerAccessTypePreference | null): void;
/**
* Sets the flag to indicate whether roaming is allowed or not in the
* connection.
* @param allow_roaming boolean value.
*/
set_allow_roaming(allow_roaming: boolean): void;
/**
* Sets the authentication method to use.
* @param allowed_auth a bitmask of #MMBearerAllowedAuth values. %MM_BEARER_ALLOWED_AUTH_UNKNOWN may be given to request the modem-default method.
*/
set_allowed_auth(allowed_auth: BearerAllowedAuth | null): void;
/**
* Sets the name of the access point to use when connecting.
* @param apn Name of the access point.
*/
set_apn(apn: string): void;
/**
* Sets the APN types to use.
* @param apn_type a mask of #MMBearerApnType values.
*/
set_apn_type(apn_type: BearerApnType | null): void;
/**
* Sets the IP type to use.
* @param ip_type a #MMBearerIpFamily.
*/
set_ip_type(ip_type: BearerIpFamily | null): void;
/**
* Gets the type of multiplex support requested by the user.
* @param multiplex a #MMBearerMultiplexSupport.
*/
set_multiplex(multiplex: BearerMultiplexSupport | null): void;
/**
* Sets the number to use when performing the connection.
* @param number the number.
*/
set_number(number: string): void;
/**
* Sets the password used to authenticate with the access point.
* @param password the password
*/
set_password(password: string): void;
/**
* Sets the profile ID to use.
* @param profile_id a profile id.
*/
set_profile_id(profile_id: number): void;
/**
* Sets the name of the profile to use when connecting.
* @param profile_name Name of the profile.
*/
set_profile_name(profile_name: string): void;
/**
* Sets the RM protocol to use in the CDMA connection.
* @param protocol a #MMModemCdmaRmProtocol.
*/
set_rm_protocol(protocol: ModemCdmaRmProtocol | null): void;
/**
* Sets the roaming allowance rules.
* @param roaming_allowance a mask of #MMBearerRoamingAllowance values
*/
set_roaming_allowance(roaming_allowance: BearerRoamingAllowance | null): void;
/**
* Sets the username used to authenticate with the access point.
* @param user the username
*/
set_user(user: string): void;
}
namespace BearerStats {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMBearerStats structure contains private data and should
* only be accessed using the provided API.
*/
class BearerStats extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the number of connection attempts done with this bearer.
* @returns a #guint.
*/
get_attempts(): number;
/**
* Gets the speed of the downlink, in bits per second.
* @returns a #guint64.
*/
get_downlink_speed(): number;
/**
* Gets the duration of the current connection, in seconds.
* @returns a #guint.
*/
get_duration(): number;
/**
* Gets the number of failed connection attempts done with this bearer.
* @returns a #guint.
*/
get_failed_attempts(): number;
/**
* Gets the number of bytes received without error in the connection.
* @returns a #guint64.
*/
get_rx_bytes(): number;
/**
* Gets the start date of the current connection as a timestamp in seconds
* since the epoch.
* @returns a #guint64.
*/
get_start_date(): number;
/**
* Gets the total duration of all the connections of this bearer.
* @returns a #guint.
*/
get_total_duration(): number;
/**
* Gets the total number of bytes received without error during all the
* connections of this bearer.
* @returns a #guint64.
*/
get_total_rx_bytes(): number;
/**
* Gets the total number of bytes transmitted without error during all the
* connections of this bearer.
* @returns a #guint64.
*/
get_total_tx_bytes(): number;
/**
* Gets the number of bytes transmitted without error in the connection.
* @returns a #guint64.
*/
get_tx_bytes(): number;
/**
* Gets the speed of the uplink, in bits per second.
* @returns a #guint64.
*/
get_uplink_speed(): number;
}
namespace Call {
// Constructor properties interface
interface ConstructorProps
extends GdbusCallProxy.ConstructorProps,
Gio.AsyncInitable.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
Gio.Initable.ConstructorProps,
GdbusCall.ConstructorProps {}
}
/**
* The #MMCall structure contains private data and should only be accessed
* using the provided API.
*/
class Call
extends GdbusCallProxy
implements Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, GdbusCall
{
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Asynchronously requests to accept the incoming call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_accept_finish() to get the result of the operation.
*
* See mm_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
accept(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests to accept the incoming call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_accept_finish() to get the result of the operation.
*
* See mm_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
accept(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously requests to accept the incoming call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_accept_finish() to get the result of the operation.
*
* See mm_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
accept(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_accept().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_accept().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
accept_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to accept the incoming call.
*
* Call objects can only be sent once.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_accept() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
accept_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously requests to deflect the incoming call.
*
* This call will be considered terminated once the deflection is performed.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_deflect_finish() to get the result of the operation.
*
* See mm_call_deflect_sync() for the synchronous, blocking version of this
* method.
* @param number new number where the call will be deflected.
* @param cancellable A #GCancellable or %NULL.
*/
deflect(number: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests to deflect the incoming call.
*
* This call will be considered terminated once the deflection is performed.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_deflect_finish() to get the result of the operation.
*
* See mm_call_deflect_sync() for the synchronous, blocking version of this
* method.
* @param number new number where the call will be deflected.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
deflect(
number: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously requests to deflect the incoming call.
*
* This call will be considered terminated once the deflection is performed.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_deflect_finish() to get the result of the operation.
*
* See mm_call_deflect_sync() for the synchronous, blocking version of this
* method.
* @param number new number where the call will be deflected.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
deflect(
number: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_deflect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_deflect().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
deflect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to deflect the incoming call.
*
* This call will be considered terminated once the deflection is performed.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_deflect() for the asynchronous version of this method.
* @param number new number where the call will be deflected.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
deflect_sync(number: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Gets the kernel device used for audio (if any).
* @returns The audio port, or %NULL if call audio is not routed via the host or couldn't be retrieved.
*/
dup_audio_port(): string;
/**
* Gets the call number. In outgoing calls contains the dialing number or
* the remote number in incoming calls
* @returns The number, or %NULL if it couldn't be retrieved. The returned value should be freed with g_free().
*/
dup_number(): string;
/**
* Gets a copy of the DBus path of the #MMCall object.
* @returns The DBus path of the #MMCall object. The returned value should be freed with g_free().
*/
dup_path(): string;
/**
* Gets a #MMCallAudioFormat object specifying the audio format used by the
* audio port if call audio is routed via the host.
*
* The values reported by `self` are not updated when the values in the
* interface change. Instead, the client is expected to call
* mm_call_get_audio_format() again to get a new #MMCallAudioFormat with the
* new values.
* @returns A #MMCallAudioFormat that must be freed with g_object_unref() or %NULL if unknown.
*/
get_audio_format(): CallAudioFormat;
/**
* Gets the kernel device used for audio (if any).
* @returns The audio port, or %NULL if call audio is not routed via the host or couldn't be retrieved.
*/
get_audio_port(): string;
/**
* Gets the call direction.
* @returns a #MMCallDirection.
*/
get_direction(): CallDirection;
/**
* Gets whether the call is part of a multiparty call.
* @returns %TRUE if the call is part of a multiparty call, %FALSE otherwise.
*/
get_multiparty(): boolean;
/**
* Gets the call number. In outgoing calls contains the dialing number or
* the remote number in incoming calls
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_call_dup_number() if on another
* thread.
* @returns The number, or %NULL if it couldn't be retrieved.
*/
get_number(): string;
/**
* Gets the DBus path of the #MMCall object.
* @returns The DBus path of the #MMCall object.
*/
get_path(): string;
/**
* Gets the current state of call.
* @returns a #MMCallState.
*/
get_state(): CallState;
/**
* Gets the reason of why the call changes its state.
* @returns a #MMCallStateReason.
*/
get_state_reason(): CallStateReason;
/**
* Asynchronously requests to hangup the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_hangup_finish() to get the result of the operation.
*
* See mm_call_hangup_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
*/
hangup(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests to hangup the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_hangup_finish() to get the result of the operation.
*
* See mm_call_hangup_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
hangup(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously requests to hangup the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_hangup_finish() to get the result of the operation.
*
* See mm_call_hangup_sync() for the synchronous, blocking version of this
* method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
hangup(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_hangup().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_hangup().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
hangup_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to hangup the call.
*
* Call objects can only be sent once.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_hangup() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
hangup_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Synchronously requests to join this call into a multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_call_join_multiparty_sync() for the synchronous, blocking version of
* this method.
* @param cancellable A #GCancellable or %NULL.
*/
join_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Synchronously requests to join this call into a multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_call_join_multiparty_sync() for the synchronous, blocking version of
* this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
join_multiparty(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Synchronously requests to join this call into a multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_call_join_multiparty_sync() for the synchronous, blocking version of
* this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
join_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_join_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_join_multiparty().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
join_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to join this call into a multiparty call.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_join_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
join_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Synchronously requests to make this call private again by leaving the
* multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_call_leave_multiparty_sync() for the synchronous, blocking version
* of this method.
* @param cancellable A #GCancellable or %NULL.
*/
leave_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Synchronously requests to make this call private again by leaving the
* multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_call_leave_multiparty_sync() for the synchronous, blocking version
* of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
leave_multiparty(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Synchronously requests to make this call private again by leaving the
* multiparty call.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_call_leave_multiparty_sync() for the synchronous, blocking version
* of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
leave_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_leave_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_leave_multiparty().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
leave_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to make this call private again by leaving the
* multiparty call.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_leave_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
leave_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Gets a #MMCallAudioFormat object specifying the audio format used by the
* audio port if call audio is routed via the host.
*
* The returned value is only valid until the property changes so
* it is only safe to use this function on the thread where
* `self` was constructed. Use mm_call_get_audio_format() if on another
* thread.
* @returns A #MMCallAudioFormat. Do not free the returned value, it belongs to @self.
*/
peek_audio_format(): CallAudioFormat;
/**
* Asynchronously requests to send a DTMF tone the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_call_send_dtmf_sync() for the synchronous, blocking version of this
* method.
* @param dtmf the DMTF tone.
* @param cancellable A #GCancellable or %NULL.
*/
send_dtmf(dtmf: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests to send a DTMF tone the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_call_send_dtmf_sync() for the synchronous, blocking version of this
* method.
* @param dtmf the DMTF tone.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
send_dtmf(
dtmf: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously requests to send a DTMF tone the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_call_send_dtmf_sync() for the synchronous, blocking version of this
* method.
* @param dtmf the DMTF tone.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
send_dtmf(
dtmf: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_send_dtmf().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_send_dtmf().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
send_dtmf_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to send a DTMF tone the call.
*
* Call objects can only be sent once.
*
* The calling thread is blocked until an incoming call is ready.
* See mm_call_send_dtmf() for the asynchronous version of this method.
* @param dtmf the DMTF tone.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
send_dtmf_sync(dtmf: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously requests to queue the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_start_finish() to get the result of the operation.
*
* See mm_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
start(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously requests to queue the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_start_finish() to get the result of the operation.
*
* See mm_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
start(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously requests to queue the call.
*
* Call objects can only be executed once.
*
* When the operation is finished, `callback` will be invoked in the
* thread-default main loop
* of the thread you are calling this method from. You can then call
* mm_call_start_finish() to get the result of the operation.
*
* See mm_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
start(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_call_start().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_start().
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
start_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously requests to queue the call for delivery.
*
* Call objects can only be sent once.
*
* The calling thread is blocked until a reply is received.
* See mm_call_start() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the operation succeeded, %FALSE if @error is set.
*/
start_sync(cancellable?: Gio.Cancellable | null): boolean;
// Inherited properties
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_format(): GLib.Variant;
set audio_format(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioFormat(): GLib.Variant;
set audioFormat(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_port(): string;
set audio_port(val: string);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioPort(): string;
set audioPort(val: string);
/**
* Represents the D-Bus property "Direction".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get direction(): number;
set direction(val: number);
/**
* Represents the D-Bus property "Multiparty".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiparty(): boolean;
set multiparty(val: boolean);
/**
* Represents the D-Bus property "Number".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get number(): string;
set number(val: string);
/**
* Represents the D-Bus property "State".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state(): number;
set state(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state_reason(): number;
set state_reason(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stateReason(): number;
set stateReason(val: number);
// Inherited methods
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
init_async(io_priority: number, cancellable?: Gio.Cancellable | null): Promise;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init_finish(res: Gio.AsyncResult): boolean;
/**
* Finishes the async construction for the various g_async_initable_new
* calls, returning the created object or %NULL on error.
* @param res the #GAsyncResult from the callback
* @returns a newly created #GObject, or %NULL on error. Free with g_object_unref().
*/
new_finish(res: Gio.AsyncResult): Call;
// Conflicted with ModemManager.GdbusCallProxy.new_finish
new_finish(...args: never[]): any;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
vfunc_init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
*/
vfunc_init_finish(res: Gio.AsyncResult): boolean;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_accept(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_accept().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_accept().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Accept() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_accept() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
*/
call_deflect(arg_number: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_deflect(
arg_number: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_deflect(
arg_number: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_deflect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_deflect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_deflect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Deflect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_deflect() for the asynchronous version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_deflect_sync(arg_number: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_hangup(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_hangup(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_hangup(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_hangup().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_hangup().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_hangup_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Hangup() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_hangup() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_hangup_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_join_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_join_multiparty(
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_join_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_join_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_join_multiparty().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_join_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the JoinMultiparty() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_join_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_join_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_leave_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_leave_multiparty(
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_leave_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_leave_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_leave_multiparty().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_leave_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the LeaveMultiparty() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_leave_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_leave_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
*/
call_send_dtmf(arg_dtmf: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_send_dtmf(
arg_dtmf: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_send_dtmf(
arg_dtmf: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_send_dtmf().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_send_dtmf().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_send_dtmf_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the SendDtmf() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_send_dtmf() for the asynchronous version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_send_dtmf_sync(arg_dtmf: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_start(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_start(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_start(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_start().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_start().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_start_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Start() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_start() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_start_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Helper function used in service implementations to finish handling invocations of the Accept() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_accept(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Deflect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_deflect(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Hangup() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_hangup(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the JoinMultiparty() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_join_multiparty(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the LeaveMultiparty() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_leave_multiparty(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the SendDtmf() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_send_dtmf(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Start() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_start(invocation: Gio.DBusMethodInvocation): void;
/**
* Emits the "DtmfReceived" D-Bus signal.
* @param arg_dtmf Argument to pass with the signal.
*/
emit_dtmf_received(arg_dtmf: string): void;
/**
* Emits the "StateChanged" D-Bus signal.
* @param arg_old Argument to pass with the signal.
* @param arg_new Argument to pass with the signal.
* @param arg_reason Argument to pass with the signal.
*/
emit_state_changed(arg_old: number, arg_new: number, arg_reason: number): void;
vfunc_dtmf_received(arg_dtmf: string): void;
vfunc_handle_accept(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_deflect(invocation: Gio.DBusMethodInvocation, arg_number: string): boolean;
vfunc_handle_hangup(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_join_multiparty(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_leave_multiparty(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_send_dtmf(invocation: Gio.DBusMethodInvocation, arg_dtmf: string): boolean;
vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_state_changed(arg_old: number, arg_new: number, arg_reason: number): void;
/**
* Creates a binding between `source_property` on `source` and `target_property`
* on `target`.
*
* Whenever the `source_property` is changed the `target_property` is
* updated using the same value. For instance:
*
*
* ```c
* g_object_bind_property (action, "active", widget, "sensitive", 0);
* ```
*
*
* Will result in the "sensitive" property of the widget #GObject instance to be
* updated with the same value of the "active" property of the action #GObject
* instance.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well.
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. To remove the binding without affecting the
* `source` and the `target` you can just call g_object_unref() on the returned
* #GBinding instance.
*
* Removing the binding by calling g_object_unref() on it must only be done if
* the binding, `source` and `target` are only used from a single thread and it
* is clear that both `source` and `target` outlive the binding. Especially it
* is not safe to rely on this if the binding, `source` or `target` can be
* finalized from different threads. Keep another reference to the binding and
* use g_binding_unbind() instead to be on the safe side.
*
* A #GObject can have multiple bindings.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
): GObject.Binding;
/**
* Complete version of g_object_bind_property().
*
* Creates a binding between `source_property` on `source` and `target_property`
* on `target,` allowing you to set the transformation functions to be used by
* the binding.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well. The `transform_from` function is only used in case
* of bidirectional bindings, otherwise it will be ignored
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. This will release the reference that is
* being held on the #GBinding instance; if you want to hold on to the
* #GBinding instance, you will need to hold a reference to it.
*
* To remove the binding, call g_binding_unbind().
*
* A #GObject can have multiple bindings.
*
* The same `user_data` parameter will be used for both `transform_to`
* and `transform_from` transformation functions; the `notify` function will
* be called once, when the binding is removed. If you need different data
* for each transformation function, please use
* g_object_bind_property_with_closures() instead.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property_full(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
transform_to?: GObject.BindingTransformFunc | null,
transform_from?: GObject.BindingTransformFunc | null,
notify?: GLib.DestroyNotify | null,
): GObject.Binding;
// Conflicted with GObject.Object.bind_property_full
bind_property_full(...args: never[]): any;
/**
* This function is intended for #GObject implementations to re-enforce
* a [floating][floating-ref] object reference. Doing this is seldom
* required: all #GInitiallyUnowneds are created with a floating reference
* which usually just needs to be sunken by calling g_object_ref_sink().
*/
force_floating(): void;
/**
* Increases the freeze count on `object`. If the freeze count is
* non-zero, the emission of "notify" signals on `object` is
* stopped. The signals are queued until the freeze count is decreased
* to zero. Duplicate notifications are squashed so that at most one
* #GObject::notify signal is emitted for each property modified while the
* object is frozen.
*
* This is necessary for accessors that modify multiple properties to prevent
* premature notification while the object is still being modified.
*/
freeze_notify(): void;
/**
* Gets a named field from the objects table of associations (see g_object_set_data()).
* @param key name of the key for that association
* @returns the data if found, or %NULL if no such data exists.
*/
get_data(key: string): any | null;
/**
* Gets a property of an object.
*
* The value can be:
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
* - a GObject.Value initialized with the expected type of the property
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
*
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
*
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
* @param property_name The name of the property to get
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
*/
get_property(property_name: string, value: GObject.Value | any): any;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
get_qdata(quark: GLib.Quark): any | null;
/**
* Gets `n_properties` properties for an `object`.
* Obtained properties will be set to `values`. All properties must be valid.
* Warnings will be emitted and undefined behaviour may result if invalid
* properties are passed in.
* @param names the names of each property to get
* @param values the values of each property to get
*/
getv(names: string[], values: (GObject.Value | any)[]): void;
/**
* Checks whether `object` has a [floating][floating-ref] reference.
* @returns %TRUE if @object has a floating reference
*/
is_floating(): boolean;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param property_name the name of a property installed on the class of @object.
*/
notify(property_name: string): void;
/**
* Emits a "notify" signal for the property specified by `pspec` on `object`.
*
* This function omits the property name lookup, hence it is faster than
* g_object_notify().
*
* One way to avoid using g_object_notify() from within the
* class that registered the properties, and using g_object_notify_by_pspec()
* instead, is to store the GParamSpec used with
* g_object_class_install_property() inside a static array, e.g.:
*
*
* ```c
* typedef enum
* {
* PROP_FOO = 1,
* PROP_LAST
* } MyObjectProperty;
*
* static GParamSpec *properties[PROP_LAST];
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* g_object_class_install_property (gobject_class,
* PROP_FOO,
* properties[PROP_FOO]);
* }
* ```
*
*
* and then notify a change on the "foo" property with:
*
*
* ```c
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
* ```
*
* @param pspec the #GParamSpec of a property installed on the class of @object.
*/
notify_by_pspec(pspec: GObject.ParamSpec): void;
/**
* Increases the reference count of `object`.
*
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
* of `object` will be propagated to the return type (using the GCC typeof()
* extension), so any casting the caller needs to do on the return type must be
* explicit.
* @returns the same @object
*/
ref(): GObject.Object;
/**
* Increase the reference count of `object,` and possibly remove the
* [floating][floating-ref] reference, if `object` has a floating reference.
*
* In other words, if the object is floating, then this call "assumes
* ownership" of the floating reference, converting it to a normal
* reference by clearing the floating flag while leaving the reference
* count unchanged. If the object is not floating, then this call
* adds a new normal reference increasing the reference count by one.
*
* Since GLib 2.56, the type of `object` will be propagated to the return type
* under the same conditions as for g_object_ref().
* @returns @object
*/
ref_sink(): GObject.Object;
/**
* Releases all references to other objects. This can be used to break
* reference cycles.
*
* This function should only be called from object system implementations.
*/
run_dispose(): void;
/**
* Each object carries around a table of associations from
* strings to pointers. This function lets you set an association.
*
* If the object already had an association with that name,
* the old association will be destroyed.
*
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
* This means a copy of `key` is kept permanently (even after `object` has been
* finalized) — so it is recommended to only use a small, bounded set of values
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
* @param key name of the key
* @param data data to associate with that key
*/
set_data(key: string, data?: any | null): void;
/**
* Sets a property on an object.
* @param property_name The name of the property to set
* @param value The value to set the property to
*/
set_property(property_name: string, value: GObject.Value | any): void;
/**
* Remove a specified datum from the object's data associations,
* without invoking the association's destroy handler.
* @param key name of the key
* @returns the data if found, or %NULL if no such data exists.
*/
steal_data(key: string): any | null;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata() and removes the `data` from object
* without invoking its destroy() function (if any was
* set).
* Usually, calling this function is only required to update
* user data pointers with a destroy notifier, for example:
*
* ```c
* void
* object_add_to_user_list (GObject *object,
* const gchar *new_string)
* {
* // the quark, naming the object data
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
* // retrieve the old string list
* GList *list = g_object_steal_qdata (object, quark_string_list);
*
* // prepend new string
* list = g_list_prepend (list, g_strdup (new_string));
* // this changed 'list', so we need to set it again
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
* }
* static void
* free_string_list (gpointer data)
* {
* GList *node, *list = data;
*
* for (node = list; node; node = node->next)
* g_free (node->data);
* g_list_free (list);
* }
* ```
*
* Using g_object_get_qdata() in the above example, instead of
* g_object_steal_qdata() would have left the destroy function set,
* and thus the partial string list would have been freed upon
* g_object_set_qdata_full().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
steal_qdata(quark: GLib.Quark): any | null;
/**
* Reverts the effect of a previous call to
* g_object_freeze_notify(). The freeze count is decreased on `object`
* and when it reaches zero, queued "notify" signals are emitted.
*
* Duplicate notifications for each property are squashed so that at most one
* #GObject::notify signal is emitted for each property, in the reverse order
* in which they have been queued.
*
* It is an error to call this function when the freeze count is zero.
*/
thaw_notify(): void;
/**
* Decreases the reference count of `object`. When its reference count
* drops to 0, the object is finalized (i.e. its memory is freed).
*
* If the pointer to the #GObject may be reused in future (for example, if it is
* an instance variable of another object), it is recommended to clear the
* pointer to %NULL rather than retain a dangling pointer to a potentially
* invalid #GObject instance. Use g_clear_object() for this.
*/
unref(): void;
/**
* This function essentially limits the life time of the `closure` to
* the life time of the object. That is, when the object is finalized,
* the `closure` is invalidated by calling g_closure_invalidate() on
* it, in order to prevent invocations of the closure with a finalized
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
* added as marshal guards to the `closure,` to ensure that an extra
* reference count is held on `object` during invocation of the
* `closure`. Usually, this function will be called on closures that
* use this `object` as closure data.
* @param closure #GClosure to watch
*/
watch_closure(closure: GObject.Closure): void;
/**
* the `constructed` function is called by g_object_new() as the
* final step of the object creation process. At the point of the call, all
* construction properties have been set on the object. The purpose of this
* call is to allow for object initialisation steps that can only be performed
* after construction properties have been set. `constructed` implementors
* should chain up to the `constructed` call of their parent class to allow it
* to complete its initialisation.
*/
vfunc_constructed(): void;
/**
* emits property change notification for a bunch
* of properties. Overriding `dispatch_properties_changed` should be rarely
* needed.
* @param n_pspecs
* @param pspecs
*/
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
/**
* the `dispose` function is supposed to drop all references to other
* objects, but keep the instance otherwise intact, so that client method
* invocations still work. It may be run multiple times (due to reference
* loops). Before returning, `dispose` should chain up to the `dispose` method
* of the parent class.
*/
vfunc_dispose(): void;
/**
* instance finalization function, should finish the finalization of
* the instance begun in `dispose` and chain up to the `finalize` method of the
* parent class.
*/
vfunc_finalize(): void;
/**
* the generic getter for all properties of this type. Should be
* overridden for every type with properties.
* @param property_id
* @param value
* @param pspec
*/
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param pspec
*/
vfunc_notify(pspec: GObject.ParamSpec): void;
/**
* the generic setter for all properties of this type. Should be
* overridden for every type with properties. If implementations of
* `set_property` don't emit property change notification explicitly, this will
* be done implicitly by the type system. However, if the notify signal is
* emitted explicitly, the type system will not emit it a second time.
* @param property_id
* @param value
* @param pspec
*/
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
* @param id Handler ID of the handler to be disconnected
*/
disconnect(id: number): void;
/**
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
* @param properties Object containing the properties to set
*/
set(properties: { [key: string]: any }): void;
/**
* Blocks a handler of an instance so it will not be called during any signal emissions
* @param id Handler ID of the handler to be blocked
*/
block_signal_handler(id: number): void;
/**
* Unblocks a handler so it will be called again during any signal emissions
* @param id Handler ID of the handler to be unblocked
*/
unblock_signal_handler(id: number): void;
/**
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
* @param detailedName Name of the signal to stop emission of
*/
stop_emission_by_name(detailedName: string): void;
}
namespace CallAudioFormat {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMCallAudioFormat structure contains private data and should
* only be accessed using the provided API.
*/
class CallAudioFormat extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the encoding of the audio format. For example, "pcm" for PCM-encoded
* audio.
* @returns a string with the encoding, or #NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_encoding(): string;
/**
* Gets the sampling rate of the audio format. For example, 8000 for an 8000hz
* sampling rate.
* @returns the sampling rate, or 0 if unknown.
*/
get_rate(): number;
/**
* Gets the resolution of the audio format. For example, "s16le" for signed
* 16-bit little-endian audio sampling resolution.
* @returns a string with the resolution, or #NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_resolution(): string;
}
namespace CallProperties {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMCallProperties structure contains private data and should only be
* accessed using the provided API.
*/
class CallProperties extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): CallProperties;
static new_from_dictionary(dictionary: GLib.Variant): CallProperties;
static new_from_string(str: string): CallProperties;
// Methods
get_dictionary(): GLib.Variant;
/**
* Gets the call direction.
* @returns the call direction.
*/
get_direction(): CallDirection;
/**
* Gets the number, in UTF-8.
* @returns the call number, or %NULL if it doesn't contain any (anonymous caller). Do not free the returned value, it is owned by @self.
*/
get_number(): string;
/**
* Gets the call state.
* @returns the call state.
*/
get_state(): CallState;
/**
* Gets the call state reason.
* @returns the call state reason.
*/
get_state_reason(): CallStateReason;
/**
* Sets the call direction.
* @param direction the call direction
*/
set_direction(direction: CallDirection | null): void;
/**
* Sets the call number.
* @param text The number to set, in UTF-8.
*/
set_number(text: string): void;
/**
* Sets the call state
* @param state the call state
*/
set_state(state: CallState | null): void;
/**
* Sets the call state reason.
* @param state_reason the call state reason.
*/
set_state_reason(state_reason: CallStateReason | null): void;
}
namespace CdmaManualActivationProperties {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMCdmaManualActivationProperties structure contains private data and should only be accessed
* using the provided API.
*/
class CdmaManualActivationProperties extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): CdmaManualActivationProperties;
// Methods
/**
* Gets the Mobile Directory Number.
* @returns The MDN. Do not free the returned value, it is owned by @self.
*/
get_mdn(): string;
/**
* Gets the Mobile Indentification Number.
* @returns The MIN. Do not free the returned value, it is owned by @self.
*/
get_min(): string;
/**
* Gets the MN-AAA key.
* @returns The MN-AAA key. Do not free the returned value, it is owned by @self.
*/
get_mn_aaa_key(): string;
/**
* Gets the MN-HA key.
* @returns The MN-HA key. Do not free the returned value, it is owned by @self.
*/
get_mn_ha_key(): string;
/**
* Gets the Preferred Roaming List.
* @returns The PRL. Do not free the returned value, it is owned by @self.
*/
get_prl(): [number, number];
/**
* Gets the Preferred Roaming List.
* @returns A #GByteArray with the PRL, or %NULL if it doesn't contain any. The returned value should be freed with g_byte_array_unref().
*/
get_prl_bytearray(): Uint8Array;
/**
* Gets the System Identification Number.
* @returns The SID.
*/
get_sid(): number;
/**
* Gets the Service Programming Code.
* @returns The SPC. Do not free the returned value, it is owned by @self.
*/
get_spc(): string;
/**
* Gets the Preferred Roaming List.
* @returns A #GByteArray with the PRL, or %NULL if it doesn't contain any. Do not free the returned value, it is owned by @self.
*/
peek_prl_bytearray(): Uint8Array;
/**
* Sets the Mobile Directory Number.
* @param mdn The MDN string, maximum 15 characters.
* @returns %TRUE if the MDN was successfully set, or %FALSE if @error is set.
*/
set_mdn(mdn: string): boolean;
/**
* Sets the Mobile Identification Number.
* @param min The MIN string, maximum 15 characters.
* @returns %TRUE if the MIN was successfully set, or %FALSE if @error is set.
*/
set_min(min: string): boolean;
/**
* Sets the Mobile Identification Number.
* @param mn_aaa_key The MN-AAA key string, maximum 16 characters.
* @returns %TRUE if the MN-AAA key was successfully set, or %FALSE if @error is set.
*/
set_mn_aaa_key(mn_aaa_key: string): boolean;
/**
* Sets the Mobile Identification Number.
* @param mn_ha_key The MN-HA key string, maximum 16 characters.
* @returns %TRUE if the MN-HA key was successfully set, or %FALSE if @error is set.
*/
set_mn_ha_key(mn_ha_key: string): boolean;
/**
* Sets the Preferred Roaming List.
* @param prl The PRL.
* @param prl_length Length of @prl.
* @returns %TRUE if the PRL was successfully set, or %FALSE if @error is set.
*/
set_prl(prl: number, prl_length: number): boolean;
/**
* Sets the Preferred Roaming List.
* @param prl A #GByteArray with the PRL to set. This method takes a new reference of @prl.
* @returns %TRUE if the PRL was successfully set, or %FALSE if @error is set.
*/
set_prl_bytearray(prl: Uint8Array | string): boolean;
/**
* Sets the Service Identification Number.
* @param sid The SID.
*/
set_sid(sid: number): void;
/**
* Sets the Service Programming Code.
* @param spc The SPC string, exactly 6 digits.
* @returns %TRUE if the SPC was successfully set, or %FALSE if @error is set.
*/
set_spc(spc: string): boolean;
}
namespace CellInfo {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMCellInfo structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfo extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Virtual methods
vfunc_build_string(): GLib.String;
vfunc_get_dictionary(): GLib.VariantDict;
// Methods
/**
* Get the type of cell.
* @returns a #MMCellType.
*/
get_cell_type(): CellType;
/**
* Get whether the cell is a serving cell or a neighboring cell.a
* @returns %TRUE if the cell is a serving cell, %FALSE otherwise.
*/
get_serving(): boolean;
}
namespace CellInfoCdma {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoCdma structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoCdma extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the CDMA base station id.
*
* Encoded in upper-case hexadecimal format without leading zeros.
* @returns the CDMA base station id, or %NULL if not available.
*/
get_base_station_id(): string;
/**
* Get the CDMA network id.
*
* Encoded in upper-case hexadecimal format without leading zeros.
* @returns the CDMA network id, or %NULL if not available.
*/
get_nid(): string;
/**
* Get the signal strength of the pilot.
*
* Given in the same format and scale as the GSM SINR level.
* @returns the pilot strength, or %G_MAXUINT if not available.
*/
get_pilot_strength(): number;
/**
* Get the CDMA base station PN number.
*
* Encoded in upper-case hexadecimal format without leading zeros.
* @returns the CDMA base station PN number, or %NULL if not available.
*/
get_ref_pn(): string;
/**
* Get the CDMA system id.
*
* Encoded in upper-case hexadecimal format without leading zeros.
* @returns the CDMA system id, or %NULL if not available.
*/
get_sid(): string;
}
namespace CellInfoGsm {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoGsm structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoGsm extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the absolute RF channel number.
* @returns the ARFCN, or %G_MAXUINT if not available.
*/
get_arfcn(): number;
/**
* Get the GSM base station id, in upper-case hexadecimal format without leading
* zeros. E.g. "3F".
* @returns the GSM base station id, or %NULL if not available.
*/
get_base_station_id(): string;
/**
* Get the two- or four-byte Cell Identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_ci(): string;
/**
* Get the two-byte Location Area Code of the base station.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_lac(): string;
/**
* Get the PLMN MCC/MNC.
* @returns the MCCMNC, or %NULL if not available.
*/
get_operator_id(): string;
/**
* Get the serving cell RX measurement.
* @returns the rx level, or %G_MAXUINT if not available.
*/
get_rx_level(): number;
/**
* Get the measured delay (in bit periods) of an access burst transmission
* on the RACH or PRACH to the expected signal from a mobile station at zero
* distance under static channel conditions.
* @returns the timing advance, or %G_MAXUINT if not available.
*/
get_timing_advance(): number;
}
namespace CellInfoLte {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoLte structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoLte extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the bandwidth of the particular carrier in downlink.
* @returns the bandwidth, or %G_MAXUINT if not available.
*/
get_bandwidth(): number;
/**
* Get the two- or four-byte Cell Identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_ci(): string;
/**
* Get the E-UTRA absolute RF channel number.
* @returns the EARFCN, or %G_MAXUINT if not available.
*/
get_earfcn(): number;
/**
* Get the PLMN MCC/MNC.
* @returns the MCCMNC, or %NULL if not available.
*/
get_operator_id(): string;
/**
* Get the physical cell identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_physical_ci(): string;
/**
* Get the average reference signal received power in dBm.
* @returns the RSRP, or -%G_MAXDOUBLE if not available.
*/
get_rsrp(): number;
/**
* Get the average reference signal received quality in dB.
* @returns the RSRQ, or -%G_MAXDOUBLE if not available.
*/
get_rsrq(): number;
/**
* Get the serving cell type.
* @returns the serving cell type, or %MM_SERVING_CELL_TYPE_INVALID if not available.
*/
get_serving_cell_type(): ServingCellType;
/**
* Get the two- or three- byte Tracking Area Code of the base station.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_tac(): string;
/**
* Get the timing advance.
* @returns the timing advance, or %G_MAXUINT if not available.
*/
get_timing_advance(): number;
}
namespace CellInfoNr5g {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoNr5g structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoNr5g extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the bandwidth of the particular carrier in downlink.
* @returns the bandwidth, or %G_MAXUINT if not available.
*/
get_bandwidth(): number;
/**
* Get the two- or four-byte Cell Identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_ci(): string;
/**
* Get the NR absolute RF channel number.
* @returns the NRARFCN, or %G_MAXUINT if not available.
*/
get_nrarfcn(): number;
/**
* Get the PLMN MCC/MNC.
* @returns the MCCMNC, or %NULL if not available.
*/
get_operator_id(): string;
/**
* Get the physical cell identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_physical_ci(): string;
/**
* Get the average reference signal received power in dBm.
* @returns the RSRP, or -%G_MAXDOUBLE if not available.
*/
get_rsrp(): number;
/**
* Get the average reference signal received quality in dB.
* @returns the RSRQ, or -%G_MAXDOUBLE if not available.
*/
get_rsrq(): number;
/**
* Get the serving cell type.
* @returns the serving cell type, or %MM_SERVING_CELL_TYPE_INVALID if not available.
*/
get_serving_cell_type(): ServingCellType;
/**
* Get the signal to interference and noise ratio.
* @returns the SINR, or -%G_MAXDOUBLE if not available.
*/
get_sinr(): number;
/**
* Get the two- or three- byte Tracking Area Code of the base station.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_tac(): string;
/**
* Get the timing advance.
* @returns the timing advance, or %G_MAXUINT if not available.
*/
get_timing_advance(): number;
}
namespace CellInfoTdscdma {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoTdscdma structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoTdscdma extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the cell parameter id.
* @returns the cell parameter id, or %G_MAXUINT if not available.
*/
get_cell_parameter_id(): number;
/**
* Get the two- or four-byte Cell Identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_ci(): string;
/**
* Get the two-byte Location Area Code of the base station.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_lac(): string;
/**
* Get the PLMN MCC/MNC.
* @returns the MCCMNC, or %NULL if not available.
*/
get_operator_id(): string;
/**
* Get the path loss of the cell.
* @returns the path loss, or %G_MAXUINT if not available.
*/
get_path_loss(): number;
/**
* Get the received signal code power.
* @returns the RSCP, or -%G_MAXDOUBLE if not available.
*/
get_rscp(): number;
/**
* Get the measured delay (in bit periods) of an access burst transmission
* on the RACH or PRACH to the expected signal from a mobile station at zero
* distance under static channel conditions.
* @returns the timing advance, or %G_MAXUINT if not available.
*/
get_timing_advance(): number;
/**
* Get the UTRA absolute RF channel number.
* @returns the UARFCN, or %G_MAXUINT if not available.
*/
get_uarfcn(): number;
}
namespace CellInfoUmts {
// Constructor properties interface
interface ConstructorProps extends CellInfo.ConstructorProps {}
}
/**
* The #MMCellInfoUmts structure contains private data and should only be
* accessed using the provided API.
*/
class CellInfoUmts extends CellInfo {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Get the two- or four-byte Cell Identifier.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_ci(): string;
/**
* Get the ECIO, the received energy per chip divided by the power density
* in the band measured in dBm on the primary CPICH channel of the cell.
* @returns the ECIO, or -%G_MAXDOUBLE if not available.
*/
get_ecio(): number;
/**
* Get the frequency of the downlink in kHz while in FDD.
* @returns the frequency, or %G_MAXUINT if not available.
*/
get_frequency_fdd_dl(): number;
/**
* Get the frequency of the uplink in kHz while in FDD.
* @returns the frequency, or %G_MAXUINT if not available.
*/
get_frequency_fdd_ul(): number;
/**
* Get the frequency in kHz while in TDD.
* @returns the frequency, or %G_MAXUINT if not available.
*/
get_frequency_tdd(): number;
/**
* Get the two-byte Location Area Code of the base station.
*
* Encoded in upper-case hexadecimal format without leading zeros,
* as specified in 3GPP TS 27.007.
* @returns the MCCMNC, or %NULL if not available.
*/
get_lac(): string;
/**
* Get the PLMN MCC/MNC.
* @returns the MCCMNC, or %NULL if not available.
*/
get_operator_id(): string;
/**
* Get the path loss of the cell.
* @returns the path loss, or %G_MAXUINT if not available.
*/
get_path_loss(): number;
/**
* Get the primary scrambling code.
* @returns the PSC, or %G_MAXUINT if not available.
*/
get_psc(): number;
/**
* Get the received signal code power.
* @returns the RSCP, or -%G_MAXDOUBLE if not available.
*/
get_rscp(): number;
/**
* Get the UTRA absolute RF channel number.
* @returns the UARFCN, or %G_MAXUINT if not available.
*/
get_uarfcn(): number;
}
namespace FirmwareProperties {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMFirmwareProperties structure contains private data and should only be accessed
* using the provided API.
*/
class FirmwareProperties extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](image_type: FirmwareImageType, unique_id: string): FirmwareProperties;
static new_from_dictionary(dictionary: GLib.Variant): FirmwareProperties;
// Methods
get_dictionary(): GLib.Variant;
/**
* Gets the boot version of a firmware image of type
* %MM_FIRMWARE_IMAGE_TYPE_GOBI.
* @returns The boot version, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gobi_boot_version(): string;
/**
* Gets the MODEM unique ID of a firmware image of type
* %MM_FIRMWARE_IMAGE_TYPE_GOBI.
* @returns The PRI unique ID, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gobi_modem_unique_id(): string;
/**
* Gets the PRI info of a firmware image of type %MM_FIRMWARE_IMAGE_TYPE_GOBI.
* @returns The PRI info, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gobi_pri_info(): string;
/**
* Gets the PRI unique ID of a firmware image of type
* %MM_FIRMWARE_IMAGE_TYPE_GOBI.
* @returns The PRI unique ID, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gobi_pri_unique_id(): string;
/**
* Gets the PRI version of a firmware image of type %MM_FIRMWARE_IMAGE_TYPE_GOBI.
* @returns The PRI version, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_gobi_pri_version(): string;
/**
* Gets the type of the firmare image.
* @returns A #MMFirmwareImageType specifying The type of the image.
*/
get_image_type(): FirmwareImageType;
/**
* Gets the unique ID of the firmare image.
* @returns The ID of the image. Do not free the returned value, it is owned by @self.
*/
get_unique_id(): string;
set_gobi_boot_version(version: string): void;
set_gobi_modem_unique_id(id: string): void;
set_gobi_pri_info(info: string): void;
set_gobi_pri_unique_id(id: string): void;
set_gobi_pri_version(version: string): void;
}
namespace FirmwareUpdateSettings {
// Constructor properties interface
interface ConstructorProps extends GObject.Object.ConstructorProps {}
}
/**
* The #MMFirmwareUpdateSettings structure contains private data and should only be accessed
* using the provided API.
*/
class FirmwareUpdateSettings extends GObject.Object {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
// Methods
/**
* Gets the list of device ids used to identify the device during a firmware
* update operation.
* @returns The list of device ids, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_device_ids(): string[];
/**
* Gets the AT command that should be sent to the module to trigger a reset
* into fastboot mode.
*
* Only applicable if the update method includes
* %MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT.
* @returns The AT command string, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_fastboot_at(): string;
/**
* Gets the methods to use during the firmware update operation.
* @returns a bitmask of #MMModemFirmwareUpdateMethod values.
*/
get_method(): ModemFirmwareUpdateMethod;
/**
* Gets firmware version string.
* @returns The version string, or %NULL if unknown. Do not free the returned value, it is owned by @self.
*/
get_version(): string;
}
namespace GdbusBearerProxy {
// Constructor properties interface
interface ConstructorProps
extends Gio.DBusProxy.ConstructorProps,
Gio.AsyncInitable.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
Gio.Initable.ConstructorProps,
GdbusBearer.ConstructorProps {}
}
/**
* The #MmGdbusBearerProxy structure contains only private data and should only be accessed using the provided API.
*/
class GdbusBearerProxy
extends Gio.DBusProxy
implements Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, GdbusBearer
{
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static new_finish(res: Gio.AsyncResult): GdbusBearerProxy;
// Conflicted with Gio.AsyncInitable.new_finish
static new_finish(...args: never[]): any;
static new_for_bus_finish(res: Gio.AsyncResult): GdbusBearerProxy;
static new_for_bus_sync(
bus_type: Gio.BusType,
flags: Gio.DBusProxyFlags,
name: string,
object_path: string,
cancellable?: Gio.Cancellable | null,
): GdbusBearerProxy;
// Conflicted with Gio.DBusProxy.new_for_bus_sync
static new_for_bus_sync(...args: never[]): any;
static new_sync(
connection: Gio.DBusConnection,
flags: Gio.DBusProxyFlags,
name: string | null,
object_path: string,
cancellable?: Gio.Cancellable | null,
): GdbusBearerProxy;
// Conflicted with Gio.DBusProxy.new_sync
static new_sync(...args: never[]): any;
// Static methods
/**
* Asynchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Bearer. See g_dbus_proxy_new() for more details.
*
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_proxy_new_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_proxy_new_sync() for the synchronous, blocking version of this constructor.
* @param connection A #GDBusConnection.
* @param flags Flags from the #GDBusProxyFlags enumeration.
* @param name A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
* @param object_path An object path.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
*/
static ['new'](
connection: Gio.DBusConnection,
flags: Gio.DBusProxyFlags,
name: string | null,
object_path: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
// Conflicted with Gio.DBusProxy.new
static ['new'](...args: never[]): any;
/**
* Like mm_gdbus_bearer_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
*
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_proxy_new_for_bus_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
* @param bus_type A #GBusType.
* @param flags Flags from the #GDBusProxyFlags enumeration.
* @param name A bus name (well-known or unique).
* @param object_path An object path.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
*/
static new_for_bus(
bus_type: Gio.BusType,
flags: Gio.DBusProxyFlags,
name: string,
object_path: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
// Conflicted with Gio.DBusProxy.new_for_bus
static new_for_bus(...args: never[]): any;
// Inherited properties
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearer_type(): number;
set bearer_type(val: number);
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearerType(): number;
set bearerType(val: number);
/**
* Represents the D-Bus property "Connected".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connected(): boolean;
set connected(val: boolean);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connection_error(): GLib.Variant;
set connection_error(val: GLib.Variant);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connectionError(): GLib.Variant;
set connectionError(val: GLib.Variant);
/**
* Represents the D-Bus property "Interface".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get interface(): string;
set interface(val: string);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip_timeout(): number;
set ip_timeout(val: number);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ipTimeout(): number;
set ipTimeout(val: number);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4_config(): GLib.Variant;
set ip4_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4Config(): GLib.Variant;
set ip4Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6_config(): GLib.Variant;
set ip6_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6Config(): GLib.Variant;
set ip6Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Multiplexed".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiplexed(): boolean;
set multiplexed(val: boolean);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profile_id(): number;
set profile_id(val: number);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profileId(): number;
set profileId(val: number);
/**
* Represents the D-Bus property "Properties".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get properties(): GLib.Variant;
set properties(val: GLib.Variant);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reload_stats_supported(): boolean;
set reload_stats_supported(val: boolean);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reloadStatsSupported(): boolean;
set reloadStatsSupported(val: boolean);
/**
* Represents the D-Bus property "Stats".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stats(): GLib.Variant;
set stats(val: GLib.Variant);
/**
* Represents the D-Bus property "Suspended".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get suspended(): boolean;
set suspended(val: boolean);
// Inherited methods
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
init_async(io_priority: number, cancellable?: Gio.Cancellable | null): Promise;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init_finish(res: Gio.AsyncResult): boolean;
/**
* Finishes the async construction for the various g_async_initable_new
* calls, returning the created object or %NULL on error.
* @param res the #GAsyncResult from the callback
* @returns a newly created #GObject, or %NULL on error. Free with g_object_unref().
*/
new_finish(res: Gio.AsyncResult): GdbusBearerProxy;
// Conflicted with Gio.DBusProxy.new_finish
new_finish(...args: never[]): any;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
vfunc_init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
*/
vfunc_init_finish(res: Gio.AsyncResult): boolean;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
* @returns A #GDBusObject or %NULL. The returned reference should be freed with g_object_unref().
*/
get_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
set_object(object?: Gio.DBusObject | null): void;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
*/
vfunc_dup_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
*/
vfunc_get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
vfunc_set_object(object?: Gio.DBusObject | null): void;
/**
* Initializes the object implementing the interface.
*
* This method is intended for language bindings. If writing in C,
* g_initable_new() should typically be used instead.
*
* The object must be initialized before any real use after initial
* construction, either with this function or g_async_initable_init_async().
*
* Implementations may also support cancellation. If `cancellable` is not %NULL,
* then initialization can be cancelled by triggering the cancellable object
* from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL and
* the object doesn't support cancellable initialization the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* If the object is not initialized, or initialization returns with an
* error, then all operations on the object except g_object_ref() and
* g_object_unref() are considered to be invalid, and have undefined
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
*
* Callers should not assume that a class which implements #GInitable can be
* initialized multiple times, unless the class explicitly documents itself as
* supporting this. Generally, a class’ implementation of init() can assume
* (and assert) that it will only be called once. Previously, this documentation
* recommended all #GInitable implementations should be idempotent; that
* recommendation was relaxed in GLib 2.54.
*
* If a class explicitly supports being initialized multiple times, it is
* recommended that the method is idempotent: multiple calls with the same
* arguments should return the same results. Only the first call initializes
* the object; further calls return the result of the first call.
*
* One reason why a class might need to support idempotent initialization is if
* it is designed to be used via the singleton pattern, with a
* #GObjectClass.constructor that sometimes returns an existing instance.
* In this pattern, a caller would expect to be able to call g_initable_init()
* on the result of g_object_new(), regardless of whether it is in fact a new
* instance.
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init(cancellable?: Gio.Cancellable | null): boolean;
/**
* Initializes the object implementing the interface.
*
* This method is intended for language bindings. If writing in C,
* g_initable_new() should typically be used instead.
*
* The object must be initialized before any real use after initial
* construction, either with this function or g_async_initable_init_async().
*
* Implementations may also support cancellation. If `cancellable` is not %NULL,
* then initialization can be cancelled by triggering the cancellable object
* from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL and
* the object doesn't support cancellable initialization the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* If the object is not initialized, or initialization returns with an
* error, then all operations on the object except g_object_ref() and
* g_object_unref() are considered to be invalid, and have undefined
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
*
* Callers should not assume that a class which implements #GInitable can be
* initialized multiple times, unless the class explicitly documents itself as
* supporting this. Generally, a class’ implementation of init() can assume
* (and assert) that it will only be called once. Previously, this documentation
* recommended all #GInitable implementations should be idempotent; that
* recommendation was relaxed in GLib 2.54.
*
* If a class explicitly supports being initialized multiple times, it is
* recommended that the method is idempotent: multiple calls with the same
* arguments should return the same results. Only the first call initializes
* the object; further calls return the result of the first call.
*
* One reason why a class might need to support idempotent initialization is if
* it is designed to be used via the singleton pattern, with a
* #GObjectClass.constructor that sometimes returns an existing instance.
* In this pattern, a caller would expect to be able to call g_initable_init()
* on the result of g_object_new(), regardless of whether it is in fact a new
* instance.
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
vfunc_init(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_connect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_connect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_connect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Connect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_connect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_disconnect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_disconnect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_disconnect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Disconnect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_disconnect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Helper function used in service implementations to finish handling invocations of the Connect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_connect(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Disconnect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_disconnect(invocation: Gio.DBusMethodInvocation): void;
vfunc_handle_connect(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_disconnect(invocation: Gio.DBusMethodInvocation): boolean;
/**
* Creates a binding between `source_property` on `source` and `target_property`
* on `target`.
*
* Whenever the `source_property` is changed the `target_property` is
* updated using the same value. For instance:
*
*
* ```c
* g_object_bind_property (action, "active", widget, "sensitive", 0);
* ```
*
*
* Will result in the "sensitive" property of the widget #GObject instance to be
* updated with the same value of the "active" property of the action #GObject
* instance.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well.
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. To remove the binding without affecting the
* `source` and the `target` you can just call g_object_unref() on the returned
* #GBinding instance.
*
* Removing the binding by calling g_object_unref() on it must only be done if
* the binding, `source` and `target` are only used from a single thread and it
* is clear that both `source` and `target` outlive the binding. Especially it
* is not safe to rely on this if the binding, `source` or `target` can be
* finalized from different threads. Keep another reference to the binding and
* use g_binding_unbind() instead to be on the safe side.
*
* A #GObject can have multiple bindings.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
): GObject.Binding;
/**
* Complete version of g_object_bind_property().
*
* Creates a binding between `source_property` on `source` and `target_property`
* on `target,` allowing you to set the transformation functions to be used by
* the binding.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well. The `transform_from` function is only used in case
* of bidirectional bindings, otherwise it will be ignored
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. This will release the reference that is
* being held on the #GBinding instance; if you want to hold on to the
* #GBinding instance, you will need to hold a reference to it.
*
* To remove the binding, call g_binding_unbind().
*
* A #GObject can have multiple bindings.
*
* The same `user_data` parameter will be used for both `transform_to`
* and `transform_from` transformation functions; the `notify` function will
* be called once, when the binding is removed. If you need different data
* for each transformation function, please use
* g_object_bind_property_with_closures() instead.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property_full(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
transform_to?: GObject.BindingTransformFunc | null,
transform_from?: GObject.BindingTransformFunc | null,
notify?: GLib.DestroyNotify | null,
): GObject.Binding;
// Conflicted with GObject.Object.bind_property_full
bind_property_full(...args: never[]): any;
/**
* This function is intended for #GObject implementations to re-enforce
* a [floating][floating-ref] object reference. Doing this is seldom
* required: all #GInitiallyUnowneds are created with a floating reference
* which usually just needs to be sunken by calling g_object_ref_sink().
*/
force_floating(): void;
/**
* Increases the freeze count on `object`. If the freeze count is
* non-zero, the emission of "notify" signals on `object` is
* stopped. The signals are queued until the freeze count is decreased
* to zero. Duplicate notifications are squashed so that at most one
* #GObject::notify signal is emitted for each property modified while the
* object is frozen.
*
* This is necessary for accessors that modify multiple properties to prevent
* premature notification while the object is still being modified.
*/
freeze_notify(): void;
/**
* Gets a named field from the objects table of associations (see g_object_set_data()).
* @param key name of the key for that association
* @returns the data if found, or %NULL if no such data exists.
*/
get_data(key: string): any | null;
/**
* Gets a property of an object.
*
* The value can be:
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
* - a GObject.Value initialized with the expected type of the property
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
*
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
*
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
* @param property_name The name of the property to get
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
*/
get_property(property_name: string, value: GObject.Value | any): any;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
get_qdata(quark: GLib.Quark): any | null;
/**
* Gets `n_properties` properties for an `object`.
* Obtained properties will be set to `values`. All properties must be valid.
* Warnings will be emitted and undefined behaviour may result if invalid
* properties are passed in.
* @param names the names of each property to get
* @param values the values of each property to get
*/
getv(names: string[], values: (GObject.Value | any)[]): void;
/**
* Checks whether `object` has a [floating][floating-ref] reference.
* @returns %TRUE if @object has a floating reference
*/
is_floating(): boolean;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param property_name the name of a property installed on the class of @object.
*/
notify(property_name: string): void;
/**
* Emits a "notify" signal for the property specified by `pspec` on `object`.
*
* This function omits the property name lookup, hence it is faster than
* g_object_notify().
*
* One way to avoid using g_object_notify() from within the
* class that registered the properties, and using g_object_notify_by_pspec()
* instead, is to store the GParamSpec used with
* g_object_class_install_property() inside a static array, e.g.:
*
*
* ```c
* typedef enum
* {
* PROP_FOO = 1,
* PROP_LAST
* } MyObjectProperty;
*
* static GParamSpec *properties[PROP_LAST];
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* g_object_class_install_property (gobject_class,
* PROP_FOO,
* properties[PROP_FOO]);
* }
* ```
*
*
* and then notify a change on the "foo" property with:
*
*
* ```c
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
* ```
*
* @param pspec the #GParamSpec of a property installed on the class of @object.
*/
notify_by_pspec(pspec: GObject.ParamSpec): void;
/**
* Increases the reference count of `object`.
*
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
* of `object` will be propagated to the return type (using the GCC typeof()
* extension), so any casting the caller needs to do on the return type must be
* explicit.
* @returns the same @object
*/
ref(): GObject.Object;
/**
* Increase the reference count of `object,` and possibly remove the
* [floating][floating-ref] reference, if `object` has a floating reference.
*
* In other words, if the object is floating, then this call "assumes
* ownership" of the floating reference, converting it to a normal
* reference by clearing the floating flag while leaving the reference
* count unchanged. If the object is not floating, then this call
* adds a new normal reference increasing the reference count by one.
*
* Since GLib 2.56, the type of `object` will be propagated to the return type
* under the same conditions as for g_object_ref().
* @returns @object
*/
ref_sink(): GObject.Object;
/**
* Releases all references to other objects. This can be used to break
* reference cycles.
*
* This function should only be called from object system implementations.
*/
run_dispose(): void;
/**
* Each object carries around a table of associations from
* strings to pointers. This function lets you set an association.
*
* If the object already had an association with that name,
* the old association will be destroyed.
*
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
* This means a copy of `key` is kept permanently (even after `object` has been
* finalized) — so it is recommended to only use a small, bounded set of values
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
* @param key name of the key
* @param data data to associate with that key
*/
set_data(key: string, data?: any | null): void;
/**
* Sets a property on an object.
* @param property_name The name of the property to set
* @param value The value to set the property to
*/
set_property(property_name: string, value: GObject.Value | any): void;
/**
* Remove a specified datum from the object's data associations,
* without invoking the association's destroy handler.
* @param key name of the key
* @returns the data if found, or %NULL if no such data exists.
*/
steal_data(key: string): any | null;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata() and removes the `data` from object
* without invoking its destroy() function (if any was
* set).
* Usually, calling this function is only required to update
* user data pointers with a destroy notifier, for example:
*
* ```c
* void
* object_add_to_user_list (GObject *object,
* const gchar *new_string)
* {
* // the quark, naming the object data
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
* // retrieve the old string list
* GList *list = g_object_steal_qdata (object, quark_string_list);
*
* // prepend new string
* list = g_list_prepend (list, g_strdup (new_string));
* // this changed 'list', so we need to set it again
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
* }
* static void
* free_string_list (gpointer data)
* {
* GList *node, *list = data;
*
* for (node = list; node; node = node->next)
* g_free (node->data);
* g_list_free (list);
* }
* ```
*
* Using g_object_get_qdata() in the above example, instead of
* g_object_steal_qdata() would have left the destroy function set,
* and thus the partial string list would have been freed upon
* g_object_set_qdata_full().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
steal_qdata(quark: GLib.Quark): any | null;
/**
* Reverts the effect of a previous call to
* g_object_freeze_notify(). The freeze count is decreased on `object`
* and when it reaches zero, queued "notify" signals are emitted.
*
* Duplicate notifications for each property are squashed so that at most one
* #GObject::notify signal is emitted for each property, in the reverse order
* in which they have been queued.
*
* It is an error to call this function when the freeze count is zero.
*/
thaw_notify(): void;
/**
* Decreases the reference count of `object`. When its reference count
* drops to 0, the object is finalized (i.e. its memory is freed).
*
* If the pointer to the #GObject may be reused in future (for example, if it is
* an instance variable of another object), it is recommended to clear the
* pointer to %NULL rather than retain a dangling pointer to a potentially
* invalid #GObject instance. Use g_clear_object() for this.
*/
unref(): void;
/**
* This function essentially limits the life time of the `closure` to
* the life time of the object. That is, when the object is finalized,
* the `closure` is invalidated by calling g_closure_invalidate() on
* it, in order to prevent invocations of the closure with a finalized
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
* added as marshal guards to the `closure,` to ensure that an extra
* reference count is held on `object` during invocation of the
* `closure`. Usually, this function will be called on closures that
* use this `object` as closure data.
* @param closure #GClosure to watch
*/
watch_closure(closure: GObject.Closure): void;
/**
* the `constructed` function is called by g_object_new() as the
* final step of the object creation process. At the point of the call, all
* construction properties have been set on the object. The purpose of this
* call is to allow for object initialisation steps that can only be performed
* after construction properties have been set. `constructed` implementors
* should chain up to the `constructed` call of their parent class to allow it
* to complete its initialisation.
*/
vfunc_constructed(): void;
/**
* emits property change notification for a bunch
* of properties. Overriding `dispatch_properties_changed` should be rarely
* needed.
* @param n_pspecs
* @param pspecs
*/
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
/**
* the `dispose` function is supposed to drop all references to other
* objects, but keep the instance otherwise intact, so that client method
* invocations still work. It may be run multiple times (due to reference
* loops). Before returning, `dispose` should chain up to the `dispose` method
* of the parent class.
*/
vfunc_dispose(): void;
/**
* instance finalization function, should finish the finalization of
* the instance begun in `dispose` and chain up to the `finalize` method of the
* parent class.
*/
vfunc_finalize(): void;
/**
* the generic getter for all properties of this type. Should be
* overridden for every type with properties.
* @param property_id
* @param value
* @param pspec
*/
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param pspec
*/
vfunc_notify(pspec: GObject.ParamSpec): void;
/**
* the generic setter for all properties of this type. Should be
* overridden for every type with properties. If implementations of
* `set_property` don't emit property change notification explicitly, this will
* be done implicitly by the type system. However, if the notify signal is
* emitted explicitly, the type system will not emit it a second time.
* @param property_id
* @param value
* @param pspec
*/
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
* @param id Handler ID of the handler to be disconnected
*/
disconnect(id: number): void;
/**
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
* @param properties Object containing the properties to set
*/
set(properties: { [key: string]: any }): void;
/**
* Blocks a handler of an instance so it will not be called during any signal emissions
* @param id Handler ID of the handler to be blocked
*/
block_signal_handler(id: number): void;
/**
* Unblocks a handler so it will be called again during any signal emissions
* @param id Handler ID of the handler to be unblocked
*/
unblock_signal_handler(id: number): void;
/**
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
* @param detailedName Name of the signal to stop emission of
*/
stop_emission_by_name(detailedName: string): void;
}
namespace GdbusBearerSkeleton {
// Constructor properties interface
interface ConstructorProps
extends Gio.DBusInterfaceSkeleton.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
GdbusBearer.ConstructorProps {}
}
/**
* The #MmGdbusBearerSkeleton structure contains only private data and should only be accessed using the provided API.
*/
class GdbusBearerSkeleton extends Gio.DBusInterfaceSkeleton implements Gio.DBusInterface, GdbusBearer {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): GdbusBearerSkeleton;
// Inherited properties
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearer_type(): number;
set bearer_type(val: number);
/**
* Represents the D-Bus property "BearerType".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get bearerType(): number;
set bearerType(val: number);
/**
* Represents the D-Bus property "Connected".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connected(): boolean;
set connected(val: boolean);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connection_error(): GLib.Variant;
set connection_error(val: GLib.Variant);
/**
* Represents the D-Bus property "ConnectionError".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get connectionError(): GLib.Variant;
set connectionError(val: GLib.Variant);
/**
* Represents the D-Bus property "Interface".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get interface(): string;
set interface(val: string);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip_timeout(): number;
set ip_timeout(val: number);
/**
* Represents the D-Bus property "IpTimeout".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ipTimeout(): number;
set ipTimeout(val: number);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4_config(): GLib.Variant;
set ip4_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip4Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip4Config(): GLib.Variant;
set ip4Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6_config(): GLib.Variant;
set ip6_config(val: GLib.Variant);
/**
* Represents the D-Bus property "Ip6Config".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get ip6Config(): GLib.Variant;
set ip6Config(val: GLib.Variant);
/**
* Represents the D-Bus property "Multiplexed".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiplexed(): boolean;
set multiplexed(val: boolean);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profile_id(): number;
set profile_id(val: number);
/**
* Represents the D-Bus property "ProfileId".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get profileId(): number;
set profileId(val: number);
/**
* Represents the D-Bus property "Properties".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get properties(): GLib.Variant;
set properties(val: GLib.Variant);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reload_stats_supported(): boolean;
set reload_stats_supported(val: boolean);
/**
* Represents the D-Bus property "ReloadStatsSupported".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get reloadStatsSupported(): boolean;
set reloadStatsSupported(val: boolean);
/**
* Represents the D-Bus property "Stats".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stats(): GLib.Variant;
set stats(val: GLib.Variant);
/**
* Represents the D-Bus property "Suspended".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get suspended(): boolean;
set suspended(val: boolean);
// Inherited methods
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
* @returns A #GDBusObject or %NULL. The returned reference should be freed with g_object_unref().
*/
get_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
set_object(object?: Gio.DBusObject | null): void;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
*/
vfunc_dup_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
*/
vfunc_get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
vfunc_set_object(object?: Gio.DBusObject | null): void;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_connect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Connect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_connect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_connect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_connect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_connect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_connect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Connect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_connect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_connect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_disconnect(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Disconnect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_bearer_call_disconnect_finish() to get the result of the operation.
*
* See mm_gdbus_bearer_call_disconnect_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_disconnect(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_bearer_call_disconnect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_bearer_call_disconnect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Disconnect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_bearer_call_disconnect() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_disconnect_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Helper function used in service implementations to finish handling invocations of the Connect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_connect(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Disconnect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_disconnect(invocation: Gio.DBusMethodInvocation): void;
vfunc_handle_connect(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_disconnect(invocation: Gio.DBusMethodInvocation): boolean;
/**
* Creates a binding between `source_property` on `source` and `target_property`
* on `target`.
*
* Whenever the `source_property` is changed the `target_property` is
* updated using the same value. For instance:
*
*
* ```c
* g_object_bind_property (action, "active", widget, "sensitive", 0);
* ```
*
*
* Will result in the "sensitive" property of the widget #GObject instance to be
* updated with the same value of the "active" property of the action #GObject
* instance.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well.
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. To remove the binding without affecting the
* `source` and the `target` you can just call g_object_unref() on the returned
* #GBinding instance.
*
* Removing the binding by calling g_object_unref() on it must only be done if
* the binding, `source` and `target` are only used from a single thread and it
* is clear that both `source` and `target` outlive the binding. Especially it
* is not safe to rely on this if the binding, `source` or `target` can be
* finalized from different threads. Keep another reference to the binding and
* use g_binding_unbind() instead to be on the safe side.
*
* A #GObject can have multiple bindings.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
): GObject.Binding;
/**
* Complete version of g_object_bind_property().
*
* Creates a binding between `source_property` on `source` and `target_property`
* on `target,` allowing you to set the transformation functions to be used by
* the binding.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well. The `transform_from` function is only used in case
* of bidirectional bindings, otherwise it will be ignored
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. This will release the reference that is
* being held on the #GBinding instance; if you want to hold on to the
* #GBinding instance, you will need to hold a reference to it.
*
* To remove the binding, call g_binding_unbind().
*
* A #GObject can have multiple bindings.
*
* The same `user_data` parameter will be used for both `transform_to`
* and `transform_from` transformation functions; the `notify` function will
* be called once, when the binding is removed. If you need different data
* for each transformation function, please use
* g_object_bind_property_with_closures() instead.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property_full(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
transform_to?: GObject.BindingTransformFunc | null,
transform_from?: GObject.BindingTransformFunc | null,
notify?: GLib.DestroyNotify | null,
): GObject.Binding;
// Conflicted with GObject.Object.bind_property_full
bind_property_full(...args: never[]): any;
/**
* This function is intended for #GObject implementations to re-enforce
* a [floating][floating-ref] object reference. Doing this is seldom
* required: all #GInitiallyUnowneds are created with a floating reference
* which usually just needs to be sunken by calling g_object_ref_sink().
*/
force_floating(): void;
/**
* Increases the freeze count on `object`. If the freeze count is
* non-zero, the emission of "notify" signals on `object` is
* stopped. The signals are queued until the freeze count is decreased
* to zero. Duplicate notifications are squashed so that at most one
* #GObject::notify signal is emitted for each property modified while the
* object is frozen.
*
* This is necessary for accessors that modify multiple properties to prevent
* premature notification while the object is still being modified.
*/
freeze_notify(): void;
/**
* Gets a named field from the objects table of associations (see g_object_set_data()).
* @param key name of the key for that association
* @returns the data if found, or %NULL if no such data exists.
*/
get_data(key: string): any | null;
/**
* Gets a property of an object.
*
* The value can be:
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
* - a GObject.Value initialized with the expected type of the property
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
*
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
*
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
* @param property_name The name of the property to get
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
*/
get_property(property_name: string, value: GObject.Value | any): any;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
get_qdata(quark: GLib.Quark): any | null;
/**
* Gets `n_properties` properties for an `object`.
* Obtained properties will be set to `values`. All properties must be valid.
* Warnings will be emitted and undefined behaviour may result if invalid
* properties are passed in.
* @param names the names of each property to get
* @param values the values of each property to get
*/
getv(names: string[], values: (GObject.Value | any)[]): void;
/**
* Checks whether `object` has a [floating][floating-ref] reference.
* @returns %TRUE if @object has a floating reference
*/
is_floating(): boolean;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param property_name the name of a property installed on the class of @object.
*/
notify(property_name: string): void;
/**
* Emits a "notify" signal for the property specified by `pspec` on `object`.
*
* This function omits the property name lookup, hence it is faster than
* g_object_notify().
*
* One way to avoid using g_object_notify() from within the
* class that registered the properties, and using g_object_notify_by_pspec()
* instead, is to store the GParamSpec used with
* g_object_class_install_property() inside a static array, e.g.:
*
*
* ```c
* typedef enum
* {
* PROP_FOO = 1,
* PROP_LAST
* } MyObjectProperty;
*
* static GParamSpec *properties[PROP_LAST];
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* g_object_class_install_property (gobject_class,
* PROP_FOO,
* properties[PROP_FOO]);
* }
* ```
*
*
* and then notify a change on the "foo" property with:
*
*
* ```c
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
* ```
*
* @param pspec the #GParamSpec of a property installed on the class of @object.
*/
notify_by_pspec(pspec: GObject.ParamSpec): void;
/**
* Increases the reference count of `object`.
*
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
* of `object` will be propagated to the return type (using the GCC typeof()
* extension), so any casting the caller needs to do on the return type must be
* explicit.
* @returns the same @object
*/
ref(): GObject.Object;
/**
* Increase the reference count of `object,` and possibly remove the
* [floating][floating-ref] reference, if `object` has a floating reference.
*
* In other words, if the object is floating, then this call "assumes
* ownership" of the floating reference, converting it to a normal
* reference by clearing the floating flag while leaving the reference
* count unchanged. If the object is not floating, then this call
* adds a new normal reference increasing the reference count by one.
*
* Since GLib 2.56, the type of `object` will be propagated to the return type
* under the same conditions as for g_object_ref().
* @returns @object
*/
ref_sink(): GObject.Object;
/**
* Releases all references to other objects. This can be used to break
* reference cycles.
*
* This function should only be called from object system implementations.
*/
run_dispose(): void;
/**
* Each object carries around a table of associations from
* strings to pointers. This function lets you set an association.
*
* If the object already had an association with that name,
* the old association will be destroyed.
*
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
* This means a copy of `key` is kept permanently (even after `object` has been
* finalized) — so it is recommended to only use a small, bounded set of values
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
* @param key name of the key
* @param data data to associate with that key
*/
set_data(key: string, data?: any | null): void;
/**
* Sets a property on an object.
* @param property_name The name of the property to set
* @param value The value to set the property to
*/
set_property(property_name: string, value: GObject.Value | any): void;
/**
* Remove a specified datum from the object's data associations,
* without invoking the association's destroy handler.
* @param key name of the key
* @returns the data if found, or %NULL if no such data exists.
*/
steal_data(key: string): any | null;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata() and removes the `data` from object
* without invoking its destroy() function (if any was
* set).
* Usually, calling this function is only required to update
* user data pointers with a destroy notifier, for example:
*
* ```c
* void
* object_add_to_user_list (GObject *object,
* const gchar *new_string)
* {
* // the quark, naming the object data
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
* // retrieve the old string list
* GList *list = g_object_steal_qdata (object, quark_string_list);
*
* // prepend new string
* list = g_list_prepend (list, g_strdup (new_string));
* // this changed 'list', so we need to set it again
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
* }
* static void
* free_string_list (gpointer data)
* {
* GList *node, *list = data;
*
* for (node = list; node; node = node->next)
* g_free (node->data);
* g_list_free (list);
* }
* ```
*
* Using g_object_get_qdata() in the above example, instead of
* g_object_steal_qdata() would have left the destroy function set,
* and thus the partial string list would have been freed upon
* g_object_set_qdata_full().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
steal_qdata(quark: GLib.Quark): any | null;
/**
* Reverts the effect of a previous call to
* g_object_freeze_notify(). The freeze count is decreased on `object`
* and when it reaches zero, queued "notify" signals are emitted.
*
* Duplicate notifications for each property are squashed so that at most one
* #GObject::notify signal is emitted for each property, in the reverse order
* in which they have been queued.
*
* It is an error to call this function when the freeze count is zero.
*/
thaw_notify(): void;
/**
* Decreases the reference count of `object`. When its reference count
* drops to 0, the object is finalized (i.e. its memory is freed).
*
* If the pointer to the #GObject may be reused in future (for example, if it is
* an instance variable of another object), it is recommended to clear the
* pointer to %NULL rather than retain a dangling pointer to a potentially
* invalid #GObject instance. Use g_clear_object() for this.
*/
unref(): void;
/**
* This function essentially limits the life time of the `closure` to
* the life time of the object. That is, when the object is finalized,
* the `closure` is invalidated by calling g_closure_invalidate() on
* it, in order to prevent invocations of the closure with a finalized
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
* added as marshal guards to the `closure,` to ensure that an extra
* reference count is held on `object` during invocation of the
* `closure`. Usually, this function will be called on closures that
* use this `object` as closure data.
* @param closure #GClosure to watch
*/
watch_closure(closure: GObject.Closure): void;
/**
* the `constructed` function is called by g_object_new() as the
* final step of the object creation process. At the point of the call, all
* construction properties have been set on the object. The purpose of this
* call is to allow for object initialisation steps that can only be performed
* after construction properties have been set. `constructed` implementors
* should chain up to the `constructed` call of their parent class to allow it
* to complete its initialisation.
*/
vfunc_constructed(): void;
/**
* emits property change notification for a bunch
* of properties. Overriding `dispatch_properties_changed` should be rarely
* needed.
* @param n_pspecs
* @param pspecs
*/
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
/**
* the `dispose` function is supposed to drop all references to other
* objects, but keep the instance otherwise intact, so that client method
* invocations still work. It may be run multiple times (due to reference
* loops). Before returning, `dispose` should chain up to the `dispose` method
* of the parent class.
*/
vfunc_dispose(): void;
/**
* instance finalization function, should finish the finalization of
* the instance begun in `dispose` and chain up to the `finalize` method of the
* parent class.
*/
vfunc_finalize(): void;
/**
* the generic getter for all properties of this type. Should be
* overridden for every type with properties.
* @param property_id
* @param value
* @param pspec
*/
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param pspec
*/
vfunc_notify(pspec: GObject.ParamSpec): void;
/**
* the generic setter for all properties of this type. Should be
* overridden for every type with properties. If implementations of
* `set_property` don't emit property change notification explicitly, this will
* be done implicitly by the type system. However, if the notify signal is
* emitted explicitly, the type system will not emit it a second time.
* @param property_id
* @param value
* @param pspec
*/
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
* @param id Handler ID of the handler to be disconnected
*/
disconnect(id: number): void;
/**
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
* @param properties Object containing the properties to set
*/
set(properties: { [key: string]: any }): void;
/**
* Blocks a handler of an instance so it will not be called during any signal emissions
* @param id Handler ID of the handler to be blocked
*/
block_signal_handler(id: number): void;
/**
* Unblocks a handler so it will be called again during any signal emissions
* @param id Handler ID of the handler to be unblocked
*/
unblock_signal_handler(id: number): void;
/**
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
* @param detailedName Name of the signal to stop emission of
*/
stop_emission_by_name(detailedName: string): void;
}
namespace GdbusCallProxy {
// Constructor properties interface
interface ConstructorProps
extends Gio.DBusProxy.ConstructorProps,
Gio.AsyncInitable.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
Gio.Initable.ConstructorProps,
GdbusCall.ConstructorProps {}
}
/**
* The #MmGdbusCallProxy structure contains only private data and should only be accessed using the provided API.
*/
class GdbusCallProxy
extends Gio.DBusProxy
implements Gio.AsyncInitable, Gio.DBusInterface, Gio.Initable, GdbusCall
{
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static new_finish(res: Gio.AsyncResult): GdbusCallProxy;
// Conflicted with Gio.AsyncInitable.new_finish
static new_finish(...args: never[]): any;
static new_for_bus_finish(res: Gio.AsyncResult): GdbusCallProxy;
static new_for_bus_sync(
bus_type: Gio.BusType,
flags: Gio.DBusProxyFlags,
name: string,
object_path: string,
cancellable?: Gio.Cancellable | null,
): GdbusCallProxy;
// Conflicted with Gio.DBusProxy.new_for_bus_sync
static new_for_bus_sync(...args: never[]): any;
static new_sync(
connection: Gio.DBusConnection,
flags: Gio.DBusProxyFlags,
name: string | null,
object_path: string,
cancellable?: Gio.Cancellable | null,
): GdbusCallProxy;
// Conflicted with Gio.DBusProxy.new_sync
static new_sync(...args: never[]): any;
// Static methods
/**
* Asynchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Call. See g_dbus_proxy_new() for more details.
*
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_proxy_new_finish() to get the result of the operation.
*
* See mm_gdbus_call_proxy_new_sync() for the synchronous, blocking version of this constructor.
* @param connection A #GDBusConnection.
* @param flags Flags from the #GDBusProxyFlags enumeration.
* @param name A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
* @param object_path An object path.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
*/
static ['new'](
connection: Gio.DBusConnection,
flags: Gio.DBusProxyFlags,
name: string | null,
object_path: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
// Conflicted with Gio.DBusProxy.new
static ['new'](...args: never[]): any;
/**
* Like mm_gdbus_call_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
*
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_proxy_new_for_bus_finish() to get the result of the operation.
*
* See mm_gdbus_call_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
* @param bus_type A #GBusType.
* @param flags Flags from the #GDBusProxyFlags enumeration.
* @param name A bus name (well-known or unique).
* @param object_path An object path.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
*/
static new_for_bus(
bus_type: Gio.BusType,
flags: Gio.DBusProxyFlags,
name: string,
object_path: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
// Conflicted with Gio.DBusProxy.new_for_bus
static new_for_bus(...args: never[]): any;
// Inherited properties
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_format(): GLib.Variant;
set audio_format(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioFormat(): GLib.Variant;
set audioFormat(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_port(): string;
set audio_port(val: string);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioPort(): string;
set audioPort(val: string);
/**
* Represents the D-Bus property "Direction".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get direction(): number;
set direction(val: number);
/**
* Represents the D-Bus property "Multiparty".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiparty(): boolean;
set multiparty(val: boolean);
/**
* Represents the D-Bus property "Number".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get number(): string;
set number(val: string);
/**
* Represents the D-Bus property "State".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state(): number;
set state(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state_reason(): number;
set state_reason(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stateReason(): number;
set stateReason(val: number);
// Inherited methods
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
init_async(io_priority: number, cancellable?: Gio.Cancellable | null): Promise;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init_finish(res: Gio.AsyncResult): boolean;
/**
* Finishes the async construction for the various g_async_initable_new
* calls, returning the created object or %NULL on error.
* @param res the #GAsyncResult from the callback
* @returns a newly created #GObject, or %NULL on error. Free with g_object_unref().
*/
new_finish(res: Gio.AsyncResult): GdbusCallProxy;
// Conflicted with Gio.DBusProxy.new_finish
new_finish(...args: never[]): any;
/**
* Starts asynchronous initialization of the object implementing the
* interface. This must be done before any real use of the object after
* initial construction. If the object also implements #GInitable you can
* optionally call g_initable_init() instead.
*
* This method is intended for language bindings. If writing in C,
* g_async_initable_new_async() should typically be used instead.
*
* When the initialization is finished, `callback` will be called. You can
* then call g_async_initable_init_finish() to get the result of the
* initialization.
*
* Implementations may also support cancellation. If `cancellable` is not
* %NULL, then initialization can be cancelled by triggering the cancellable
* object from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL, and
* the object doesn't support cancellable initialization, the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* As with #GInitable, if the object is not initialized, or initialization
* returns with an error, then all operations on the object except
* g_object_ref() and g_object_unref() are considered to be invalid, and
* have undefined behaviour. They will often fail with g_critical() or
* g_warning(), but this must not be relied on.
*
* Callers should not assume that a class which implements #GAsyncInitable can
* be initialized multiple times; for more information, see g_initable_init().
* If a class explicitly supports being initialized multiple times,
* implementation requires yielding all subsequent calls to init_async() on the
* results of the first call.
*
* For classes that also support the #GInitable interface, the default
* implementation of this method will run the g_initable_init() function
* in a thread, so if you want to support asynchronous initialization via
* threads, just implement the #GAsyncInitable interface without overriding
* any interface methods.
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
*/
vfunc_init_async(
io_priority: number,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): void;
/**
* Finishes asynchronous initialization and returns the result.
* See g_async_initable_init_async().
* @param res a #GAsyncResult.
*/
vfunc_init_finish(res: Gio.AsyncResult): boolean;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
* @returns A #GDBusObject or %NULL. The returned reference should be freed with g_object_unref().
*/
get_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
set_object(object?: Gio.DBusObject | null): void;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
*/
vfunc_dup_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
*/
vfunc_get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
vfunc_set_object(object?: Gio.DBusObject | null): void;
/**
* Initializes the object implementing the interface.
*
* This method is intended for language bindings. If writing in C,
* g_initable_new() should typically be used instead.
*
* The object must be initialized before any real use after initial
* construction, either with this function or g_async_initable_init_async().
*
* Implementations may also support cancellation. If `cancellable` is not %NULL,
* then initialization can be cancelled by triggering the cancellable object
* from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL and
* the object doesn't support cancellable initialization the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* If the object is not initialized, or initialization returns with an
* error, then all operations on the object except g_object_ref() and
* g_object_unref() are considered to be invalid, and have undefined
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
*
* Callers should not assume that a class which implements #GInitable can be
* initialized multiple times, unless the class explicitly documents itself as
* supporting this. Generally, a class’ implementation of init() can assume
* (and assert) that it will only be called once. Previously, this documentation
* recommended all #GInitable implementations should be idempotent; that
* recommendation was relaxed in GLib 2.54.
*
* If a class explicitly supports being initialized multiple times, it is
* recommended that the method is idempotent: multiple calls with the same
* arguments should return the same results. Only the first call initializes
* the object; further calls return the result of the first call.
*
* One reason why a class might need to support idempotent initialization is if
* it is designed to be used via the singleton pattern, with a
* #GObjectClass.constructor that sometimes returns an existing instance.
* In this pattern, a caller would expect to be able to call g_initable_init()
* on the result of g_object_new(), regardless of whether it is in fact a new
* instance.
* @param cancellable optional #GCancellable object, %NULL to ignore.
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
*/
init(cancellable?: Gio.Cancellable | null): boolean;
/**
* Initializes the object implementing the interface.
*
* This method is intended for language bindings. If writing in C,
* g_initable_new() should typically be used instead.
*
* The object must be initialized before any real use after initial
* construction, either with this function or g_async_initable_init_async().
*
* Implementations may also support cancellation. If `cancellable` is not %NULL,
* then initialization can be cancelled by triggering the cancellable object
* from another thread. If the operation was cancelled, the error
* %G_IO_ERROR_CANCELLED will be returned. If `cancellable` is not %NULL and
* the object doesn't support cancellable initialization the error
* %G_IO_ERROR_NOT_SUPPORTED will be returned.
*
* If the object is not initialized, or initialization returns with an
* error, then all operations on the object except g_object_ref() and
* g_object_unref() are considered to be invalid, and have undefined
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
*
* Callers should not assume that a class which implements #GInitable can be
* initialized multiple times, unless the class explicitly documents itself as
* supporting this. Generally, a class’ implementation of init() can assume
* (and assert) that it will only be called once. Previously, this documentation
* recommended all #GInitable implementations should be idempotent; that
* recommendation was relaxed in GLib 2.54.
*
* If a class explicitly supports being initialized multiple times, it is
* recommended that the method is idempotent: multiple calls with the same
* arguments should return the same results. Only the first call initializes
* the object; further calls return the result of the first call.
*
* One reason why a class might need to support idempotent initialization is if
* it is designed to be used via the singleton pattern, with a
* #GObjectClass.constructor that sometimes returns an existing instance.
* In this pattern, a caller would expect to be able to call g_initable_init()
* on the result of g_object_new(), regardless of whether it is in fact a new
* instance.
* @param cancellable optional #GCancellable object, %NULL to ignore.
*/
vfunc_init(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_accept(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_accept().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_accept().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Accept() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_accept() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
*/
call_deflect(arg_number: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_deflect(
arg_number: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_deflect(
arg_number: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_deflect().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_deflect().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_deflect_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Deflect() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_deflect() for the asynchronous version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_deflect_sync(arg_number: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_hangup(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_hangup(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Hangup() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_hangup_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_hangup(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_hangup().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_hangup().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_hangup_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Hangup() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_hangup() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_hangup_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_join_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_join_multiparty(
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the JoinMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_join_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_join_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_join_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_join_multiparty().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_join_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the JoinMultiparty() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_join_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_join_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_leave_multiparty(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_leave_multiparty(
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the LeaveMultiparty() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_leave_multiparty_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_leave_multiparty(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_leave_multiparty().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_leave_multiparty().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_leave_multiparty_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the LeaveMultiparty() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_leave_multiparty() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_leave_multiparty_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
*/
call_send_dtmf(arg_dtmf: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_send_dtmf(
arg_dtmf: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the SendDtmf() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_send_dtmf_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_send_dtmf(
arg_dtmf: string,
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_send_dtmf().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_send_dtmf().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_send_dtmf_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the SendDtmf() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_send_dtmf() for the asynchronous version of this method.
* @param arg_dtmf Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_send_dtmf_sync(arg_dtmf: string, cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_start(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_start(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Start() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_start_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_start(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_start().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_start().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_start_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Start() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_start() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_start_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Helper function used in service implementations to finish handling invocations of the Accept() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_accept(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Deflect() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_deflect(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Hangup() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_hangup(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the JoinMultiparty() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_join_multiparty(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the LeaveMultiparty() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_leave_multiparty(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the SendDtmf() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_send_dtmf(invocation: Gio.DBusMethodInvocation): void;
/**
* Helper function used in service implementations to finish handling invocations of the Start() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
*
* This method will free `invocation,` you cannot use it afterwards.
* @param invocation A #GDBusMethodInvocation.
*/
complete_start(invocation: Gio.DBusMethodInvocation): void;
/**
* Emits the "DtmfReceived" D-Bus signal.
* @param arg_dtmf Argument to pass with the signal.
*/
emit_dtmf_received(arg_dtmf: string): void;
/**
* Emits the "StateChanged" D-Bus signal.
* @param arg_old Argument to pass with the signal.
* @param arg_new Argument to pass with the signal.
* @param arg_reason Argument to pass with the signal.
*/
emit_state_changed(arg_old: number, arg_new: number, arg_reason: number): void;
vfunc_dtmf_received(arg_dtmf: string): void;
vfunc_handle_accept(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_deflect(invocation: Gio.DBusMethodInvocation, arg_number: string): boolean;
vfunc_handle_hangup(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_join_multiparty(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_leave_multiparty(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_handle_send_dtmf(invocation: Gio.DBusMethodInvocation, arg_dtmf: string): boolean;
vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean;
vfunc_state_changed(arg_old: number, arg_new: number, arg_reason: number): void;
/**
* Creates a binding between `source_property` on `source` and `target_property`
* on `target`.
*
* Whenever the `source_property` is changed the `target_property` is
* updated using the same value. For instance:
*
*
* ```c
* g_object_bind_property (action, "active", widget, "sensitive", 0);
* ```
*
*
* Will result in the "sensitive" property of the widget #GObject instance to be
* updated with the same value of the "active" property of the action #GObject
* instance.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well.
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. To remove the binding without affecting the
* `source` and the `target` you can just call g_object_unref() on the returned
* #GBinding instance.
*
* Removing the binding by calling g_object_unref() on it must only be done if
* the binding, `source` and `target` are only used from a single thread and it
* is clear that both `source` and `target` outlive the binding. Especially it
* is not safe to rely on this if the binding, `source` or `target` can be
* finalized from different threads. Keep another reference to the binding and
* use g_binding_unbind() instead to be on the safe side.
*
* A #GObject can have multiple bindings.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
): GObject.Binding;
/**
* Complete version of g_object_bind_property().
*
* Creates a binding between `source_property` on `source` and `target_property`
* on `target,` allowing you to set the transformation functions to be used by
* the binding.
*
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
* if `target_property` on `target` changes then the `source_property` on `source`
* will be updated as well. The `transform_from` function is only used in case
* of bidirectional bindings, otherwise it will be ignored
*
* The binding will automatically be removed when either the `source` or the
* `target` instances are finalized. This will release the reference that is
* being held on the #GBinding instance; if you want to hold on to the
* #GBinding instance, you will need to hold a reference to it.
*
* To remove the binding, call g_binding_unbind().
*
* A #GObject can have multiple bindings.
*
* The same `user_data` parameter will be used for both `transform_to`
* and `transform_from` transformation functions; the `notify` function will
* be called once, when the binding is removed. If you need different data
* for each transformation function, please use
* g_object_bind_property_with_closures() instead.
* @param source_property the property on @source to bind
* @param target the target #GObject
* @param target_property the property on @target to bind
* @param flags flags to pass to #GBinding
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
*/
bind_property_full(
source_property: string,
target: GObject.Object,
target_property: string,
flags: GObject.BindingFlags | null,
transform_to?: GObject.BindingTransformFunc | null,
transform_from?: GObject.BindingTransformFunc | null,
notify?: GLib.DestroyNotify | null,
): GObject.Binding;
// Conflicted with GObject.Object.bind_property_full
bind_property_full(...args: never[]): any;
/**
* This function is intended for #GObject implementations to re-enforce
* a [floating][floating-ref] object reference. Doing this is seldom
* required: all #GInitiallyUnowneds are created with a floating reference
* which usually just needs to be sunken by calling g_object_ref_sink().
*/
force_floating(): void;
/**
* Increases the freeze count on `object`. If the freeze count is
* non-zero, the emission of "notify" signals on `object` is
* stopped. The signals are queued until the freeze count is decreased
* to zero. Duplicate notifications are squashed so that at most one
* #GObject::notify signal is emitted for each property modified while the
* object is frozen.
*
* This is necessary for accessors that modify multiple properties to prevent
* premature notification while the object is still being modified.
*/
freeze_notify(): void;
/**
* Gets a named field from the objects table of associations (see g_object_set_data()).
* @param key name of the key for that association
* @returns the data if found, or %NULL if no such data exists.
*/
get_data(key: string): any | null;
/**
* Gets a property of an object.
*
* The value can be:
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
* - a GObject.Value initialized with the expected type of the property
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
*
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
*
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
* @param property_name The name of the property to get
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
*/
get_property(property_name: string, value: GObject.Value | any): any;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
get_qdata(quark: GLib.Quark): any | null;
/**
* Gets `n_properties` properties for an `object`.
* Obtained properties will be set to `values`. All properties must be valid.
* Warnings will be emitted and undefined behaviour may result if invalid
* properties are passed in.
* @param names the names of each property to get
* @param values the values of each property to get
*/
getv(names: string[], values: (GObject.Value | any)[]): void;
/**
* Checks whether `object` has a [floating][floating-ref] reference.
* @returns %TRUE if @object has a floating reference
*/
is_floating(): boolean;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param property_name the name of a property installed on the class of @object.
*/
notify(property_name: string): void;
/**
* Emits a "notify" signal for the property specified by `pspec` on `object`.
*
* This function omits the property name lookup, hence it is faster than
* g_object_notify().
*
* One way to avoid using g_object_notify() from within the
* class that registered the properties, and using g_object_notify_by_pspec()
* instead, is to store the GParamSpec used with
* g_object_class_install_property() inside a static array, e.g.:
*
*
* ```c
* typedef enum
* {
* PROP_FOO = 1,
* PROP_LAST
* } MyObjectProperty;
*
* static GParamSpec *properties[PROP_LAST];
*
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* g_object_class_install_property (gobject_class,
* PROP_FOO,
* properties[PROP_FOO]);
* }
* ```
*
*
* and then notify a change on the "foo" property with:
*
*
* ```c
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
* ```
*
* @param pspec the #GParamSpec of a property installed on the class of @object.
*/
notify_by_pspec(pspec: GObject.ParamSpec): void;
/**
* Increases the reference count of `object`.
*
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
* of `object` will be propagated to the return type (using the GCC typeof()
* extension), so any casting the caller needs to do on the return type must be
* explicit.
* @returns the same @object
*/
ref(): GObject.Object;
/**
* Increase the reference count of `object,` and possibly remove the
* [floating][floating-ref] reference, if `object` has a floating reference.
*
* In other words, if the object is floating, then this call "assumes
* ownership" of the floating reference, converting it to a normal
* reference by clearing the floating flag while leaving the reference
* count unchanged. If the object is not floating, then this call
* adds a new normal reference increasing the reference count by one.
*
* Since GLib 2.56, the type of `object` will be propagated to the return type
* under the same conditions as for g_object_ref().
* @returns @object
*/
ref_sink(): GObject.Object;
/**
* Releases all references to other objects. This can be used to break
* reference cycles.
*
* This function should only be called from object system implementations.
*/
run_dispose(): void;
/**
* Each object carries around a table of associations from
* strings to pointers. This function lets you set an association.
*
* If the object already had an association with that name,
* the old association will be destroyed.
*
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
* This means a copy of `key` is kept permanently (even after `object` has been
* finalized) — so it is recommended to only use a small, bounded set of values
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
* @param key name of the key
* @param data data to associate with that key
*/
set_data(key: string, data?: any | null): void;
/**
* Sets a property on an object.
* @param property_name The name of the property to set
* @param value The value to set the property to
*/
set_property(property_name: string, value: GObject.Value | any): void;
/**
* Remove a specified datum from the object's data associations,
* without invoking the association's destroy handler.
* @param key name of the key
* @returns the data if found, or %NULL if no such data exists.
*/
steal_data(key: string): any | null;
/**
* This function gets back user data pointers stored via
* g_object_set_qdata() and removes the `data` from object
* without invoking its destroy() function (if any was
* set).
* Usually, calling this function is only required to update
* user data pointers with a destroy notifier, for example:
*
* ```c
* void
* object_add_to_user_list (GObject *object,
* const gchar *new_string)
* {
* // the quark, naming the object data
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
* // retrieve the old string list
* GList *list = g_object_steal_qdata (object, quark_string_list);
*
* // prepend new string
* list = g_list_prepend (list, g_strdup (new_string));
* // this changed 'list', so we need to set it again
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
* }
* static void
* free_string_list (gpointer data)
* {
* GList *node, *list = data;
*
* for (node = list; node; node = node->next)
* g_free (node->data);
* g_list_free (list);
* }
* ```
*
* Using g_object_get_qdata() in the above example, instead of
* g_object_steal_qdata() would have left the destroy function set,
* and thus the partial string list would have been freed upon
* g_object_set_qdata_full().
* @param quark A #GQuark, naming the user data pointer
* @returns The user data pointer set, or %NULL
*/
steal_qdata(quark: GLib.Quark): any | null;
/**
* Reverts the effect of a previous call to
* g_object_freeze_notify(). The freeze count is decreased on `object`
* and when it reaches zero, queued "notify" signals are emitted.
*
* Duplicate notifications for each property are squashed so that at most one
* #GObject::notify signal is emitted for each property, in the reverse order
* in which they have been queued.
*
* It is an error to call this function when the freeze count is zero.
*/
thaw_notify(): void;
/**
* Decreases the reference count of `object`. When its reference count
* drops to 0, the object is finalized (i.e. its memory is freed).
*
* If the pointer to the #GObject may be reused in future (for example, if it is
* an instance variable of another object), it is recommended to clear the
* pointer to %NULL rather than retain a dangling pointer to a potentially
* invalid #GObject instance. Use g_clear_object() for this.
*/
unref(): void;
/**
* This function essentially limits the life time of the `closure` to
* the life time of the object. That is, when the object is finalized,
* the `closure` is invalidated by calling g_closure_invalidate() on
* it, in order to prevent invocations of the closure with a finalized
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
* added as marshal guards to the `closure,` to ensure that an extra
* reference count is held on `object` during invocation of the
* `closure`. Usually, this function will be called on closures that
* use this `object` as closure data.
* @param closure #GClosure to watch
*/
watch_closure(closure: GObject.Closure): void;
/**
* the `constructed` function is called by g_object_new() as the
* final step of the object creation process. At the point of the call, all
* construction properties have been set on the object. The purpose of this
* call is to allow for object initialisation steps that can only be performed
* after construction properties have been set. `constructed` implementors
* should chain up to the `constructed` call of their parent class to allow it
* to complete its initialisation.
*/
vfunc_constructed(): void;
/**
* emits property change notification for a bunch
* of properties. Overriding `dispatch_properties_changed` should be rarely
* needed.
* @param n_pspecs
* @param pspecs
*/
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
/**
* the `dispose` function is supposed to drop all references to other
* objects, but keep the instance otherwise intact, so that client method
* invocations still work. It may be run multiple times (due to reference
* loops). Before returning, `dispose` should chain up to the `dispose` method
* of the parent class.
*/
vfunc_dispose(): void;
/**
* instance finalization function, should finish the finalization of
* the instance begun in `dispose` and chain up to the `finalize` method of the
* parent class.
*/
vfunc_finalize(): void;
/**
* the generic getter for all properties of this type. Should be
* overridden for every type with properties.
* @param property_id
* @param value
* @param pspec
*/
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Emits a "notify" signal for the property `property_name` on `object`.
*
* When possible, eg. when signaling a property change from within the class
* that registered the property, you should use g_object_notify_by_pspec()
* instead.
*
* Note that emission of the notify signal may be blocked with
* g_object_freeze_notify(). In this case, the signal emissions are queued
* and will be emitted (in reverse order) when g_object_thaw_notify() is
* called.
* @param pspec
*/
vfunc_notify(pspec: GObject.ParamSpec): void;
/**
* the generic setter for all properties of this type. Should be
* overridden for every type with properties. If implementations of
* `set_property` don't emit property change notification explicitly, this will
* be done implicitly by the type system. However, if the notify signal is
* emitted explicitly, the type system will not emit it a second time.
* @param property_id
* @param value
* @param pspec
*/
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
/**
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
* @param id Handler ID of the handler to be disconnected
*/
disconnect(id: number): void;
/**
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
* @param properties Object containing the properties to set
*/
set(properties: { [key: string]: any }): void;
/**
* Blocks a handler of an instance so it will not be called during any signal emissions
* @param id Handler ID of the handler to be blocked
*/
block_signal_handler(id: number): void;
/**
* Unblocks a handler so it will be called again during any signal emissions
* @param id Handler ID of the handler to be unblocked
*/
unblock_signal_handler(id: number): void;
/**
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
* @param detailedName Name of the signal to stop emission of
*/
stop_emission_by_name(detailedName: string): void;
}
namespace GdbusCallSkeleton {
// Constructor properties interface
interface ConstructorProps
extends Gio.DBusInterfaceSkeleton.ConstructorProps,
Gio.DBusInterface.ConstructorProps,
GdbusCall.ConstructorProps {}
}
/**
* The #MmGdbusCallSkeleton structure contains only private data and should only be accessed using the provided API.
*/
class GdbusCallSkeleton extends Gio.DBusInterfaceSkeleton implements Gio.DBusInterface, GdbusCall {
static $gtype: GObject.GType;
// Constructors
constructor(properties?: Partial, ...args: any[]);
_init(...args: any[]): void;
static ['new'](): GdbusCallSkeleton;
// Inherited properties
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_format(): GLib.Variant;
set audio_format(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioFormat".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioFormat(): GLib.Variant;
set audioFormat(val: GLib.Variant);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audio_port(): string;
set audio_port(val: string);
/**
* Represents the D-Bus property "AudioPort".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get audioPort(): string;
set audioPort(val: string);
/**
* Represents the D-Bus property "Direction".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get direction(): number;
set direction(val: number);
/**
* Represents the D-Bus property "Multiparty".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get multiparty(): boolean;
set multiparty(val: boolean);
/**
* Represents the D-Bus property "Number".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get number(): string;
set number(val: string);
/**
* Represents the D-Bus property "State".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state(): number;
set state(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get state_reason(): number;
set state_reason(val: number);
/**
* Represents the D-Bus property "StateReason".
*
* Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
*/
get stateReason(): number;
set stateReason(val: number);
// Inherited methods
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
* @returns A #GDBusObject or %NULL. The returned reference should be freed with g_object_unref().
*/
get_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
* @returns A #GDBusInterfaceInfo. Do not free.
*/
get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
set_object(object?: Gio.DBusObject | null): void;
/**
* Gets the #GDBusObject that `interface_` belongs to, if any.
*/
vfunc_dup_object(): Gio.DBusObject | null;
/**
* Gets D-Bus introspection information for the D-Bus interface
* implemented by `interface_`.
*/
vfunc_get_info(): Gio.DBusInterfaceInfo;
/**
* Sets the #GDBusObject for `interface_` to `object`.
*
* Note that `interface_` will hold a weak reference to `object`.
* @param object A #GDBusObject or %NULL.
*/
vfunc_set_object(object?: Gio.DBusObject | null): void;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
*/
call_accept(cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void;
/**
* Asynchronously invokes the Accept() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_accept_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_accept(
cancellable?: Gio.Cancellable | null,
callback?: Gio.AsyncReadyCallback | null,
): Promise | void;
/**
* Finishes an operation started with mm_gdbus_call_call_accept().
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_gdbus_call_call_accept().
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_finish(res: Gio.AsyncResult): boolean;
/**
* Synchronously invokes the Accept() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
*
* See mm_gdbus_call_call_accept() for the asynchronous version of this method.
* @param cancellable A #GCancellable or %NULL.
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
*/
call_accept_sync(cancellable?: Gio.Cancellable | null): boolean;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
*/
call_deflect(arg_number: string, cancellable?: Gio.Cancellable | null): Promise;
/**
* Asynchronously invokes the Deflect() D-Bus method on `proxy`.
* When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
* You can then call mm_gdbus_call_call_deflect_finish() to get the result of the operation.
*
* See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
* @param arg_number Argument to pass with the method invocation.
* @param cancellable A #GCancellable or %NULL.
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
*/
call_deflect(
arg_number: string,
cancellable: Gio.Cancellable | null,
callback: Gio.AsyncReadyCallback | null,
): void;
/**
* Asynchronously invokes the