tsdevicedialog/tsdevicedialogplugin/inc/tstasksgriditem.h
author hgs
Fri, 06 Aug 2010 13:40:46 +0300
changeset 107 b34d53f6acdf
parent 99 7aaf39b772ac
child 112 dbfb5e38438b
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
99
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
#ifndef TSTASKSGRIDITEM_H
hgs
parents:
diff changeset
    18
#define TSTASKSGRIDITEM_H
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#include <hbabstractviewitem.h>
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
class HbTextItem;
hgs
parents:
diff changeset
    23
class HbIconItem;
hgs
parents:
diff changeset
    24
class HbFrameItem;
hgs
parents:
diff changeset
    25
class HbPushButton;
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
class TsTasksGridItem : public HbAbstractViewItem
hgs
parents:
diff changeset
    28
{
hgs
parents:
diff changeset
    29
    Q_OBJECT
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
public:
hgs
parents:
diff changeset
    32
    TsTasksGridItem();
hgs
parents:
diff changeset
    33
    TsTasksGridItem(const TsTasksGridItem &item);
hgs
parents:
diff changeset
    34
hgs
parents:
diff changeset
    35
    HbAbstractViewItem *createItem();
hgs
parents:
diff changeset
    36
    void updateChildItems();
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
private slots:
hgs
parents:
diff changeset
    39
    void handleDeleteClicked();
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
signals:
hgs
parents:
diff changeset
    42
    void deleteClicked(const QModelIndex &index);
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
private:
hgs
parents:
diff changeset
    45
    HbIconItem *mScreenshotLabel;
hgs
parents:
diff changeset
    46
    HbTextItem *mApplicationNameLabel;
hgs
parents:
diff changeset
    47
    HbPushButton *mDeleteButton;
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
    HbFrameItem *mActiveLabelFrame;
hgs
parents:
diff changeset
    50
    HbTextItem *mActiveLabel;
107
hgs
parents: 99
diff changeset
    51
99
hgs
parents:
diff changeset
    52
};
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
#endif //TSTASKSGRIDITEM_H