wvuing/wvuipresence/inc/MCAPresenceErrors.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 11:50:09 +0200
changeset 2 7b3b89e6be20
parent 0 094583676ce7
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* 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 <e32base.h>

// 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<MCAPresenceError>& DetailedErrors() const = 0;
    };

#endif      // MCAPRESENCEERRORS_H

// End of File