activityfw/activitylauncher/activitylauncherview.h
branchGCC_SURGE
changeset 105 e7325f632549
parent 81 5ef31a21fdd5
parent 104 9b022b1f357c
equal deleted inserted replaced
81:5ef31a21fdd5 105:e7325f632549
     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:
       
    15 *
       
    16 */
       
    17 #ifndef ACTIVITYLAUNCHERVIEW_H
       
    18 #define ACTIVITYLAUNCHERVIEW_H
       
    19 
       
    20 #include <hbview.h>
       
    21 #include <QVariant>
       
    22 
       
    23 class HbLabel;
       
    24 class QStandardItemModel;
       
    25 
       
    26 class ActivityLauncherView : public HbView
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     ActivityLauncherView(QGraphicsItem *parent = 0);
       
    32     ~ActivityLauncherView();
       
    33 
       
    34 private slots:
       
    35     void itemPressed(const QModelIndex &index);
       
    36 
       
    37 protected:
       
    38     bool eventFilter(QObject *obj, QEvent *event);
       
    39 
       
    40 private:
       
    41     void getActivitiesList();
       
    42 
       
    43 private:
       
    44     QStandardItemModel *mModel;
       
    45     QList<QVariantHash> mCurrentActivities;
       
    46     HbLabel *mStatusLabel;
       
    47 
       
    48     QObject *mActivityManager;
       
    49 };
       
    50 
       
    51 #endif // ACTIVITYLAUNCHERVIEW_H