[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    QML-using app developers: use private.* imports
From:       Sebastian =?ISO-8859-1?Q?K=FCgler?= <sebas () kde ! org>
Date:       2013-09-25 13:51:38
Message-ID: 1871015.zjBY0dPbno () miro ! vizzzion ! net
[Download RAW message or body]

Hey all,

In Plasma, we've been looking into privatizing parts of the QML API we offer. 
With Qt5, we rely less on setContextProperty() and friends, and use imports 
more. That's a technical necessity that makes one problem more evident: It's 
unclear what QML-facing API is reliable and stable, and what is private and 
internal API. As there are no restrictions (right now) which imports may be 
loaded by a piece of QML, we need another solution. 

Our approach hooks into the import loader, and will disallow loading certain 
plugins. This is not implemented yet, but we would like to prepare this by 
having streamlined import names, which can eventually be enforced.

We would like to introduce this as good practice for not-just-plasma, so it 
would be nice if applications could use the same patterns: Only install into 
org.kde.* what you consider stable API. For internal imports, use private.*, 
for example private.org.kde.yourapplication.module.

Thanks,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic