42
|
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: ?Description
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef GLXTNOBSERVER_H
|
|
22 |
#define GLXTNOBSERVER_H
|
|
23 |
|
|
24 |
#include <QObject>
|
|
25 |
#include <glxtnmonitor.h>
|
|
26 |
|
|
27 |
class CGlxTNMonitor;
|
|
28 |
|
|
29 |
class GlxTNObserver : public QObject, public MGlxTNObserver
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
43
|
34 |
|
42
|
35 |
/*
|
|
36 |
* constructor
|
|
37 |
*/
|
|
38 |
GlxTNObserver();
|
43
|
39 |
|
42
|
40 |
/*
|
|
41 |
* Call back to get the number of TN is left to create.
|
|
42 |
*/
|
43
|
43 |
void updateTNCount(int &count);
|
|
44 |
|
42
|
45 |
/*
|
|
46 |
* It will return the number of TN is left to create.
|
|
47 |
*/
|
|
48 |
int getTNLeftCount() ;
|
|
49 |
|
|
50 |
/*
|
|
51 |
* It will start the tumbnail generation montior process.
|
|
52 |
*/
|
|
53 |
void startTNObserving();
|
|
54 |
|
|
55 |
/*
|
43
|
56 |
* To start the thumbnail generation in back ground
|
|
57 |
*/
|
|
58 |
void startTNMDaemon() ;
|
|
59 |
|
|
60 |
/*
|
|
61 |
* To stop the thumbnail generation in back ground
|
|
62 |
*/
|
|
63 |
void stopTNMDaemon() ;
|
|
64 |
|
|
65 |
/*
|
42
|
66 |
* Destructor
|
|
67 |
*/
|
|
68 |
~GlxTNObserver();
|
|
69 |
|
|
70 |
signals :
|
|
71 |
/*
|
|
72 |
* broad cast the number of thumbnail left to generate
|
|
73 |
*/
|
|
74 |
void leftTNCount( int count);
|
|
75 |
|
|
76 |
private :
|
|
77 |
CGlxTNMonitor* mTNMonitor;
|
|
78 |
};
|
|
79 |
|
|
80 |
#endif /* GLXTNOBSERVER_H */
|