homescreenapp/hsdomainmodel/inc/hsbackuprestoreobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:30:16 +0300
changeset 55 03646e8da489
parent 51 4785f57bf3d4
child 60 30f14686fb04
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:  Backup/Restore observer.
*
*/

#ifndef HSBACKUPRESTOREOBSERVER_H
#define HSBACKUPRESTOREOBSERVER_H

#include <QObject>
#include "hsdomainmodel_global.h"
#include "hstest_global.h"

HOMESCREEN_TEST_CLASS(TestRuntimeServices)

#ifdef Q_OS_SYMBIAN
class HsBackupRestoreObserverPrivate;
#endif //Q_OS_SYMBIAN

class HSDOMAINMODEL_EXPORT HsBackupRestoreObserver : public QObject
{
	Q_OBJECT

public:
	static HsBackupRestoreObserver *instance();	
	~HsBackupRestoreObserver();
	
	void backupRestoreStarted();
    void backupRestoreComplited();
    
    void readyForBUR();
    bool checkBUR();

signals:	
    void event_backupRestoreStarted();
    void event_backupRestoreComplited();	

private:
	HsBackupRestoreObserver(QObject *parent = 0);
    Q_DISABLE_COPY(HsBackupRestoreObserver)

private:

#ifdef Q_OS_SYMBIAN
    /**
     * mD pointer to HsBackupRestoreObserverPrivate
     * Owned by HsBackupRestoreObserver object, instantiated in
     * constructor.
     */
    HsBackupRestoreObserverPrivate *mD;
#endif //Q_OS_SYMBIAN
    
    bool mBUROngoing;

    static HsBackupRestoreObserver *mInstance;
#ifdef Q_OS_SYMBIAN
    friend class HsBackupRestoreObserverPrivate;
#endif //Q_OS_SYMBIAN
    HOMESCREEN_TEST_FRIEND_CLASS(TestRuntimeServices)
};

#endif // HSBACKUPRESTOREOBSERVER_H

// End of File