116
|
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 TSTASK_H
|
|
18 |
#define TSTASK_H
|
|
19 |
|
|
20 |
#include <QPixmap>
|
|
21 |
#include <QString>
|
|
22 |
#include <QSharedPointer>
|
|
23 |
|
|
24 |
#include "tstaskmonitor_global.h"
|
|
25 |
|
|
26 |
class TsTaskContent;
|
|
27 |
class TsTaskLauncher;
|
|
28 |
|
|
29 |
class TsTask
|
|
30 |
{
|
|
31 |
|
|
32 |
public:
|
|
33 |
TsTask(const QSharedPointer<TsTaskContent> &content, TsTaskLauncher &launcher);
|
|
34 |
TSTASKMONITOR_EXPORT ~TsTask();
|
|
35 |
|
|
36 |
TSTASKMONITOR_EXPORT void open();
|
|
37 |
TSTASKMONITOR_EXPORT void close();
|
|
38 |
|
|
39 |
TSTASKMONITOR_EXPORT bool isClosable() const;
|
|
40 |
TSTASKMONITOR_EXPORT bool isActive() const;
|
|
41 |
TSTASKMONITOR_EXPORT QPixmap screenshot() const;
|
|
42 |
TSTASKMONITOR_EXPORT QString name() const;
|
|
43 |
|
|
44 |
private:
|
|
45 |
Q_DISABLE_COPY(TsTask)
|
|
46 |
|
|
47 |
QSharedPointer<TsTaskContent> mContent;
|
|
48 |
TsTaskLauncher &mLauncher;
|
|
49 |
|
|
50 |
};
|
|
51 |
|
|
52 |
#endif //TSTASK_H
|