iaupdate/IAD/firmwareupdate/src/iaupdatefwsyncstate.cpp
author hgs
Thu, 14 Oct 2010 14:11:30 +0300
changeset 77 d1838696558c
parent 0 ba25891c3a9e
permissions -rw-r--r--
201039_02

/*
* Copyright (c) 2008-2010 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:    
*
*/



// INCLUDE FILES

#include "iaupdatefwsyncstate.h"
#include "iaupdatefwsyncutil.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// NewL
//
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
  CIAUpdateFWSyncState* CIAUpdateFWSyncState::NewL()
    {
    CIAUpdateFWSyncState* self = new(ELeave) CIAUpdateFWSyncState();
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop(self);
	return self;
    }

// -----------------------------------------------------------------------------
// ~CIAUpdateFWSyncState
//
// Destructor.
// -----------------------------------------------------------------------------
//
  CIAUpdateFWSyncState::~CIAUpdateFWSyncState()
    {
    }

// -----------------------------------------------------------------------------
// CIAUpdateFWSyncState
//
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
CIAUpdateFWSyncState::CIAUpdateFWSyncState()
    {
    }

// -----------------------------------------------------------------------------
// ConstructL
//
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CIAUpdateFWSyncState::ConstructL()
    {
	Reset();
    }

// -----------------------------------------------------------------------------
// Reset
//
// Resets all state variables.
// -----------------------------------------------------------------------------
//
  void CIAUpdateFWSyncState::Reset()
    {
	iSyncPhase = EPhaseNone;
    }


// -----------------------------------------------------------------------------
// SetSyncPhase
//
// -----------------------------------------------------------------------------
//
  void CIAUpdateFWSyncState::SetSyncPhase(TInt aPhase)
	{
	iSyncPhase = aPhase;
	}


// -----------------------------------------------------------------------------
// SyncPhase
//
// -----------------------------------------------------------------------------
//
  TInt CIAUpdateFWSyncState::SyncPhase()
	{
	return iSyncPhase;
	}