Maciek Borzecki
01351bac98
devicechannel: convert ciriticals to warnings
8 years ago
Maciek Borzecki
4b2153c9f7
discovereddevice: split device that was found through discovery process from Device
8 years ago
Maciek Borzecki
d9bd439d5d
device: rejected pairing should be logged as warning
Otherwise debugging with G_DEBUG=fatal-criticals is not possible.
8 years ago
Maciek Borzecki
5145f40fdc
devicemanager: cleanup device signal handling, prevent duplicated signals
Cleanup device signals handling. Fix a problem with duplicated signals from
Device which were a result of same signal callback being registered multiple
times.
8 years ago
Maciek Borzecki
b06936c506
device: add is_active property
indicated is communication with device is possible
8 years ago
Maciek Borzecki
874f2f0971
device: reduce chatter
8 years ago
Maciek Borzecki
b6ec6e455e
packethandlers: allow releasing of a device (eg. when device is no longer paired)
8 years ago
Maciek Borzecki
ca4c09cb28
devicemanager: device managed is not directly exported to DBus, cleanup DBus attributes
8 years ago
Maciek Borzecki
6c8bf2ee67
devicechannel, device: channel close need not be async
8 years ago
Maciek Borzecki
b30ffb7ddf
mousepad, battery: reduce chatter
8 years ago
Maciek Borzecki
3e3bcf0083
devicemanager: check if device is enabled in config only when needed
8 years ago
Maciek Borzecki
bb45b12751
devicemanager, proxy: proper 'new device' signal
8 years ago
Maciek Borzecki
3c3687ad59
devicemanager-proxy: check if there is a device associated with given path
8 years ago
Maciek Borzecki
e2cd6500b2
devicemanager: log that device is already known
8 years ago
Maciek Borzecki
c68ac52d97
device-proxy: cleanup exported properties
8 years ago
Maciek Borzecki
e10ff4a15c
device: class is no longer expored over DBus, drop all DBus related attributes
8 years ago
Maciek Borzecki
14f051f675
mconnect: use DBus proxies for devicemanager and device
8 years ago
Maciek Borzecki
3b6e7bc80c
devicemanager: list and activate devices through DBus
8 years ago
Maciek Borzecki
3477d3ee85
device: fix activation of device that is disconnected but its address is known
8 years ago
Maciek Borzecki
0dabf5e7d9
device: do not clean host address when disconnecting
8 years ago
Maciek Borzecki
b16e1491d5
devicemanager: allow_device, list_devices DBus methods
8 years ago
Maciek Borzecki
39785fca9e
devicemanager: use Device.allowed flag or poke config to see if device is accepted
8 years ago
Maciek Borzecki
936886f17d
device: add 'allowed' cache flag
8 years ago
Maciek Borzecki
1e664bf8af
application, devicemanager: restore devices from cache when application becomes active
8 years ago
Maciek Borzecki
7a814ffdc4
application: DBus registration, register manager object
8 years ago
Maciek Borzecki
bdcd3cf442
device, devicemanager: add DBus intefaces, hide methods from the bus
8 years ago
Maciek Borzecki
9753a21c29
config, core, devicemanager: cleanup valac warnings
8 years ago
Maciek Borzecki
d8bc0f851b
devicechannel, discovery: update to match latest gio-2.0 API
8 years ago
Maciek Borzecki
04dfd445db
application: add GLib.Application() support
9 years ago
Maciek Borzecki
7f0841fe10
mousepad: implement mousepad plugin
Implement mousepad plugin handler. The input in realized through AT-SPI.
9 years ago
Maciek Borzecki
4c865a7bbc
discovery: use Socket.create_socket_source()
Use Socket.create_socket_source() as it works for both TCP and UDP
sockets, but also does not use GDatagramBased interface, thus should
allow building on systems with older GLib versions.
9 years ago
Maciek Borzecki
5eff60734b
mconn-crypt: fix compiler warnings
9 years ago
Maciek Borzecki
ba16d18379
devicechannel: consume the last \n character
A message ends with \n (newline), make sure that's the only extra
character we consume.
9 years ago
Maciek Borzecki
5d70c03d0a
devicemanager: handle cache load errors
9 years ago
Maciek Borzecki
38f438de7c
device: loading device from cache may fail
Replace named constructor Device.from_cache() with static method
Device.new_from_cache() to catch errors when loading from cache and
return null in such case.
9 years ago
Maciek Borzecki
6df3ab4c44
devicechannel: use synchronoous receive
IO receive from the mobile can be done synchronously without problems.
9 years ago
Maciek Borzecki
9ca7a18338
devicechannel: use Socket.create_socket_source() helper
Calling Socket.create_source() will generate a C call to
g_socket_datagram_based_create_source(), and that returns null for TCP
sockets. Use a helper Socket.create_socket_source() method to workaround
this problem..
9 years ago
Maciek Borzecki
6a4048250f
devicechannel/discovery: fix Socket.creat_source() return type changes
Due to gio-2.0 VAPI changes Socket.create_source() does not return a
SocketSource anymore, but a standard GLib.Source instead. Make sure that
we cast to SocketSource.
9 years ago
Maciek Borzecki
31c47f1f9f
all: move files to their respective dirs
In preparation for DBus move the files to their respective directories.
9 years ago
Maciek Borzecki
4039565630
core: use Mconn namespace
9 years ago
Maciek Borzecki
1effbd8e98
devicechannel: use Mconn namespace
9 years ago
Maciek Borzecki
9a41b9b258
telephony: use Mconn namespace
9 years ago
Maciek Borzecki
4b11424310
mconn-crypt: m_conn namespace changed to mconn
Part of namespac cleanup work.
9 years ago
Maciek Borzecki
fc8a663b72
devicechannel: setup TCP keepalive
Use TCP keepalive for detecting of connection goes offline in a more
reliable manner.
9 years ago
Maciek Borzecki
ac41b8e463
devicemanager: known device cache
Keep track of known device and dump their info to cache. This should
speed up reconnect after restarting mconnect. The rationale is that the
devices are likely to be connected to to the local network and use
DHCP and as such will most probably get the same address the next time
they appear. Hence, it should be ok to attemp connection the last know
IP address. If that fails, the discovery process will still take place.
10 years ago
Maciek Borzecki
3ee3af41fe
core: helper to get path to cache directory
10 years ago
Maciek Borzecki
25d1f6a83d
core: use APP_NAME when getting user directories
10 years ago
Maciek Borzecki
e4d57eff5c
notification: keep track of shown notifications
Currently notifications shown so far are not tracked, thus often it
happens that multiple notifications regarding the same topic appear,
where only one should be shown. The change adds tracking of
notifications being shown within the Notification class.
Notifications cleared by user will be re-shown if device pushes them
again.
10 years ago
Maciek Borzecki
3437a33399
notification: add time to ticker
If no time was provided in original message, use local time
10 years ago
Maciek Borzecki
9009707254
telephony: add current time to notification
10 years ago