[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] [GSOC] AkonadiClient Commands
From: Bhaskar Kandiyal <bkandiyal () gmail ! com>
Date: 2014-05-06 18:52:13
Message-ID: 53692F47.5000700 () gmail ! com
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/06/2014 03:15 PM, Jonathan Marten wrote:
> Daniel Vrátil <dvratil@redhat.com> writes:
>> On Sunday 04 of May 2014 23:43:15 Bhaskar Kandiyal wrote:
>>
>> couple comments from me:
>
>> * How do you differentiate between item and collection? If I do
>> "akonadiclient delete 15", is that a Collection, or an Item?
>> Collections and Item IDs can overlap. Same for "move" i suppose.
>
> A better solution, by analogy with C++ number syntax, would be to
> add a suffix - for example, "1334i" (case insensitive of course)
> would mean an item while "1334c" would mean a collection. A number
> without a suffix would mean whatever was appropriate if only an
> item or collection would be valid (e.g. the argument for 'list' is
> always a collection), otherwise it could be rejected as ambiguous.
> Named collections have to start at the root*, so there can be no
> ambiguity between either of those and a collection named "1334c"
> (which would have to be entered as "/1334c".
>
> [*] Unless we implement a "command loop" when invoked without
> arguments, such as in xauth, lpc or the Perl CPAN shell. With
> this persistence there can be the concept of a "current collection"
> and a cd command to move around. Then a plain number could
> potentially have three interpretations, and there would have to be
> a notation to distinguish between 'a subcollection of the current
> collection named "1334"' and 'the collection with ID 1334'.
>
Adding a suffix to differentiate between collections and items is a
great idea. I'll try to implement it :)
Cheers,
Bhaskar Kandiyal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlNpL0UACgkQc3l9wn9I2OdZsgCeNUcm1wiMsx2Ax1BdzJFeSIHW
7n4AoMnk0+o1MLrEQnoaiUAhcaeCAOwW
=dgAc
-----END 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