[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] Possible unwanted behaviour of the KABC API
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2005-06-21 21:18:55
Message-ID: 200506212319.01052.kevin.krammer () gmx ! at
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi!
While testing error conditions in kabcclient [1] I encountered a
KABC::AddressBook behaviour I didn't expect.
In version 0.5 [2] I used code like this
--------
m_addressBook = KABC::StdAddressBook::self(true);
KABC::StdAddressBook::setAutomaticSave(false);
QObject::connect(m_addressBook,
SIGNAL(addressBookChanged(AddressBook*)),
this, SLOT(slotAddressBookLoaded()));
-------
which worked flawlessly until I removed the write flags
from .kde/share/apps/kabc/std.vcf in order to test failure when saving.
The unexpected behaviour: no signal is emitted and the following error message
is written:
kabcclient: ERROR: Unable to open resource 'resource-name'!
Tested on KDE 3.3.2 from KDE unstable packages and SVN trunk from yesterday
around 18:00 GMT
I changed to synchronous loading, but I am curious if I misunderstood the
meaning of the signal and if I should have used a different one.
Cheers,
Kevin
[1] http://kde-apps.org/content/show.php?content=25480
[2]
http://www.sbox.tugraz.at/home/v/voyager/kabcclient/kabcclient-0.5.2.tar.bz2
--
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
[Attachment #5 (application/pgp-signature)]
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic