iaupdateapi_stub/src/iaupdateresult.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 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:   CIAUpdateResult
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <iaupdateresult.h>
       
    20 
       
    21 
       
    22 EXPORT_C CIAUpdateResult* CIAUpdateResult::NewL()
       
    23     {
       
    24     CIAUpdateResult* self =
       
    25         CIAUpdateResult::NewLC();
       
    26     CleanupStack::Pop( self );
       
    27     return self;
       
    28     }
       
    29 
       
    30 EXPORT_C CIAUpdateResult* CIAUpdateResult::NewLC()
       
    31     {
       
    32     CIAUpdateResult* self =
       
    33         new( ELeave ) CIAUpdateResult();
       
    34     CleanupStack::PushL( self );
       
    35     self->ConstructL();
       
    36     return self;
       
    37     }
       
    38 
       
    39 
       
    40 CIAUpdateResult::CIAUpdateResult()
       
    41 : CBase()
       
    42     {
       
    43     // Nothing to do here.    
       
    44     }
       
    45 
       
    46 void CIAUpdateResult::ConstructL()
       
    47     {
       
    48     // Nothing to do here.
       
    49     }
       
    50 
       
    51 
       
    52 EXPORT_C CIAUpdateResult::~CIAUpdateResult()
       
    53     {
       
    54     // Nothing to do here.    
       
    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