homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsaddmodeproxymodel.h
changeset 81 7dd137878ff8
parent 71 1db7cc813a4e
equal deleted inserted replaced
76:3916af29624a 81:7dd137878ff8
    19 #define HSADDMODEPROXYMODEL_H
    19 #define HSADDMODEPROXYMODEL_H
    20 
    20 
    21 #include <QSortFilterProxyModel>
    21 #include <QSortFilterProxyModel>
    22 #include <caquery.h>
    22 #include <caquery.h>
    23 #include <caentry.h>
    23 #include <caentry.h>
       
    24 #include <QAbstractItemView>
    24 
    25 
    25 #include "hsmenustates_global.h"
    26 #include "hsmenustates_global.h"
    26 
    27 
    27 class CaNotifier;
    28 class CaNotifier;
    28 
    29 
    35 public:
    36 public:
    36 
    37 
    37     HsAddModeProxyModel(QObject *parent = 0);
    38     HsAddModeProxyModel(QObject *parent = 0);
    38     ~HsAddModeProxyModel();
    39     ~HsAddModeProxyModel();
    39     void initilizeCwrtWidgetCache();
    40     void initilizeCwrtWidgetCache();
       
    41     void setSourceModel(QAbstractItemModel *sourceModel);
       
    42 
       
    43 signals:
       
    44 
       
    45     void scrollTo(int row, QAbstractItemView::ScrollHint hint =
       
    46         QAbstractItemView::EnsureVisible);
       
    47     void countChange();
    40 
    48 
    41 private slots:
    49 private slots:
    42 
    50 
    43     void updateCacheOnAddWidget(const QString &uri, const QVariantHash &preferences);
    51     void updateCacheOnAddWidget(const QString &uri, const QVariantHash &preferences);
    44     void updateCacheOnRemoveWidget(const QString &uri, const QVariantHash &preferences);
    52     void updateCacheOnRemoveWidget(const QString &uri, const QVariantHash &preferences);