ui/viewmanagement/statehandler/inc/glxtnobserver.h
branchRCL_3
changeset 59 8e5f6eea9c9f
equal deleted inserted replaced
57:ea65f74e6de4 59:8e5f6eea9c9f
       
     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:
       
    34     
       
    35     /*
       
    36      * constructor
       
    37      */
       
    38     GlxTNObserver();
       
    39     
       
    40     /*
       
    41      * Call back to get the number of TN is left to create.
       
    42      */
       
    43     void updateTNCount(int &count); 
       
    44     
       
    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     /*
       
    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     /*
       
    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 */