KCal Library
Go to the documentation of this file.
46 class KCal::KResult::Private
51 mErrorType( NotAnError ),
60 if ( mType == Error ) {
61 mErrorType = Undefined;
63 mErrorType = NotAnError;
67 Private( ErrorType error,
const QString &details )
83 : d( new KCal::
KResult::Private )
88 : d( new KCal::
KResult::Private( type ) )
93 : d( new KCal::
KResult::Private( error, details ) )
99 delete d->mChainedResult;
105 d->mType = o.d->mType;
106 d->mErrorType = o.d->mErrorType;
107 d->mDetails = o.d->mDetails;
108 if ( o.d->mChainedResult ) {
109 d->mChainedResult =
new KResult( *o.d->mChainedResult );
111 d->mChainedResult = 0;
115 KResult::operator bool()
const
122 return d->mType ==
Ok;
132 return d->mType ==
Error;
137 return d->mErrorType;
142 switch ( d->mType ) {
146 return i18n(
"In progress" );
148 switch ( d->mErrorType ) {
150 return i18n(
"Not an error" );
152 return i18n(
"Error" );
154 return i18n(
"Invalid URL" );
156 return i18n(
"Connection failed" );
158 return i18n(
"Write error" );
160 return i18n(
"Read error" );
162 return i18n(
"Wrong Parameter" );
164 return i18n(
"Parse Error" );
166 return i18n(
"Wrong revision of schema" );
170 kError() <<
"Unhandled case";
186 d->mChainedResult =
new KResult( result );
192 return d->mChainedResult;
197 return *d->mChainedResult;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:15 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.