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.

Constructor & Destructor Documentation

◆ AsyncResult()

AsyncResult::AsyncResult ( GSimpleAsyncResult * result)

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

◆ ~AsyncResult()

AsyncResult::~AsyncResult ( )

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

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.

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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.