• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • KDE Home
  • Contact Us
 

PolkitQt-1

Polkit-qt-1 - Qt wrapper around polkit-1

Overview

Note
Please note that if you're developing an application on the KDE Development Platform and not just with Qt, you might want to use KAuth (kdelibs/core/auth)

polkit-qt-1 aims to make it easy for Qt developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.

polkit-qt-1 is not a direct replacement of polkit-qt: it is based on polkit-1, which is not backwards compatible in any way with Policykit <= 0.9, which was the backend of polkit-qt. You are encouraged to port polkit-qt applications to polkit-qt or KAuth, if based on the KDE Development Platform, since PolicyKit <= 0.9 is no longer maintained.

polkit-qt-1 is split in three libraries: polkit-qt-core-1, polkit-qt-gui-1 and polkit-qt-agent-1

polkit-qt-core-1 lets you control actions and authentication without a GUI, with some very simple functions. It also lets you retrieve and control useful informations on the polkit authority. You will be mostly interested in the Authority class.

polkit-qt-gui-1 lets you easily associate GUI items with polkit actions. Through some simple wrapper classes you are able to associate QAction and QAbstractButton to a polkit action, and get their properties changed accordingly to polkit's result. It includes the classes Action, ActionButton and ActionButtons

polkit-qt-agent-1 lets you write your own polkit authentication agents in a very simple way.

  • A sample usage of polkit-qt-1 can be found in Polkit-qt-1 usage example
  • Alphabetical Class List
  • Class Hierarchy
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 8 2019 04:50:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

polkit-qt-1 API Reference

Skip menu "polkit-qt-1 API Reference"

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal