iaupdateapi_stub/src/iaupdate.cpp
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 12:04:39 +0000
branchRCL_3
changeset 84 e6c5e34cd9b9
parent 0 ba25891c3a9e
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

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


#include <iaupdate.h>


EXPORT_C CIAUpdate* CIAUpdate::NewL( MIAUpdateObserver& aObserver )
    {
    CIAUpdate* self = CIAUpdate::NewLC( aObserver );
    CleanupStack::Pop( self );
    return self;
    }
    
EXPORT_C CIAUpdate* CIAUpdate::NewLC( MIAUpdateObserver& aObserver )
    {
    CIAUpdate* self = new( ELeave ) CIAUpdate();
    CleanupStack::PushL( self );
    self->ConstructL( aObserver );
    return self;
    }

    
CIAUpdate::CIAUpdate()
: CBase()
    {
    
    }
    
void CIAUpdate::ConstructL( MIAUpdateObserver& /*aObserver*/ )
    {
    // This is just a stub file.
    // This stuf file does not provide any functionality.
    // So, leave during construction and inform possible user
    // that this functionality is not supported.
    User::Leave( KErrNotSupported );
    }


EXPORT_C CIAUpdate::~CIAUpdate()
    {
    // Nothing to do here.
    }


EXPORT_C void CIAUpdate::CheckUpdates( const CIAUpdateParameters& /*aUpdateParameters*/ )
    {
    }


EXPORT_C void CIAUpdate::ShowUpdates( const CIAUpdateParameters& /*aUpdateParameters*/ )
    {
    }
    

EXPORT_C void CIAUpdate::Update( const CIAUpdateParameters& /*aUpdateParameters*/ )
    {
    }


EXPORT_C void CIAUpdate::UpdateQuery()
    {
    }


CIAUpdateManager& CIAUpdate::UpdateManager() const
    {
    // This class object leaves with KErrNotSupported when
    // NewL or NewLC is called. So, it does not matter even
    // if we return reference to NULL here.
    CIAUpdateManager* ptr( NULL );
    return *ptr;
    }