PolkitQt1::Agent::AsyncResult

Search for usage in LXR

PolkitQt1::Agent::AsyncResult Class Reference

#include <polkitqt1-agent-session.h>

Public Member Functions

 AsyncResult (GSimpleAsyncResult *result)
 
void setCompleted ()
 
void setError (const QString &text)
 

Detailed Description

Encapsulation of GSimpleAsyncResult to QObject class.

Definition at line 36 of file polkitqt1-agent-session.h.

Member Function Documentation

◆ setCompleted()

void AsyncResult::setCompleted ( )

Mark the action that is tied to this result as completed.

Definition at line 143 of file polkitqt1-agent-session.cpp.

◆ setError()

void AsyncResult::setError ( const QString text)

Sets an error for the asynchronous result.

Method complete() must be called anyway.

Parameters
texttext of the error message

Definition at line 153 of file polkitqt1-agent-session.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 Fri Aug 12 2022 04:02:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.