homescreenapp/serviceproviders/hsmenuserviceprovider/inc/hsiconsidleloader.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:17:27 +0300
changeset 85 35368b604b28
parent 77 4b195f3bea29
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 * 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: Menu All Applications state.
 *
 */

#ifndef HSICONSIDLELOADER_H_
#define HSICONSIDLELOADER_H_

#include <QObject>
#include <QSize>
#include "hsmenuservice_global.h"

class QTimer;
class HsMenuItemModel;


class HsIconsIdleLoader: public QObject
{
    HS_SERVICE_TEST_FRIEND_CLASS(MenuServiceTest)
    
    Q_OBJECT
public:
    
    HsIconsIdleLoader(HsMenuItemModel *model, QObject *parent = 0);
    ~HsIconsIdleLoader();
    
private slots:
    void processWhenIdle();
    
private:
    HsMenuItemModel *mModel;
    QTimer *mTimer;
    const QSizeF mIconSize;
    int mOutStandingIconToLoad;
};

#endif /* HSICONSIDLELOADER_H_ */