homescreenapp/serviceproviders/hsmenuserviceprovider/src/hsmenuitemmodel.cpp
author hgs
Wed, 06 Oct 2010 16:06:24 +0300
changeset 97 66b5fe3c07fd
parent 81 7dd137878ff8
child 98 e6f74eb7f69f
permissions -rw-r--r--
201039_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
 * All rights reserved.
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
 *
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
 * Initial Contributors:
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
 *
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
 * Contributors:
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
 *
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
 * Description: hsmenuitemmodel.cpp
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
 *
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
62
hgs
parents: 35
diff changeset
    18
#include <hbnamespace.h>
81
hgs
parents: 71
diff changeset
    19
#include <HbInstance>
hgs
parents: 71
diff changeset
    20
#include <HbStyle>
71
hgs
parents: 63
diff changeset
    21
#include <cauninstallnotifier.h>
hgs
parents: 63
diff changeset
    22
#include <casoftwareregistry.h>
62
hgs
parents: 35
diff changeset
    23
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
#include "hsmenuitemmodel.h"
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
#include "hsmenuserviceutils.h"
71
hgs
parents: 63
diff changeset
    26
#include "hsiconsidleloader.h"
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
// Constants
81
hgs
parents: 71
diff changeset
    29
const QSizeF smallIconSize(55, 55);
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
/*!
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
 Constructor
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
 \param query used to create model
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
 \param pointer to parent object
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
HsMenuItemModel::HsMenuItemModel(const CaQuery &query, QObject *parent) :
71
hgs
parents: 63
diff changeset
    37
    CaItemModel(query, parent),
hgs
parents: 63
diff changeset
    38
    mIconsIdleLoader(NULL)
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
{
81
hgs
parents: 71
diff changeset
    40
    qreal size;
hgs
parents: 71
diff changeset
    41
    if (hbInstance->style()->parameter(
hgs
parents: 71
diff changeset
    42
            QString("hb-param-graphic-size-primary-large"), size)) {
hgs
parents: 71
diff changeset
    43
        setIconSize(QSizeF(size, size));
hgs
parents: 71
diff changeset
    44
    } else {
hgs
parents: 71
diff changeset
    45
        setIconSize(smallIconSize);
hgs
parents: 71
diff changeset
    46
    }    
71
hgs
parents: 63
diff changeset
    47
    mComponentId = 0;
hgs
parents: 63
diff changeset
    48
    mUninstallNotifier = 
hgs
parents: 63
diff changeset
    49
        CaSoftwareRegistry::create()->createUninstallNotifier();
hgs
parents: 63
diff changeset
    50
    connect(mUninstallNotifier, SIGNAL(progressChange(int, int)),
hgs
parents: 63
diff changeset
    51
            this, SLOT(uninstallChange(int, int)));
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
}
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    53
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
/*!
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
 Destructor
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    57
HsMenuItemModel::~HsMenuItemModel()
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
{
71
hgs
parents: 63
diff changeset
    59
    if (!mIds.isEmpty()) {
hgs
parents: 63
diff changeset
    60
        mIds.clear();
hgs
parents: 63
diff changeset
    61
    }
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    62
}
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
/*!
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
 Sets sort order in the model
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
void HsMenuItemModel::setSort(
81
hgs
parents: 71
diff changeset
    68
    Hs::HsSortAttribute sortAttribute)
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
{
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    70
    HSMENUTEST_FUNC_ENTRY("HsMenuItemModel::setSort");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    71
    CaItemModel::setSort(HsMenuServiceUtils::sortBy(sortAttribute),
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
                         HsMenuServiceUtils::sortOrder(sortAttribute));
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    73
    HSMENUTEST_FUNC_EXIT(" HsMenuItemModel::setSort");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    74
}
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    75
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    76
/*!
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    77
 Returns data of particular collection
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    78
 \param index
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    79
 \param role
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
 \retval
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    81
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    82
QVariant HsMenuItemModel::data(const QModelIndex &index,
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    83
                               int role) const
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    84
{
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    85
    HSMENUTEST_FUNC_ENTRY("HsMenuItemModel::data");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    86
    QVariant variant;
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    88
    if (role == Qt::DecorationRole && newIconNeeded(index)) {
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
        QList<QVariant> icons;
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    90
        
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    91
        QVariant iconVariant = CaItemModel::data(index, role);
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    92
        HbIcon icon = iconVariant.value<HbIcon>();
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    93
        icon.addProportionalBadge(Qt::AlignTop | Qt::AlignRight,
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    94
            HbIcon(Hs::newIconId), QSizeF(0.5, 0.5));
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    95
        icons << HbIcon(icon);
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    96
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
    97
        variant = QVariant(icons);      
62
hgs
parents: 35
diff changeset
    98
    } else if (role == Hb::IndexFeedbackRole){
hgs
parents: 35
diff changeset
    99
        QVariant display = CaItemModel::data(index, Qt::DisplayRole);
hgs
parents: 35
diff changeset
   100
        if (display.type() == QVariant::String){
63
hgs
parents: 62
diff changeset
   101
            variant = QVariant(display.toString().at(0).toUpper());;
62
hgs
parents: 35
diff changeset
   102
        } else {
63
hgs
parents: 62
diff changeset
   103
            variant = QVariant(display.toList().at(0).toString().at(0).toUpper());
62
hgs
parents: 35
diff changeset
   104
        }
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   105
    } else if (role == Qt::DecorationRole && secondLineVisibility()
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   106
                && !(entry(index)->flags() & MissingEntryFlag)
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   107
                && entry(index)->entryTypeName() == Hs::packageTypeName) {
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   108
            QList<QVariant> icons;
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   109
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   110
            icons << CaItemModel::data(index, role);
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   111
            icons << HbIcon(entry(index)->attribute(Hs::drivesIconIdsAttributeName));
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   112
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   113
            variant = QVariant(icons);
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   114
    } else {
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   115
        
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   116
        variant = CaItemModel::data(index, role);
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   117
    }
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   118
    HSMENUTEST(QString("role: %1, value: %2").arg(role).arg(variant.toString()));
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   119
    HSMENUTEST_FUNC_EXIT("HsMenuItemModel::data");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   120
    return variant;
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   121
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   122
}
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   123
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   124
/*!
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   125
 Checks if blink icon needed for entry
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   126
 \param entry entry representing an item
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   127
 \retval decision
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   128
 */
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   129
bool HsMenuItemModel::newIconNeeded(const QModelIndex &index) const
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   130
{
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   131
    HSMENUTEST_FUNC_ENTRY("HsMenuItemModel::newIconNeeded");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   132
    bool result = false;
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   133
    if (root().isValid()
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   134
            && (!(entry(index)->flags() & UsedEntryFlag))
81
hgs
parents: 71
diff changeset
   135
            && entry(root())->entryTypeName() == Hs::collectionDownloadedTypeName) {
35
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   136
        result = true;
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   137
    }
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   138
    HSMENUTEST_FUNC_EXIT("HsMenuItemModel::newIconNeeded");
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   139
    return result;
f9ce957a272c Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   140
}
71
hgs
parents: 63
diff changeset
   141
