Purpose as a KDE Framework

Aleix Pol aleixpol at kde.org
Sat Dec 5 01:23:54 UTC 2015


On Fri, Dec 4, 2015 at 11:26 PM, Mark Gaiser <markg85 at gmail.com> wrote:
> On Thu, Dec 3, 2015 at 7:29 PM, Aleix Pol <aleixpol at kde.org> wrote:
>>
>> On Wed, Dec 2, 2015 at 11:56 PM, Mark Gaiser <markg85 at gmail.com> wrote:
>> > On Tue, Dec 1, 2015 at 3:01 PM, Aleix Pol <aleixpol at kde.org> wrote:
>> >>
>> >> Hi,
>> >> I've been working on Purpose since some months now, with the intention
>> >> of becoming a framework some day. Some information about it can be
>> >> read here:
>> >>
>> >>
>> >> https://projects.kde.org/projects/playground/libs/purpose/repository/revisions/master/entry/README.md
>> >>
>> >> As it is right now it's a tier 2 framework (kcoreaddons and ki18n)
>> >> plus the plugins. Plugins raise the tier to 3 because of KIO which is
>> >> used by some plugins.
>> >>
>> >> As it is now, it's being used by: Kamoso, QuickShare plasmoid and
>> >> KDevelop for patch sharing. I'd like to see it used in other cases
>> >> than sharing as well as in other applications, but here's where we are
>> >> at the moment. I think it's something to build upon.
>> >>
>> >> Any thoughts?
>> >>
>> >> Aleix
>> >
>> >
>> > Hi Aleix,
>> >
>> > I'm trying to understand what Purpose is doing exactly.
>> > I've read the readme file, but i still can't quite figure out what it's
>> > doing or where i might be able to use it.
>> >
>> > Could you give a short summary with a clear example where to use it?
>> > That
>> > would help me :)
>>
>> Well, the shortcut to explaining it is that it's quite similar to
>> Android intents.
>>
>> The idea is that you identify some tasks you can group, for example:
>> - share, where you can get the different services to share
>> - getImage that would list your scanner, camera and also some web
>> services.
>> - addContact that would let you add a contact on your address book or
>> gmail directly.
>>
>> Then you receive the results in a nice and simple tuple. The input and
>> output arguments depend on the kind of task you are performing.
>>
>> I hope this made sense
>> Aleix
>>
> Thank you, that clears it up for me i think.
>
> Just curious, what would have to be done for a "send file" intent?
> Where a file can be send to (one of the following):
> - google drive
> - owncloud
> - dropbox
> - as mail attachment to someone
> - whatever other plugin
>
> I'm guessing each individual plugin would have to be fully implemented in
> Purpose?

Yes, or you can use something else that supports it. You can always
use KIO on them, which is much harder to implement.

Aleix


More information about the Kde-frameworks-devel mailing list