omads/omadsextensions/adapters/agenda/src/nsmlagendaprogressview.cpp
author hgs
Tue, 12 Oct 2010 17:42:13 +0530
changeset 64 a62b67d1f67c
parent 0 dab8a81a92de
permissions -rw-r--r--
201041

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  DS agenda progress view
*
*/



// INCLUDES
#include "nsmldebug.h"
#include "nsmlagendadatastore.h"

// ===================================== MEMBER FUNCTIONS ======================
// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
CNSmlAgendaProgressview* CNSmlAgendaProgressview::NewL()
	{
	_DBG_FILE("CNSmlAgendaProgressview::NewL(): BEGIN");
	CNSmlAgendaProgressview* self = new (ELeave) CNSmlAgendaProgressview();
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop(self);
	_DBG_FILE("CNSmlAgendaProgressview::NewL(): END");
	return self;
	}
	
// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::~CNSmlAgendaProgressview
// Destructor.
// -----------------------------------------------------------------------------
CNSmlAgendaProgressview::~CNSmlAgendaProgressview()
	{
	_DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): BEGIN");
	// Nothing to do
	_DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): END");
	}

// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::Progress
// This calls the observing class with the percentage complete of the current
// operation.
// -----------------------------------------------------------------------------
void CNSmlAgendaProgressview::Progress( TInt /*aPercentageCompleted*/ )
	{
	_DBG_FILE("CNSmlAgendaProgressview::Progress(): BEGIN");
	_DBG_FILE("CNSmlAgendaProgressview::Progress(): END");
	}
	
// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::Completed
// This calls the observing class when the current operation is finished.
// -----------------------------------------------------------------------------
void CNSmlAgendaProgressview::Completed( TInt aError )
	{
	_DBG_FILE("CNSmlAgendaProgressview::Completed(): BEGIN");

    iCompletedStatus = aError;
	CActiveScheduler::Stop();

    _DBG_FILE("CNSmlAgendaProgressview::Completed(): END");
	}

// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::GetCompletedStatus
// This method returns status of Completed method (see above).
// -----------------------------------------------------------------------------
TInt CNSmlAgendaProgressview::GetCompletedStatus()
    {
    return iCompletedStatus;
    }
	
// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::NotifyProgress
// Asks the observing class whether progress callbacks are required.
// -----------------------------------------------------------------------------
TBool CNSmlAgendaProgressview::NotifyProgress()
	{
	_DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): BEGIN");
	_DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): END");
	return EFalse;
	}

// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::CNSmlAgendaProgressview
// C++ default constructor.
// -----------------------------------------------------------------------------
CNSmlAgendaProgressview::CNSmlAgendaProgressview() :
	iCompletedStatus( KErrNotReady )
	{
	_DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): BEGIN");
	// Nothing to do
	_DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): END");
	}
	
// -----------------------------------------------------------------------------
// CNSmlAgendaProgressview::ConstructL
// Second phase constructor.
// -----------------------------------------------------------------------------
void CNSmlAgendaProgressview::ConstructL()
    {
    _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): BEGIN");
    // Nothing to do
    _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): END");
    }

//  End of File