[Kde-pim] KDE/kdepim/kmail

Ingo Klöcker kloecker at kde.org
Sun Sep 2 21:57:50 BST 2007


[Moving the discussion to kde-pim.]

On Saturday 01 September 2007 19:00, Thomas McGuire wrote:
> SVN commit 707368 by tmcguire:
>
> - deprecated--
> - tabs--
>
> In this commit, I again broke config compatibility :(
>
> The reason is that the unfiltered sernum list for IMAP
> accounts is stored top-level in a config file, without
> any group.
> Now, all readEntry calls without a group are deprecated,
> which means we have to use a group in order to remove
> KDE3SUPPORT. I used the group "Default".

I wonder whether it is really necessary to use KConfig for this simple 
config file. Instead we might consider using QSettings.

From the QSettings API documentation:
=====

Sometimes you do want to access settings stored in a specific file or 
registry path. On all platforms, if you want to read an INI file 
directly, you can use the QSettings constructor that takes a file name 
as first argument and pass QSettings::IniFormat as second argument. For 
example:
 QSettings settings("/home/petra/misc/myapp.ini",
                    QSettings::IniFormat);
You can then use the QSettings object to read and write settings in the 
file.

=====


> It also seems that writing an update script is not
> possible at all, as the .upd file wants to have a filename.
> And the filename for the sernums here includes the account
> ID, so there is no way to specifiy this files in the
> .upd file.

The update script can start arbitrary executables. So it would be 
possible to write a simple KDE application to do the update. But I 
think using QSettings instead of KConfig is a way easier solution.


> And I just also realized that I did the same with POP
> (already downloaded UID list)...

I guess here the QSettings solution would also work.


> Anybody got a solution for this?
> If not, the list of downloaded POP UIDs and the list
> of unfiltered IMAP sernums will get lost during the
> upgrade.

I'm not sure about the unfiltered IMAP sernums, but losing the POP UIDs 
is unacceptable. Please look into using QSettings.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070902/45e2e4b8/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list