filemanager/src/inc/fmserviceutils/fmserviceutils.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:06:46 +0300
changeset 48 1bebd60c0f00
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* Copyright (c) 2009 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:
*     The source file of service utils
*/

#include "fmserviceutils.h"

#include "fmserviceutilsprivate.h"

FmServiceUtils::FmServiceUtils( QObject *parent ) : QObject( parent )
{
    d = new FmServiceUtilsPrivate;
}

FmServiceUtils::~FmServiceUtils()
{
    delete d;
}

/*!
    send files that included in \a filePathList via ShareUi
*/
void FmServiceUtils::sendFile( const QStringList &filePathList )
{
    d->sendFile( filePathList );
}

/*!
    call CBaBackupSessionWrapper to close apps, for example, before formant, apps need be closed
    this is synchronous which will take a while, please call this function in thread
*/
void FmServiceUtils::closeApps()
{
    d->closeApps();
}

/*!
    call CBaBackupSessionWrapper to restart apps
    for example, after formant, closed apps need be restarted
    this is synchronous which will return quickly.
*/
void FmServiceUtils::restartApps()
{
    d->restartApps();
}