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 35 of file polkitqt1-agent-session.h.

Member Function Documentation

void AsyncResult::setCompleted ( )

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

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

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-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:06:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.