filemanager/src/inc/fmserviceutils/private/win32/fmserviceutilsprivate.h
author hgs
Mon, 18 Oct 2010 09:44:31 +0800
changeset 49 81668a704644
parent 47 12b82dc0e8db
permissions -rw-r--r--
201041

/*
* 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 header file of service utils private for win32 wrapper
*/

#ifndef FMSERVICEUTILSPRIVATE_H
#define FMSERVICEUTILSPRIVATE_H

#include <QStringList>
#include <QVariant>
#include <QVariantHash>
#include <QEventLoop>
#include <QTimer>

class FmServiceUtilsPrivate : public QObject
{
Q_OBJECT
public:
    FmServiceUtilsPrivate( QObject *parent = 0 );
    virtual ~FmServiceUtilsPrivate();

    void sendFile( const QStringList &filePathList );
    void closeApps();
    void restartApps();
    
    // activity implement
    bool saveActivity(const QString &activityId, const QVariant &activityData, const QVariantHash &metadata);
    bool removeActivity(const QString &activityId);
private slots:
    void onCloseAppTimeup();
    
private:
    QEventLoop          mCloseAppLoop;
    QTimer              mCloseAppTimer;

    bool                mIsCloseAppsTimeup;
};

#endif