taskswitcher/tsdevicedialogplugin/inc/tstasksgriditem.h
changeset 125 26079c1bb561
parent 112 dbfb5e38438b
equal deleted inserted replaced
123:d1dadafc5584 125:26079c1bb561
       
     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 TSTASKSGRIDITEM_H
       
    18 #define TSTASKSGRIDITEM_H
       
    19 
       
    20 #include <HbAbstractViewItem>
       
    21 
       
    22 class HbTextItem;
       
    23 class HbIconItem;
       
    24 class HbFrameItem;
       
    25 class HbPushButton;
       
    26 
       
    27 class TsTasksGridItem : public HbAbstractViewItem
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     TsTasksGridItem();
       
    33     TsTasksGridItem(const TsTasksGridItem &item);
       
    34 
       
    35     HbAbstractViewItem *createItem();
       
    36     void updateChildItems();
       
    37 
       
    38 private slots:
       
    39     void handleDeleteClicked();
       
    40 
       
    41 signals:
       
    42     void deleteClicked(const QModelIndex &index);
       
    43 
       
    44 private:
       
    45     HbIconItem *mScreenshotLabel;
       
    46     HbTextItem *mApplicationNameLabel;
       
    47     HbPushButton *mDeleteButton;
       
    48 
       
    49     HbFrameItem *mActiveLabelFrame;
       
    50     HbTextItem *mActiveLabel;
       
    51 
       
    52 };
       
    53 
       
    54 #endif //TSTASKSGRIDITEM_H