Commit Graph
95 Commits
Author SHA1 Message Date
Aleksander Morgado a0b3663274 gps-serial-port: new type to handle read-only serial ports with GPS traces 2012-03-29 09:17:53 +02:00
Aleksander Morgado 690777986b port-probe: refactor AT command handling
Make it use a GVariant in the response processor, as the AT command handling in
the MMBaseModem.
2012-03-16 14:53:22 +01:00
Aleksander Morgado 66984e77cd port-probe: convert port probe flags to a private enum 2012-03-16 14:53:22 +01:00
Aleksander Morgado 16cf2a49f6 iface-modem-time: new interface to handle the Time DBus interface 2012-03-16 14:53:20 +01:00
Aleksander Morgado a797d6d683 sim: signal when the pin lock enabling status changes 2012-03-16 14:53:18 +01:00
Aleksander Morgado 952b9164b9 context: new source files to keep the daemon context 2012-03-16 14:53:18 +01:00
Aleksander Morgado 7f0afa078b build: fix distcheck
Need to pass the full path of the input files to the glib-mkenums call. This is
because we use an explicit list given in a $(VARIABLE) instead of the built-in
automake variables (e.g. $<)
2012-03-16 14:53:17 +01:00
Aleksander Morgado 0c6dad40a0 build: get path of `glib-mkenums' from pkg-config 2012-03-16 14:53:17 +01:00
Aleksander Morgado 3e511f90c7 build: don't distribute generated sources 2012-03-16 14:53:17 +01:00
Aleksander Morgado 7d9d003324 build: rename the binary from modem-manager' to ModemManager' 2012-03-16 14:53:17 +01:00
Aleksander Morgado c55b5d097e marshallers: integrate them into the daemon compilation 2012-03-16 14:53:16 +01:00
Aleksander Morgado 089a983850 auth: refactor and simplify authentication related setup
We get rid of the MMAuthRequests; and we leave up to the caller and user of the
MMAuthProvider the handling of request cancellations through the provided
GCancellable.

Also made GIO-async-friendly methods.
2012-03-16 14:53:15 +01:00
Aleksander Morgado 7a892b74cb build: don't build the MMCallbackInfo, we're now fully GIO-Async instead 2012-03-16 14:28:15 +01:00
Aleksander Morgado 2522acf899 tests,sms: refactor SMS part related tests
Now using the MMSmsPart setup.
2012-03-16 14:28:15 +01:00
Aleksander Morgado 0b39bf91ec at-serial-port: new AT port specific flags 2012-03-15 14:15:05 +01:00
Aleksander Morgado 06260cdced build: private enums don't depend on the public ones 2012-03-15 14:15:04 +01:00
Aleksander Morgado 4d3a61d58b build: generate libserial-specific enum types 2012-03-15 14:15:04 +01:00
Aleksander Morgado ffdb034413 build: renamed files holding daemon-specific enum types 2012-03-15 14:15:04 +01:00
Aleksander Morgado fba16a2a2c sms-list: new object to handle SMS objects and SMS parts 2012-03-15 14:14:59 +01:00
Aleksander Morgado ad8fbcd1a6 sms: new object to handle single-part and multi-part messages 2012-03-15 14:14:59 +01:00
Aleksander Morgado d41f4226f4 sms-part: new struct to handle parsed SMS parts 2012-03-15 14:14:59 +01:00
Aleksander Morgado bc0454badf iface-modem-messaging: new interface to handle the Messaging DBus interface 2012-03-15 14:14:58 +01:00
Aleksander Morgado b65f96aec7 iface-modem-3gpp-ussd: new interface for USSD related actions 2012-03-15 14:14:56 +01:00
Aleksander Morgado fa17f90082 bearer-3gpp, bearer-cdma: removed, they were mixed in broadband-bearer 2012-03-15 14:14:53 +01:00
Aleksander Morgado a3b5c9faef broadband-bearer: new generic 3GPP+CDMA bearer 2012-03-15 14:14:53 +01:00
Aleksander Morgado 04fc34fab8 build: autogenerate enum/flags string getter/builders
Each enum will have its own #_get_string (),
and each flags will have its own #_build_string_from_mask ().
2012-03-15 14:14:52 +01:00
Aleksander Morgado d0a845c819 iface-modem-location: new interface for Location-related stuff 2012-03-15 14:14:51 +01:00
Aleksander Morgado 2052b8184f core: new boxed type for 0-terminated array of guint16 values 2012-03-15 14:14:51 +01:00
Aleksander Morgado 06ea25c0d4 bearer-cdma: new bearer to handle connections in CDMA networks 2012-03-15 14:14:47 +01:00
Aleksander Morgado 7f975a30b3 build: remove glib-mkenums generated files during make clean 2012-03-15 14:14:47 +01:00
Aleksander Morgado f5d894f5a2 iface-modem-cdma: new interface to handle CDMA specific actions 2012-03-15 14:14:43 +01:00
Aleksander Morgado 7ea8bf59fb iface-modem-simple: new interface to handle the Simple interface 2012-03-15 14:14:36 +01:00
Aleksander Morgado 9962f5cbde bearer: new `bearer-state' property 2012-03-15 14:14:35 +01:00
Aleksander Morgado 48f0061355 bearer-3gpp: implement 3GPP-specific bearer
Implement basic functionality of a 3GPP based bearer, including connnection and
disconnection.
2012-03-15 14:14:34 +01:00
Aleksander Morgado 776cc66e2c iface-modem: implement all bearer list operations in the interface
Bearer list operations, except for Bearer creation, are so generic that the
interface itself can implement it for every object implementing the interface.
This implementation is based on a new MMBearerList object.
2012-03-15 14:14:33 +01:00
Aleksander Morgado 36fae5564b bearer: new object to handle bearers, implements the Bearer DBus interface 2012-03-15 14:14:31 +01:00
Aleksander Morgado fb90f205d1 core: port to use the new AT command/sequences in the MMBaseModem API 2012-03-15 14:14:31 +01:00
Aleksander Morgado 52db9b9035 base-modem-at: refactor AT sequence/command handling
Make a tight connection between the action of sending AT commands, either single
or in a sequence, with the MMBaseModem object owning the port. This direct
relation allows sending commands without specifying which port to use, so that
the modem object can get the best port at each time, and handling all that in a
single common place.

