PolkitQt-1
            
 
    8#include "polkitqt1-details.h" 
   12#include <polkit/polkit.h> 
   17class Q_DECL_HIDDEN 
Details::Data : 
public QSharedData
 
   21    Data(
const Data &other)
 
   23        , polkitDetails(other.polkitDetails)
 
   25        if (polkitDetails != 
nullptr) {
 
   26            g_object_ref(polkitDetails);
 
   31        if (polkitDetails != 
nullptr) {
 
   32            g_object_unref(polkitDetails);
 
   36    PolkitDetails *polkitDetails;
 
   42    d->polkitDetails = polkit_details_new();
 
 
   48    d->polkitDetails = pkDetails;
 
   50    if (d->polkitDetails != 
nullptr) {
 
   51        g_object_ref(d->polkitDetails);
 
 
   69    const gchar *result = polkit_details_lookup(d->polkitDetails, key.
toUtf8().
data());
 
   70    if (result != 
nullptr) {
 
 
   84    gchar **result = polkit_details_get_keys(d->polkitDetails);
 
   86    int len = g_strv_length(result);
 
   87    for (
int i = 0; i < len; i++) {
 
 
Class used for passing details around.
 
void insert(const QString &key, const QString &value)
Inserts key key with value value.
 
Details()
Creates a new Details object.
 
QStringList keys() const
Gets a list of all keys.
 
QString lookup(const QString &key) const
Get the value for key.
 
void append(QList< T > &&value)
 
QString fromUtf8(QByteArrayView str)
 
QByteArray toUtf8() const const
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 11:58:04 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.