screensavermodel/inc/screensaver_p.h
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
     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 
       
    43 private:
       
    44 
       
    45     Q_DISABLE_COPY(ScreensaverPrivate)
       
    46 
       
    47 public:
       
    48 
       
    49     Screensaver * const m_q;
       
    50     ScreensaverState mState;
       
    51 };
       
    52 
       
    53 #endif // SCREENSAVER_P_H