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: Base class for all homescreen runtimes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HSRUNTIME_H |
|
20 #define HSRUNTIME_H |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 #include "hsruntimemodel_global.h" |
|
25 |
|
26 /*! |
|
27 \class HsRuntime |
|
28 \ingroup group_hsruntimemodel |
|
29 \brief Base class for all home screen runtimes. |
|
30 |
|
31 Provides the common functionality for all home screen runtime |
|
32 implementations. |
|
33 |
|
34 */ |
|
35 class HSRUNTIMEMODEL_EXPORT HsRuntime : public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 HsRuntime(QObject* aParent = 0) : QObject(aParent) {} |
|
41 virtual ~HsRuntime() {} |
|
42 |
|
43 |
|
44 signals: |
|
45 /*! |
|
46 Emitted when the runtime has started. |
|
47 */ |
|
48 void started(); |
|
49 |
|
50 /*! |
|
51 Emitted when the runtime has stopped. |
|
52 */ |
|
53 void stopped(); |
|
54 |
|
55 /*! |
|
56 Emitted when the runtime has faulted. |
|
57 */ |
|
58 void faulted(); |
|
59 |
|
60 |
|
61 public slots: |
|
62 |
|
63 /*! |
|
64 Starts the runtime. |
|
65 */ |
|
66 virtual void start() = 0; |
|
67 |
|
68 /*! |
|
69 Stops the runtime. |
|
70 */ |
|
71 virtual void stop() = 0; |
|
72 |
|
73 |
|
74 |
|
75 private: |
|
76 |
|
77 Q_DISABLE_COPY(HsRuntime) |
|
78 }; |
|
79 |
|
80 #endif |