ui/viewmanagement/statehandler/inc/glxtnobserver.h
changeset 33 1ee2af37811f
child 36 6481344a6d67
equal deleted inserted replaced
29:2c833fc9e98f 33:1ee2af37811f
       
     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      * constructor
       
    36      */
       
    37     GlxTNObserver();
       
    38     /*
       
    39      * Call back to get the number of TN is left to create.
       
    40      */
       
    41     void updateTNCount(int &count);     
       
    42     /*
       
    43      * It will return the number of TN is left to create.
       
    44      */
       
    45     int getTNLeftCount() ;
       
    46     
       
    47     /*
       
    48      * It will start the tumbnail generation montior process.
       
    49      */    
       
    50     void startTNObserving(); 
       
    51     
       
    52     /*
       
    53      * Destructor
       
    54      */
       
    55     ~GlxTNObserver();
       
    56     
       
    57 signals : 
       
    58     /*
       
    59      * broad cast the number of thumbnail left to generate
       
    60      */
       
    61     void leftTNCount( int count);
       
    62     
       
    63 private :
       
    64     CGlxTNMonitor* mTNMonitor;
       
    65 };
       
    66 
       
    67 #endif /* GLXTNOBSERVER_H */