PolkitQt1::Details

Search for usage in LXR

PolkitQt1::Details Class Reference

#include <Details>

Public Member Functions

 Details ()
 
 Details (const Details &other)
 
 Details (PolkitDetails *pkDetails)
 
void insert (const QString &key, const QString &value)
 
QStringList keys () const
 
QString lookup (const QString &key) const
 
Detailsoperator= (const Details &other)
 

Detailed Description

Class used for passing details around.

Author
Radek Novacek rnova[email protected][email protected][email protected]redha[email protected]t.co[email protected]m

Definition at line 34 of file polkitqt1-details.h.

Constructor & Destructor Documentation

◆ Details() [1/3]

PolkitQt1::Details::Details ( )

Creates a new Details object.

Definition at line 39 of file polkitqt1-details.cpp.

◆ Details() [2/3]

PolkitQt1::Details::Details ( PolkitDetails *  pkDetails)
explicit

Creates Details object from PolkitDetails.

Warning
Use this only if you are completely aware of what are you doing!
Parameters
pkDetailsPolkitDetails object

Definition at line 45 of file polkitqt1-details.cpp.

◆ Details() [3/3]

PolkitQt1::Details::Details ( const Details other)
default

Copy constructor.

Member Function Documentation

◆ insert()

void PolkitQt1::Details::insert ( const QString key,
const QString value 
)

Inserts key key with value value.

Parameters
keyA key.
valueA value.

Definition at line 77 of file polkitqt1-details.cpp.

◆ keys()

QStringList PolkitQt1::Details::keys ( ) const

Gets a list of all keys.

Returns
List of all keys.

Definition at line 82 of file polkitqt1-details.cpp.

◆ lookup()

QString PolkitQt1::Details::lookup ( const QString key) const

Get the value for key.

Parameters
keyA key
Returns
Value of the key key, otherwise empty QString.

Definition at line 67 of file polkitqt1-details.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:02:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.