omads/omadsextensions/adapters/agenda/src/nsmlagendaprogressview.cpp
changeset 19 2691f6aa1921
parent 4 e6e896426eac
child 20 e1de7d03f843
equal deleted inserted replaced
4:e6e896426eac 19:2691f6aa1921
     1 /*
       
     2 * Copyright (c) 2005 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:  DS agenda progress view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDES
       
    21 #include "nsmlagendadebug.h"
       
    22 #include "nsmlagendadatastore.h"
       
    23 #include <nsmldebug.h>
       
    24 
       
    25 // ===================================== MEMBER FUNCTIONS ======================
       
    26 // -----------------------------------------------------------------------------
       
    27 // CNSmlAgendaProgressview::NewL
       
    28 // Two-phased constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 CNSmlAgendaProgressview* CNSmlAgendaProgressview::NewL()
       
    31 	{
       
    32 	FLOG(_L("CNSmlAgendaProgressview::NewL(): BEGIN"));
       
    33 	CNSmlAgendaProgressview* self = new (ELeave) CNSmlAgendaProgressview();
       
    34 	self->ConstructL();
       
    35 	FLOG(_L("CNSmlAgendaProgressview::NewL(): END"));
       
    36 	return self;
       
    37 	}
       
    38 	
       
    39 // -----------------------------------------------------------------------------
       
    40 // CNSmlAgendaProgressview::~CNSmlAgendaProgressview
       
    41 // Destructor.
       
    42 // -----------------------------------------------------------------------------
       
    43 CNSmlAgendaProgressview::~CNSmlAgendaProgressview()
       
    44 	{
       
    45 	FLOG(_L("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): BEGIN"));
       
    46 	// Nothing to do
       
    47 	FLOG(_L("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): END"));
       
    48 	}
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CNSmlAgendaProgressview::Progress
       
    52 // This calls the observing class with the percentage complete of the current
       
    53 // operation.
       
    54 // -----------------------------------------------------------------------------
       
    55 void CNSmlAgendaProgressview::Progress( TInt /*aPercentageCompleted*/ )
       
    56 	{
       
    57 	FLOG(_L("CNSmlAgendaProgressview::Progress(): BEGIN"));
       
    58 	FLOG(_L("CNSmlAgendaProgressview::Progress(): END"));
       
    59 	}
       
    60 	
       
    61 // -----------------------------------------------------------------------------
       
    62 // CNSmlAgendaProgressview::Completed
       
    63 // This calls the observing class when the current operation is finished.
       
    64 // -----------------------------------------------------------------------------
       
    65 void CNSmlAgendaProgressview::Completed( TInt aError )
       
    66 	{
       
    67 	FLOG(_L("CNSmlAgendaProgressview::Completed(): BEGIN"));
       
    68 
       
    69     iCompletedStatus = aError;
       
    70 	CActiveScheduler::Stop();
       
    71 
       
    72     FLOG(_L("CNSmlAgendaProgressview::Completed(): END"));
       
    73 	}
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CNSmlAgendaProgressview::GetCompletedStatus
       
    77 // This method returns status of Completed method (see above).
       
    78 // -----------------------------------------------------------------------------
       
    79 TInt CNSmlAgendaProgressview::GetCompletedStatus()
       
    80     {
       
    81     return iCompletedStatus;
       
    82     }
       
    83 	
       
    84 // -----------------------------------------------------------------------------
       
    85 // CNSmlAgendaProgressview::NotifyProgress
       
    86 // Asks the observing class whether progress callbacks are required.
       
    87 // -----------------------------------------------------------------------------
       
    88 TBool CNSmlAgendaProgressview::NotifyProgress()
       
    89 	{
       
    90 	FLOG(_L("CNSmlAgendaProgressview::NotifyProgress(): BEGIN"));
       
    91 	FLOG(_L("CNSmlAgendaProgressview::NotifyProgress(): END"));
       
    92 	return EFalse;
       
    93 	}
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CNSmlAgendaProgressview::CNSmlAgendaProgressview
       
    97 // C++ default constructor.
       
    98 // -----------------------------------------------------------------------------
       
    99 CNSmlAgendaProgressview::CNSmlAgendaProgressview() :
       
   100 	iCompletedStatus( KErrNotReady )
       
   101 	{
       
   102 	FLOG(_L("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): BEGIN"));
       
   103 	// Nothing to do
       
   104 	FLOG(_L("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): END"));
       
   105 	}
       
   106 	
       
   107 // -----------------------------------------------------------------------------
       
   108 // CNSmlAgendaProgressview::ConstructL
       
   109 // Second phase constructor.
       
   110 // -----------------------------------------------------------------------------
       
   111 void CNSmlAgendaProgressview::ConstructL()
       
   112     {
       
   113     FLOG(_L("CNSmlAgendaProgressview::ConstructL(): BEGIN"));
       
   114     // Nothing to do
       
   115     FLOG(_L("CNSmlAgendaProgressview::ConstructL(): END"));
       
   116     }
       
   117 
       
   118 //  End of File