taskswitcher/client/inc/tstaskmonitor.h
changeset 116 305818acdca4
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     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 TSTASKMONITOR_H
       
    18 #define TSTASKMONITOR_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QSharedPointer>
       
    22 #include <QPair>
       
    23 
       
    24 #include "tstaskmonitor_global.h"
       
    25 #include "tstask.h"
       
    26 
       
    27 class TsTaskMonitorPrivate;
       
    28 class TsTaskChangeInfo;
       
    29 
       
    30 typedef QPair<TsTaskChangeInfo, QSharedPointer <TsTask> > TsTaskChange;
       
    31 
       
    32 class TSTASKMONITOR_EXPORT TsTaskMonitor : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35     
       
    36 public:
       
    37     TsTaskMonitor(QObject *parent = 0);
       
    38     ~TsTaskMonitor();
       
    39     QList<TsTaskChange> changeList(bool fullList = false); //TODO merge these functions with bool
       
    40 
       
    41 signals:
       
    42     void taskListChanged();
       
    43     
       
    44 private:
       
    45     TsTaskMonitorPrivate *d_ptr;   
       
    46     friend class TsTaskMonitorPrivate;
       
    47 };
       
    48 
       
    49 #endif //TSTASKMONITOR_H