Plasma/conditionalQMLImports

From KDE Community Wiki
Revision as of 01:39, 2 May 2013 by Sebas (talk | contribs) (describe ideas from Tokamak6)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Conditional imports

In order to restrict applications or components in general, a security mechanism is needed in Qt. The basic design should be the following:

  • In the import code path, the import is either done right away (current case), or it uses an optional import policy agent, which checks if the application or component has sufficient privileges, and either allows or denies the import
  • The policy agent is replacable, much like QNetworkAccessManager
  • import performance in current case should not suffer