homescreenapp/serviceproviders/hsmenuserviceprovider/inc/hsiconsidleloader.h
branchRCL_3
changeset 82 5f0182e07bfb
equal deleted inserted replaced
79:f00a6757af32 82:5f0182e07bfb
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Menu All Applications state.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSICONSIDLELOADER_H_
       
    19 #define HSICONSIDLELOADER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QSize>
       
    23 #include "hsmenuservice_global.h"
       
    24 
       
    25 class QTimer;
       
    26 class HsMenuItemModel;
       
    27 
       
    28 
       
    29 class HsIconsIdleLoader: public QObject
       
    30 {
       
    31     HS_SERVICE_TEST_FRIEND_CLASS(MenuServiceTest)
       
    32     
       
    33     Q_OBJECT
       
    34 public:
       
    35     
       
    36     HsIconsIdleLoader(HsMenuItemModel *model, QObject *parent = 0);
       
    37     ~HsIconsIdleLoader();
       
    38     
       
    39 private slots:
       
    40     void processWhenIdle();
       
    41     
       
    42 private:
       
    43     HsMenuItemModel *mModel;
       
    44     QTimer *mTimer;
       
    45     const QSizeF mIconSize;
       
    46     int mOutStandingIconToLoad;
       
    47 };
       
    48 
       
    49 #endif /* HSICONSIDLELOADER_H_ */