ncdengine/provider/server/inc/ncdreportstatusinfo.h
changeset 4 32704c33136d
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_NCDREPORTSTATUSINFO_H
       
    20 #define T_NCDREPORTSTATUSINFO_H
       
    21 
       
    22 #include "ncdreportdefines.h"
       
    23 
       
    24 /**
       
    25  * Simple class that contains report status info.
       
    26  * Constructors are provided for initializations.
       
    27  *
       
    28  *
       
    29  */
       
    30 class TNcdReportStatusInfo
       
    31     {    
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Constructor that can be used to set default values
       
    37      * to the variables.
       
    38      */
       
    39     TNcdReportStatusInfo():
       
    40         iStatus( ENcdReportNone ),
       
    41         iErrorCode( KErrNone )
       
    42         {
       
    43         }
       
    44 
       
    45     /**
       
    46      * Constructor to create the object directly with the given values.
       
    47      */
       
    48     TNcdReportStatusInfo( const TNcdReportStatus& aStatus,
       
    49                           const TInt& aErrorCode ):
       
    50         iStatus( aStatus ),
       
    51         iErrorCode( aErrorCode )
       
    52         {
       
    53         }
       
    54 
       
    55     /**
       
    56      * Constructor to make a copy of the given object.
       
    57      */
       
    58     TNcdReportStatusInfo( const TNcdReportStatusInfo& aObject ):
       
    59         iStatus( aObject.iStatus ),
       
    60         iErrorCode( aObject.iErrorCode )
       
    61         {
       
    62         }
       
    63     
       
    64     /**
       
    65      * Status value for the report.
       
    66      */
       
    67     TNcdReportStatus iStatus;
       
    68     
       
    69     /**
       
    70      * Exact error code for the given status.
       
    71      */
       
    72     TInt iErrorCode;
       
    73     
       
    74     };
       
    75 
       
    76 #endif // T_NCDREPORTSTATUSINFO_H