appinstaller/AppinstUi/sisxsifplugin/tsrc/testinstaller/activerunner.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:45:18 +0300
changeset 42 d17dc5398051
parent 29 26b6f0522fd8
child 55 ac7f90a6ff4c
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
* Copyright (c) 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:  Test installer that uses Usif::RSoftwareInstall API.
*
*/

#include "activerunner.h"
#include "activerunner_symbian.h"


ActiveRunner::ActiveRunner(bool useSif)
{
    d_ptr = new ActiveRunnerPrivate(this);
    if (d_ptr) {
        d_ptr->Initialize(useSif);
    }
}

ActiveRunner::~ActiveRunner()
{
    delete d_ptr;
}

void ActiveRunner::install(const QString &fileName, bool silent, bool openfile)
{
    if (d_ptr) {
        d_ptr->Install(fileName, silent, openfile);
    }
}

void ActiveRunner::remove(const Usif::TComponentId& aComponentId, bool silent)
{
    if (d_ptr) {
        d_ptr->Remove(aComponentId, silent);
    }
}

void ActiveRunner::remove(const TUid& aUid, const TDesC8& aMime, bool silent)
{
    if (d_ptr) {
        d_ptr->Remove(aUid, aMime, silent);
    }
}

void ActiveRunner::handleCompletion()
{
    emit opCompleted();
}

void ActiveRunner::handleError(int error)
{
    emit opFailed(error);
}