screensaver/screensavermodel/inc/screensaver_p.h
changeset 61 2b1b11a301d2
equal deleted inserted replaced
60:30f14686fb04 61:2b1b11a301d2
       
     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:  The private implementation of the Screensaver.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SCREENSAVER_P_H
       
    19 #define SCREENSAVER_P_H
       
    20 
       
    21 #include "screensaver.h"
       
    22 
       
    23 class QGraphicsWidget;
       
    24 
       
    25 class ScreensaverPrivate
       
    26 {
       
    27 public:
       
    28 
       
    29     ScreensaverPrivate(Screensaver * const screensaverPublic);
       
    30     ~ScreensaverPrivate();
       
    31 
       
    32     ScreensaverState currentState();
       
    33 
       
    34 public slots:
       
    35 
       
    36     void initialize();
       
    37     void foreground();
       
    38     void partialForeground();
       
    39     void background();
       
    40     void powerSave();
       
    41     void close();
       
    42     void handleActiveIndicators(const QList<HbIndicatorInterface*> &activeIndicators);
       
    43     void handleActivatedIndicator(HbIndicatorInterface *activatedIndicator);
       
    44     void handleDeactivatedIndicator(HbIndicatorInterface *deactivatedIndicator);
       
    45 
       
    46 private:
       
    47 
       
    48     Q_DISABLE_COPY(ScreensaverPrivate)
       
    49 
       
    50 public:
       
    51 
       
    52     Screensaver * const m_q;
       
    53     ScreensaverState mState;
       
    54 };
       
    55 
       
    56 #endif // SCREENSAVER_P_H