KCal Library
Go to the documentation of this file.
31 #include <QtCore/QString>
32 #include "kcal_export.h"
159 explicit KResult( ErrorType error,
const QString &details = QString() );
171 operator bool()
const;
181 bool isInProgress()
const;
186 bool isError()
const;
191 ErrorType error()
const;
198 QString message()
const;
210 void setDetails(
const QString &details );
216 QString details()
const;
222 QString fullMessage()
const;
236 bool hasChainedResult()
const;
247 QString chainedMessage()
const;
315 :
KResult( error, details ), d( 0 ) {}
324 KResult( Undefined, details ), d( 0 ) {}
Convenience class for creating a KResult of type InProgress.
Type
The different types of results.
ErrorType
The different types of error conditions.
KResultInProgress()
Create KResult object of type InProgress.
KResultError()
Create KResult object of type Error.
This class represents the result of an operation.
@ InProgress
Operation still in-progress.
KResultOk()
Create KResult object of type Ok.
@ ConnectionFailed
unable to establish a connection
KResultError(ErrorType error, const QString &details=QString())
Create KResult object of type Error with given error type and optionally a detailed error message.
@ Undefined
Undefined error.
Convenience class for creating a KResult of type Ok.
KResultError(const QString &details)
Create KResult object of type Error with given detailed error message.
@ NotAnError
Not an error.
@ Ok
Operation successfully completed.
Convenience class for creating a KResult of type Error.
@ WrongParameter
Invalid parameter.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.