00:07
Daanct12 has joined #maemo-leste
00:20
Anasko has quit [Remote host closed the connection]
00:20
Anasko has joined #maemo-leste
00:26
Daanct12 has quit [Read error: Connection reset by peer]
02:17
Daanct12 has joined #maemo-leste
03:26
Juest has quit [Ping timeout: 255 seconds]
03:29
Juest has joined #maemo-leste
04:45
Daanct12 has quit [Ping timeout: 252 seconds]
04:52
Daanct12 has joined #maemo-leste
05:05
_alice has quit [Ping timeout: 246 seconds]
05:09
_alice has joined #maemo-leste
05:31
Anasko has quit [Remote host closed the connection]
05:31
Anasko has joined #maemo-leste
05:35
joerg has quit [Ping timeout: 246 seconds]
05:37
joerg has joined #maemo-leste
06:20
ceene has joined #maemo-leste
06:21
xmn has quit [Ping timeout: 260 seconds]
06:27
xmn has joined #maemo-leste
07:18
pere has quit [Ping timeout: 260 seconds]
07:52
pere has joined #maemo-leste
07:56
akossh has joined #maemo-leste
07:58
pere has quit [Ping timeout: 252 seconds]
08:12
xmn has quit [Ping timeout: 244 seconds]
09:25
Livio has joined #maemo-leste
09:35
pere has joined #maemo-leste
09:41
<
Wizzup >
the main issues I am finding these days is that sometimes the modem drops from the usb bus and leste doesn't make this obvious to the user: things keep working and it will even still show the signal bar
09:41
<
Wizzup >
I suppose the connui-cellular rework might fix this
10:24
Livio has quit [Remote host closed the connection]
10:24
Livio has joined #maemo-leste
10:42
pere has quit [Read error: Connection timed out]
10:59
pere has joined #maemo-leste
11:13
n900 has quit [Read error: Connection reset by peer]
11:19
pere has quit [Read error: Connection timed out]
11:30
System_Error has quit [Ping timeout: 260 seconds]
11:30
n900 has joined #maemo-leste
11:37
pere has joined #maemo-leste
12:07
Anasko has quit [Remote host closed the connection]
12:07
pere has quit [Ping timeout: 255 seconds]
12:07
Anasko has joined #maemo-leste
12:13
ceene has quit [Read error: Connection reset by peer]
12:14
ceene has joined #maemo-leste
12:20
System_Error has joined #maemo-leste
12:20
pere has joined #maemo-leste
13:04
DFP has joined #maemo-leste
13:15
arno11 has joined #maemo-leste
13:20
<
arno11 >
sicelo: sounds promising
13:22
<
arno11 >
Wizzup: is it only on d4 or on all devices ?
13:25
<
Wizzup >
probably all, but the modem doesn't disappear as frequently on n900
13:25
<
Wizzup >
it happens maybe once every few weeks
13:25
<
Wizzup >
I am pretty sure fmg's work will at least make us aware of this problem
13:49
xmn has joined #maemo-leste
14:00
Daanct12 has quit [Quit: WeeChat 4.4.3]
14:48
ceene has quit [Ping timeout: 260 seconds]
14:56
<
dsc_ >
freemangordon: hi
14:57
<
dsc_ >
looking for a sgianl related to contacts changing attributes like presence, I think its contactChanged or some such
15:04
arno11 has quit [Ping timeout: 248 seconds]
15:18
arno11 has joined #maemo-leste
15:20
<
arno11 >
Wizzup: btw most of the time when i lock the screen now, hsdpa connection is lost
15:21
<
arno11 >
previously i was able to keep the connection for hours, even days
15:24
<
Wizzup >
wow, what :D
15:28
<
arno11 >
*even days with a charger ofc
15:30
<
arno11 >
i wonder what happened recently
15:48
pere has quit [Ping timeout: 255 seconds]
15:55
<
freemangordon >
dsc_: is that related to abook?
15:55
<
freemangordon >
Wizzup: re connui-cell - finally I am back on it since Sunday
15:56
<
freemangordon >
making steady progress, hopefully will hit -devel by the end of the week
15:59
<
dsc_ >
freemangordon: looking for a way to track changes to contacts, since contacts are managed by abook, I suspect there may be a signal there somewhere
16:00
<
dsc_ >
to detect incoming friend requests for example
16:03
<
freemangordon >
G_IMPLEMENT_INTERFACE() means inheritance, in c++ terms
16:04
<
freemangordon >
so, OssoABookContact is also OssoABookPresence
16:06
<
dsc_ >
ok ill try something
16:07
<
dsc_ >
yes :) thats what I noticed just now
16:07
<
freemangordon >
so you should connect to "notify::presence-status"
16:07
<
freemangordon >
connecting to "notify::" is a bit tricky
16:08
<
freemangordon >
callback must have signature:
16:08
<
freemangordon >
void (*cb)(GObject *gobject, GParamSpec *pspec, gpointer user_data)
16:10
<
dsc_ >
yes, i was looking at what is user_data
16:10
<
dsc_ >
but ill figure it out thanks
16:10
<
freemangordon >
sec, will provide an example
16:12
<
freemangordon >
user_data is the data you want to be passed to callback
16:12
<
freemangordon >
usually pointer to structure, but can pass this if callback is static member
16:15
<
dsc_ >
ok that work will work fine
16:15
<
dsc_ >
ok that will work fine*
16:15
<
dsc_ >
the roster code from yesterday also works
16:17
<
freemangordon >
don't use snprintf
16:18
<
freemangordon >
also, no need to do e_vcard_get_attribute
16:19
<
freemangordon >
you can directly do osso_abook_contact_get_blocked(contact), for example
16:20
<
freemangordon >
or osso_abook_contact_get_value()
16:20
<
dsc_ >
its probably neccesary for values that are not binary
16:20
<
freemangordon >
you do osso_abook_contact_get_value(E_CONTACT(contact);
16:21
<
freemangordon >
E_CONTACT(contact) casts from OssoABookContact to EContact
16:22
<
freemangordon >
implementing E_TYPE_CONTACT means that it inherits EContact
16:22
<
freemangordon >
the same for the other interfaces/classes in the list
16:23
<
freemangordon >
so you can safely do OSSO_ABOOK_AVATAR(contact) etc
16:23
<
dsc_ >
one question
16:23
<
freemangordon >
keep in mind that you should get avatar of master contact, not roster contact
16:24
<
dsc_ >
should I be storing a list of contacts
16:24
<
dsc_ >
in conversations
16:24
<
freemangordon >
you can always retreive them from abook
16:25
<
dsc_ >
i was wondering because we are connecting to callbacks and idk what happens when we g_list_free(contacts)
16:25
<
freemangordon >
anyways it is storing all the contacts
*and* their relations etc
16:25
<
freemangordon >
all you see in addressbook application (and things you don't see) are at your disposal
16:25
<
freemangordon >
no need to waste your time duplicating code
16:26
<
freemangordon >
also, if you need some functionality and you can;t find it, please, first check with me if it is not already in abook
16:26
<
freemangordon >
as it does lots of things
16:29
_whitelogger has joined #maemo-leste
16:29
<
freemangordon >
g_list_free() frees the list, not the data it contains
16:29
<
freemangordon >
however, you shoudl g_object_ref(contact) if you want to be sure it would not disappear under your feet
16:30
<
dsc_ >
ok, dont think it will be a problem
16:30
<
freemangordon >
do not forget to unref once you don;t need it anymore
16:31
<
freemangordon >
also, you must explicitly disconnect from signals you connected to when you don;t need the object anymore
16:32
<
freemangordon >
a note: osso_abook_contact_get_uid() gets EBook contact uid
16:32
<
dsc_ >
i would have noticed that eventually hehe
16:33
<
freemangordon >
sorry, I meant master contact uid
16:33
<
freemangordon >
IIUC
16:33
<
dsc_ >
ill look at this notify::presence-status
16:34
<
dsc_ >
which applies to a OssoABookContact
16:34
<
freemangordon >
mhm
16:34
<
freemangordon >
yes, it does
16:36
<
dsc_ >
sorry I need more coffee
16:36
<
dsc_ >
I'm looking for publication requests
16:36
* freemangordon
hands dsc_ a cup of coffee
16:36
<
dsc_ >
presence-status might be something else
16:36
<
dsc_ >
but maybe its enough
16:36
<
dsc_ >
let me check
16:37
<
freemangordon >
yeah, it is something else
16:37
<
freemangordon >
lemme find what you need
16:39
pere has joined #maemo-leste
16:40
ac_laptop has joined #maemo-leste
16:45
<
freemangordon >
dsc_: seems abook does not provide signals when published/blocked/etc has changed
16:46
<
freemangordon >
but, you said TP already provides those signals?
16:47
<
freemangordon >
lemme double-check
16:47
<
dsc_ >
signals in TP are: subscriptionStateChanged, publishStateChanged, blockStatusChanged
16:48
<
dsc_ >
these are Tp::Contact signals
16:48
<
freemangordon >
do you need those connected for all contacts?
16:49
<
dsc_ >
but only if the connection manager has those capabilities
16:50
arno11 has left #maemo-leste [#maemo-leste]
16:50
<
freemangordon >
osso_abook_contact_presence_get_handle() will give you TP handle
16:51
<
freemangordon >
wait, wrong function
16:51
<
dsc_ >
maybe there is a classmethod Tp::Contact::fromHandle()
16:51
<
freemangordon >
osso_abook_presence_get_handle()
16:51
<
freemangordon >
exactly
16:54
<
dsc_ >
so if abook destroys a contact, I also need to know, I think
16:54
<
dsc_ >
because I'm operating on it from tp-qt
16:54
<
freemangordon >
if you ref it, it will not destroy it
16:55
<
freemangordon >
but yeah, you should be notified
16:55
<
freemangordon >
don;t ask me how though :), have to llok in the code
16:55
<
freemangordon >
*look
16:57
<
dsc_ >
ContactPtr ContactManager::ensureContact(uint bareHandle, const QString &id, const Features &features)
16:58
<
dsc_ >
it seems to lookup this handle in some private dict
16:59
<
dsc_ >
so dont think this is it
17:00
<
freemangordon >
link?
17:01
<
dsc_ >
well, this is contactManager
17:02
<
freemangordon >
if it does not find it, it calls connection manager
17:03
Livio has quit [Remote host closed the connection]
17:04
<
freemangordon >
so, I think once you use the handle, you no more need abook contacts
17:05
<
freemangordon >
but, my gut feeling tells me there must be a better way of watching for contacts changes
17:06
<
freemangordon >
instead of keeping all the contacts in the system
17:06
<
dsc_ >
my gut feeling is "freemangordon will implement subscriptionStateChanged, publishStateChanged, blockStatusChanged in abook :D"
17:07
<
freemangordon >
no, TP should already provide that for you
17:07
<
freemangordon >
tp_cli_connection_interface_contact_info_connect_to_contact_info_changed
17:07
<
dsc_ >
just like abook has presence-status
17:09
<
dsc_ >
yes that can work
17:10
<
freemangordon >
thats what eds TP plugin uses
17:10
<
freemangordon >
you just need to find Qt equivalent
17:13
<
freemangordon >
btw, there is Tp::ContactManager::contactsForHandles()
17:14
<
dsc_ >
its a bit annoying
17:15
<
dsc_ >
lemme make a suggestion
17:15
<
dsc_ >
we add 2 conditions here for PUBLICATION and SUBSCRIPTION
17:15
<
dsc_ >
so we can do
17:15
<
dsc_ >
osso_abook_contact_notify(contact, "publication-status");
17:16
<
dsc_ >
at which point we have `notify::publication-status`
17:16
<
freemangordon >
no, thats suboptimal
17:16
Livio has joined #maemo-leste
17:17
<
freemangordon >
because you should get notified when contact changes and see what has changed
17:17
<
freemangordon >
without keeping all the contacts around
17:17
<
freemangordon >
what if contact appears or gets deleted? who will refresh your list?
17:19
<
dsc_ >
abook should give me signals for new or removed contacts, no?
17:19
<
dsc_ >
since abook manages all the contacts
17:19
<
dsc_ >
basically, we're using abook where we would otherwise use tp-qt's contactManager
17:22
<
freemangordon >
but yeah, I may consider adding that to abook
17:23
<
dsc_ >
ok, lets think about it for a bit
17:24
Livio has quit [Ping timeout: 260 seconds]
17:25
<
freemangordon >
BTW, did you check those 2 are properly set in vcard?
17:25
<
dsc_ >
yes it works
17:25
<
freemangordon >
great
17:25
<
freemangordon >
ok, I will add those
17:25
<
freemangordon >
will take me a while though
17:26
<
freemangordon >
hmm?
17:26
<
dsc_ >
sorry I lied, let me check
17:26
<
dsc_ >
i checked the presence attribute
17:27
Juesto has joined #maemo-leste
17:27
<
freemangordon >
hmm abook should already notify on contact update
17:28
<
freemangordon >
and then you can just ask for blocked etc
17:28
Juest has quit [Ping timeout: 252 seconds]
17:29
Juesto is now known as Juest
17:29
<
freemangordon >
dsc_: OssoABookAggregator
17:30
<
dsc_ >
< freemangordon> BTW, did you check those 2 are properly set in vcard? <== they work, I checked
17:30
Livio has joined #maemo-leste
17:30
<
freemangordon >
cool
17:30
<
dsc_ >
freemangordon: what about OssoABookAggregator?
17:30
<
freemangordon >
it provides contacts added/removed/changed signals
17:31
<
freemangordon >
so, you can connect to those and check whatever needed as you receive them
17:31
<
freemangordon >
instead of keeping contacts list
17:34
<
freemangordon >
oops
17:34
<
freemangordon >
not that one
17:36
<
freemangordon >
all callbacks have one more parameter (gpointer user_data)
17:37
<
freemangordon >
so your contacts_changed cb should look like 'void contacts_changed_cb(OssoABookRoster *roster, OssoABookContact **contacts, gpointer user_data);'
17:38
Livio has quit [Quit: Reconnecting]
17:38
Livio has joined #maemo-leste
17:49
ac_laptop has quit [Ping timeout: 260 seconds]
18:02
ac_laptop has joined #maemo-leste
18:05
Livio has quit [Remote host closed the connection]
18:05
Livio has joined #maemo-leste
18:20
ac_laptop has quit [Ping timeout: 264 seconds]
18:33
freemangordon has quit [Read error: Connection reset by peer]
18:41
freemangordon has joined #maemo-leste
18:45
ac_laptop has joined #maemo-leste
18:55
<
dsc_ >
this does not trigger with for example presence changes (switching a contact from online to away)
18:57
<
dsc_ >
I keep the roster/aggregator objects around, so thats not it
18:59
<
dsc_ >
this is on an EBook*
18:59
<
dsc_ >
maybe I should do that?
19:00
<
dsc_ >
or EBookView* rather
19:01
<
freemangordon >
yes, it should not get triggered for presence changes
19:01
<
freemangordon >
as those come from telepathy, not as evcard
19:02
<
freemangordon >
see if those get triggered for some vcard property change
19:02
<
freemangordon >
like, change remote nick
19:02
<
freemangordon >
or name, or whatever
19:05
<
dsc_ >
I changed my avatar to a cute rabbit, it did not trigger the callback
19:05
<
dsc_ >
name change (I think this is 'alias') also did not trigger it
19:10
<
freemangordon >
your avatar?
19:10
<
dsc_ >
profile picture
19:11
<
freemangordon >
yes, I know what avatar is, the question is - what contact is that?
19:11
<
freemangordon >
remote one?
19:11
<
dsc_ >
both contacts are already "friends"
19:11
<
freemangordon >
please repeat with OSSO_ABOOK_DEBUG=all
19:12
<
freemangordon >
and provide logs
19:13
<
freemangordon >
G_MESSAGES_DEBUG=all OSSO_ABOOK_DEBUG=all
19:14
fmg_leste_vm has joined #maemo-leste
19:15
<
freemangordon >
dsc_: what account is that? irc?
19:18
<
dsc_ >
hmm ok sorry, it works now
19:18
<
dsc_ >
not sure what happened
19:18
<
freemangordon >
heh :)
19:20
<
dsc_ >
next up we have: accepting/denying friend requests
19:21
<
freemangordon >
you can't do that from abook
19:21
<
freemangordon >
this shall be done by TP
19:22
<
dsc_ >
alright, that's fine
19:59
Anasko has quit [Remote host closed the connection]
20:00
Anasko has joined #maemo-leste
20:01
Anasko has quit [Remote host closed the connection]
20:02
Anasko has joined #maemo-leste
20:03
<
sicelo >
Wizzup: modem disappearing ... yes I've reported it before on D4. not yet seen it on N900
20:04
arno11 has joined #maemo-leste
20:04
<
sicelo >
we need to check carefully how we react to ModemRemoved and similar signals.
20:04
<
sicelo >
although I haven't experienced it on D4 in the last few weeks
20:04
<
freemangordon >
sicelo: this is properly handled in the new connui-cell
20:05
<
sicelo >
sneak preview? :-)
20:06
<
freemangordon >
no, sorry
20:06
<
freemangordon >
by the end of the week
20:10
fmg_leste_vm has quit [Quit: fmg_leste_vm]
20:17
Anasko has quit [Remote host closed the connection]
20:17
Anasko has joined #maemo-leste
20:17
Anasko has quit [Remote host closed the connection]
20:18
Anasko has joined #maemo-leste
20:18
Anasko has quit [Remote host closed the connection]
20:19
Anasko has joined #maemo-leste
20:21
Anasko has quit [Remote host closed the connection]
20:21
Anasko has joined #maemo-leste
20:25
Anasko has quit [Remote host closed the connection]
20:26
Anasko has joined #maemo-leste
20:27
Anasko has quit [Remote host closed the connection]
20:27
Anasko has joined #maemo-leste
20:27
Anasko has quit [Remote host closed the connection]
20:28
Anasko has joined #maemo-leste
20:29
Anasko has quit [Remote host closed the connection]
20:30
Anasko has joined #maemo-leste
20:30
Anasko has quit [Remote host closed the connection]
20:31
Anasko has joined #maemo-leste
20:37
Anasko has quit [Remote host closed the connection]
20:37
Anasko has joined #maemo-leste
20:43
Anasko has quit [Remote host closed the connection]
20:43
Anasko has joined #maemo-leste
20:44
Anasko has quit [Remote host closed the connection]
20:45
Anasko has joined #maemo-leste
21:46
ac_laptop has quit [Quit: WeeChat 3.8]
22:00
doc has quit [Quit: Things to do]
22:19
System_Error has quit [Ping timeout: 260 seconds]
22:38
System_Error has joined #maemo-leste
22:47
arno11 has left #maemo-leste [#maemo-leste]
22:59
Livio has quit [Ping timeout: 260 seconds]
23:17
akossh has quit [Ping timeout: 246 seconds]