iaupdate/IAD/api/src/iaupdateresult.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   This module contains the implementation of CIAUpdateResult
       
    15 *                class member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include <iaupdateresult.h>
       
    23 
       
    24 
       
    25 EXPORT_C CIAUpdateResult* CIAUpdateResult::NewL()
       
    26     {
       
    27     CIAUpdateResult* self =
       
    28         CIAUpdateResult::NewLC();
       
    29     CleanupStack::Pop( self );
       
    30     return self;
       
    31     }
       
    32 
       
    33 EXPORT_C CIAUpdateResult* CIAUpdateResult::NewLC()
       
    34     {
       
    35     CIAUpdateResult* self =
       
    36         new( ELeave ) CIAUpdateResult();
       
    37     CleanupStack::PushL( self );
       
    38     self->ConstructL();
       
    39     return self;
       
    40     }
       
    41 
       
    42 
       
    43 CIAUpdateResult::CIAUpdateResult()
       
    44 : CBase()
       
    45     {
       
    46     }
       
    47 
       
    48 void CIAUpdateResult::ConstructL()
       
    49     {
       
    50     }
       
    51 
       
    52 
       
    53 EXPORT_C CIAUpdateResult::~CIAUpdateResult()
       
    54     {
       
    55     }
       
    56 
       
    57 
       
    58 EXPORT_C TInt CIAUpdateResult::SuccessCount() const
       
    59     {
       
    60     return iSuccessCount;
       
    61     }
       
    62 
       
    63 EXPORT_C void CIAUpdateResult::SetSuccessCount( TInt aSuccessCount )
       
    64     {
       
    65     iSuccessCount = aSuccessCount;
       
    66     }
       
    67 
       
    68 
       
    69 EXPORT_C TInt CIAUpdateResult::FailCount() const
       
    70     {
       
    71     return iFailCount;
       
    72     }
       
    73 
       
    74 EXPORT_C void CIAUpdateResult::SetFailCount( TInt aFailCount )
       
    75     {
       
    76     iFailCount = aFailCount;
       
    77     }
       
    78 
       
    79 
       
    80 EXPORT_C TInt CIAUpdateResult::CancelCount() const
       
    81     {
       
    82     return iCancelCount;
       
    83     }
       
    84 
       
    85 EXPORT_C void CIAUpdateResult::SetCancelCount( TInt aCancelCount )
       
    86     {
       
    87     iCancelCount = aCancelCount;
       
    88     }
       
    89