equal
deleted
inserted
replaced
|
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 TSPRESENTATIONINTERFACE_H |
|
18 #define TSPRESENTATIONINTERFACE_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 class QAbstractItemModel; |
|
23 class QModelIndex; |
|
24 |
|
25 class TsPresentationInterface : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 TsPresentationInterface(QObject *parent = 0) : QObject(parent) {} |
|
31 virtual ~TsPresentationInterface() {}; |
|
32 |
|
33 public: |
|
34 Q_INVOKABLE virtual void setModel(QAbstractItemModel *model) = 0; |
|
35 |
|
36 public slots: |
|
37 virtual void hide() = 0; |
|
38 virtual void show() = 0; |
|
39 |
|
40 signals: |
|
41 void openApplication(const QModelIndex &index); |
|
42 void closeApplication(const QModelIndex &index); |
|
43 void closeAllApplications(); |
|
44 void hideTaskSwitcher(); |
|
45 |
|
46 }; |
|
47 |
|
48 #endif // TSPRESENTATIONINTERFACE_H |