The original mm-at API has also been modified so that when a single command is
sent, a constant string is returned. We are allowed to return constant strings
in mm_base_modem_at_command_finish() because the string itself is owned by the
GSimpleAsyncResult, and hence, alive enough time. The GSimpleAsyncResult is
completely disposed only after the async call is fully completed.

Same reasoning behind the GVariant returned in the AT sequences; it should not
be owned by the caller, it's a transfer-none in introspection terms.
2012-03-15 14:14:31 +01:00
Aleksander Morgado 1d495c58e6 iface-modem-3gpp: new interface to handle the Modem 3GPP DBus interface 2012-03-15 14:14:28 +01:00
Aleksander Morgado c58db4e015 core: start using our newly defined errors 2012-03-15 14:14:25 +01:00
Aleksander Morgado e4d8c4ace7 core: disable all dbus-glib dependent code 2012-03-15 14:14:24 +01:00
Aleksander Morgado a3a712f32f core: new MMBroadbandModem object, inherits from MMBaseModem
New object to implement broadband modem specific behaviour.
2012-03-15 14:14:24 +01:00
Aleksander Morgado e40d32ac94 core: new MMSim object, inherits from MmGdbusSim 2012-03-15 14:14:23 +01:00
Aleksander Morgado 9e7cd2a345 core: new MMIfaceModem interface
This interface controls the availability of the DBus Modem interface, and
implements the actions that may be performed in the interface.
2012-03-15 14:14:22 +01:00
Aleksander Morgado 9a72ac80d0 core: new MMBaseModem abstract type
Basically, a replacement of the MMModemBase type, being prepared to handle
multimode devices.

This object derives from a MmGdbusObjectSkeleton, which makes it suitable to be
controlled within the GDBusObjectManagerServer.
2012-03-15 14:14:21 +01:00
Aleksander Morgado f15daaf587 core: new AT command and sequence processors
This setup, allows:
 - Running a single command and processing its result.
 - Running a set of N commands, providing a global result after all have
   been executed.
 - Running a set of N commands out of M (N<M), where the global result is
   obtained without having executed all configured commands. This is useful
   when probing, for example.
2012-03-15 14:14:21 +01:00
Aleksander Morgado 27e1d97aca port-probe: new cache of Port Probe results
Whenever a plugin has probed for some information in a given port, that data
should be available for any other plugin wanting it during its own probing
process. This new cache of Port Probe results allows to easily retrieve the
already probed information.
2012-03-15 14:14:20 +01:00
Aleksander Morgado 6816c2e61d port-probe: enable probing for AT support
We will initially probe for AT support in the port.
2012-03-15 14:14:20 +01:00
Aleksander Morgado d7238403c4 port-probe: new type to define commands used during probing
The new `MMPortProbeAtCommand' type defines what command will be sent to the
serial AT port, and also a response processor method to parse the string
returned by the port.

The response processor gets as input either the text reply string or an error,
and it should give as output either a GValue (type depends on the probing kind
being done) or a new error (which will force the whole probing process to be
aborted.
2012-03-15 14:14:20 +01:00
Aleksander Morgado 74145f5af7 port-probe: new MMPortProbe object 2012-03-15 14:14:20 +01:00