codhandler/codui/inc/CodDownloadImpl.inl
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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:  Inline method definitions of class TCodDownloadImpl.   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef COD_DOWNLOAD_IMPL_INL
       
    20 #define COD_DOWNLOAD_IMPL_INL
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // ---------------------------------------------------------
       
    25 // CCodDownloadImpl::CCodDownloadImpl()
       
    26 // ---------------------------------------------------------
       
    27 //
       
    28 CCodDownloadImpl::CCodDownloadImpl
       
    29     (
       
    30     CCodDownload& aProxy,
       
    31     MCodDownloadObserver& aObserver,
       
    32     CEikonEnv* aEikEnv
       
    33     )
       
    34 : CActive( CActive::EPriorityStandard ),
       
    35   iState( EInit ),
       
    36   iCod( EFalse ),
       
    37   iRoap( EFalse ),
       
    38   iProxy( aProxy ),
       
    39   iObserver( aObserver ),
       
    40   iEikEnv( aEikEnv ),
       
    41   iAutoAccept( EFalse ),
       
    42   iSilentMode( EFalse ),
       
    43   iSuppressNextUrl( EFalse ),
       
    44   iSuppressLaunch( EFalse ),
       
    45   iFota( EFalse )
       
    46     {
       
    47     CActiveScheduler::Add( this );
       
    48     ResetProgress();
       
    49     }
       
    50 
       
    51 // ---------------------------------------------------------
       
    52 // CCodDownloadImpl::ResetProgress()
       
    53 // ---------------------------------------------------------
       
    54 //
       
    55 void CCodDownloadImpl::ResetProgress()
       
    56     {
       
    57     iProgress.iState = TCodDownloadProgress::EInit;
       
    58     iProgress.iError = KErrNone;
       
    59     iProgress.iBytesCur = 0;
       
    60     iProgress.iBytesMax = 0;
       
    61     }
       
    62 
       
    63 #endif /* def COD_DOWNLOAD_IMPL_INL */