10
|
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: search application main class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SEARCHAPPLICATION_H
|
|
19 |
#define SEARCHAPPLICATION_H
|
|
20 |
|
|
21 |
#include "search_global.h"
|
|
22 |
|
|
23 |
#include <qobject.h>
|
21
|
24 |
#include <hbapplication.h>
|
10
|
25 |
|
|
26 |
class QStateMachine;
|
|
27 |
|
|
28 |
/**
|
|
29 |
* @ingroup group_searchsearchlication
|
|
30 |
* @brief Search application main class.
|
|
31 |
*
|
|
32 |
* Loads a runtime from a runtime provider plugin. Manages
|
|
33 |
* the runtime execution.
|
|
34 |
*
|
|
35 |
* @lib ?library
|
|
36 |
* @since S60 ?S60_version
|
|
37 |
*/
|
21
|
38 |
class SearchApplication : public HbApplication
|
10
|
39 |
{
|
|
40 |
Q_OBJECT
|
|
41 |
|
|
42 |
public:
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Constructor.
|
|
46 |
* @since S60 ?S60_version.
|
|
47 |
* @param aParent Parent object.
|
|
48 |
*/
|
21
|
49 |
SearchApplication(int argc, char *argv[]);
|
10
|
50 |
|
|
51 |
/**
|
|
52 |
* Destructor.
|
|
53 |
* @since S60 ?S60_version.
|
|
54 |
*/
|
|
55 |
virtual ~SearchApplication();
|
|
56 |
|
|
57 |
private:
|
|
58 |
|
|
59 |
Q_DISABLE_COPY(SearchApplication)
|
|
60 |
|
|
61 |
signals:
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Emitted when the search application needs to exit.
|
|
65 |
* @since S60 ?S60_version.
|
|
66 |
*/
|
|
67 |
void exit();
|
21
|
68 |
|
|
69 |
void applicationReady();
|
10
|
70 |
|
|
71 |
public slots:
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Starts the runtime.
|
|
75 |
* @since S60 ?S60_version.
|
|
76 |
*/
|
|
77 |
void start();
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Stops the runtime.
|
|
81 |
* @since S60 ?S60_version.
|
|
82 |
*/
|
|
83 |
void stop();
|
|
84 |
|
|
85 |
private slots:
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Called after the runtime has started.
|
|
89 |
* @since S60 ?S60_version.
|
|
90 |
*/
|
|
91 |
void handleRuntimeStarted();
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Called after the runtime has stopped.
|
|
95 |
* @since S60 ?S60_version.
|
|
96 |
*/
|
|
97 |
void handleRuntimeStopped();
|
|
98 |
|
|
99 |
/**
|
|
100 |
* Called after the runtime has faulted.
|
|
101 |
* @since S60 ?S60_version.
|
|
102 |
*/
|
|
103 |
void handleRuntimeFaulted();
|
21
|
104 |
|
|
105 |
void sentMattiEventSlot();
|
10
|
106 |
|
|
107 |
private:
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Runtime.
|
|
111 |
*/
|
|
112 |
QStateMachine* mRuntime;
|
|
113 |
};
|
|
114 |
|
|
115 |
#endif//SEARCHAPPLICATION_H
|