hgs
parents: 63
diff changeset
   142
/*!
hgs
parents: 63
diff changeset
   143
 Updating uninstall progress with value for each item
hgs
parents: 63
diff changeset
   144
  \param componentId Component Id of installed item
hgs
parents: 63
diff changeset
   145
  \param valueOfProgress % value of current progress
hgs
parents: 63
diff changeset
   146
 */
hgs
parents: 63
diff changeset
   147
void HsMenuItemModel::uninstallChange(int componentId, int valueOfProgress)
hgs
parents: 63
diff changeset
   148
{
hgs
parents: 63
diff changeset
   149
    if (componentId!=mComponentId) {
hgs
parents: 63
diff changeset
   150
        if (!mIds.isEmpty()) {
hgs
parents: 63
diff changeset
   151
            mIds.clear();
hgs
parents: 63
diff changeset
   152
        }
hgs
parents: 63
diff changeset
   153
        // get items list with same componentID
hgs
parents: 63
diff changeset
   154
        mIds = CaItemModel::getUninstallingEntriesIds(componentId);
hgs
parents: 63
diff changeset
   155
        mComponentId = componentId;
hgs
parents: 63
diff changeset
   156
    }
hgs
parents: 63
diff changeset
   157
    // update each item with progress value
hgs
parents: 63
diff changeset
   158
    foreach (int id, mIds) {
hgs
parents: 63
diff changeset
   159
        CaItemModel::updateProgress(id, valueOfProgress);
hgs
parents: 63
diff changeset
   160
    }
hgs
parents: 63
diff changeset
   161
}
hgs
parents: 63
diff changeset
   162
hgs
parents: 63
diff changeset
   163
hgs
parents: 63
diff changeset
   164
/*!
hgs
parents: 63
diff changeset
   165
 Start preloading icons if idle
hgs
parents: 63
diff changeset
   166
 \param entry entry representing an item
hgs
parents: 63
diff changeset
   167
 \retval void
hgs
parents: 63
diff changeset
   168
 */
hgs
parents: 63
diff changeset
   169
void HsMenuItemModel::preloadIcons()
hgs
parents: 63
diff changeset
   170
{
hgs
parents: 63
diff changeset
   171
    mIconsIdleLoader = new HsIconsIdleLoader(this, this);
hgs
parents: 63
diff changeset
   172
}
97
66b5fe3c07fd 201039_01
hgs
parents: 81
diff changeset
   173