diff -r 000000000000 -r 094583676ce7 wvuing/wvuipresence/inc/MCAPresenceErrors.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wvuing/wvuipresence/inc/MCAPresenceErrors.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Container for detailed errors +* +*/ + + + +#ifndef MCAPRESENCEERRORS_H +#define MCAPRESENCEERRORS_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class MCAPresenceError; +class CCAPresenceError; + +// CLASS DECLARATION + +/** +* Container class for presence errors +* +* @lib CAPresence.lib +* @since 2.1 +*/ +class MCAPresenceErrors + { + public: // New functions + + /** + * Sets error + * @since 2.1 + * @param aError Error id + */ + virtual void SetError( TInt aError ) = 0; + + /** + * Returns error code + * @since 2.1 + * @return Integer that contains error id + */ + virtual TInt Error() const = 0; + + /** + * Adds detailed presence error to error container + * @since 2.1 + * @param aError Presence error + */ + virtual void AddDetailedErrorL( CCAPresenceError* aError ) = 0; + + /** + * Removes presence error from container + * @since 2.1 + * @param aError + */ + virtual void RemoveDetailedError( CCAPresenceError* aError ) = 0; + + /** + * Resets container + * @since 2.1 + */ + virtual void Reset() = 0; + + /** + * Returns array of errors + * @since 2.1 + * @return Array of presence errors + */ + virtual const RPointerArray& DetailedErrors() const = 0; + }; + +#endif // MCAPRESENCEERRORS_H + +// End of File