ncdengine/provider/server/inc/ncdreportstatusinfo.h
author Stefan Karlsson <stefan.karlsson@nokia.com>
Sun, 28 Mar 2010 16:36:45 +0100
branchCompilerCompatibility
changeset 21 de6723242771
parent 0 ba25891c3a9e
permissions -rw-r--r--
Fixed "extra qualification" syntax errors.

/*
* Copyright (c) 2007-2008 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:  
*
*/


#ifndef T_NCDREPORTSTATUSINFO_H
#define T_NCDREPORTSTATUSINFO_H

#include "ncdreportdefines.h"

/**
 * Simple class that contains report status info.
 * Constructors are provided for initializations.
 *
 *
 */
class TNcdReportStatusInfo
    {    

public:

    /**
     * Constructor that can be used to set default values
     * to the variables.
     */
    TNcdReportStatusInfo():
        iStatus( ENcdReportNone ),
        iErrorCode( KErrNone )
        {
        }

    /**
     * Constructor to create the object directly with the given values.
     */
    TNcdReportStatusInfo( const TNcdReportStatus& aStatus,
                          const TInt& aErrorCode ):
        iStatus( aStatus ),
        iErrorCode( aErrorCode )
        {
        }

    /**
     * Constructor to make a copy of the given object.
     */
    TNcdReportStatusInfo( const TNcdReportStatusInfo& aObject ):
        iStatus( aObject.iStatus ),
        iErrorCode( aObject.iErrorCode )
        {
        }
    
    /**
     * Status value for the report.
     */
    TNcdReportStatus iStatus;
    
    /**
     * Exact error code for the given status.
     */
    TInt iErrorCode;
    
    };

#endif // T_NCDREPORTSTATUSINFO_H