omads/omadsextensions/adapters/agenda/src/nsmlagendaprogressview.cpp
changeset 0 dab8a81a92de
child 1 95fdac6ccb5c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omads/omadsextensions/adapters/agenda/src/nsmlagendaprogressview.cpp	Mon Nov 23 14:46:41 2009 +0200
@@ -0,0 +1,117 @@
+/*
+* 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();
+	self->ConstructL();
+	_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