taskswitcherapp/tsserviceplugin/inc/tsitemprovider.h
changeset 39 4e8ebe173323
parent 36 cdae8c6c3876
child 42 517f4fb5ec74
child 46 23b5d6a29cce
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
     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 TSITEMPROVIDER_H
       
    18 #define TSITEMPROVIDER_H
       
    19 
       
    20 #include "tsitemproviderinterface.h"
       
    21 
       
    22 #include <QSharedPointer>
       
    23 
       
    24 class TsClosedApplicationsFilterModel;
       
    25 class CaService;
       
    26 
       
    27 class TsItemProvider : public TsItemProviderInterface
       
    28 {
       
    29 
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     TsItemProvider(QObject *parent = 0);
       
    34     virtual ~TsItemProvider();
       
    35 
       
    36 public:
       
    37     virtual QAbstractItemModel *model();
       
    38 
       
    39 public slots:
       
    40     virtual void openApplication(const QModelIndex &index);
       
    41     virtual void closeApplication(const QModelIndex &index);
       
    42     virtual void closeAllApplications();
       
    43     virtual void clearClosedApplicationList();
       
    44 
       
    45 private:
       
    46     TsClosedApplicationsFilterModel *mModel;
       
    47     QSharedPointer<CaService> mService;
       
    48 
       
    49 };
       
    50 
       
    51 #endif // TSITEMPROVIDER_H