screensaverapp/snsrapplication/inc/snsrscreensaver.h
changeset 35 f9ce957a272c
equal deleted inserted replaced
5:c743ef5928ba 35:f9ce957a272c
       
     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:  Main Screensaver application class, loads runtime.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSRSCREENSAVER_H
       
    19 #define SNSRSCREENSAVER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "snsrtest_global.h"
       
    23 
       
    24 SCREENSAVER_TEST_CLASS(T_SnsrScreensaver)
       
    25 
       
    26 class HsRuntime;
       
    27 
       
    28 class SnsrScreensaver : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     SnsrScreensaver(QObject *parent = 0);
       
    35     virtual ~SnsrScreensaver();
       
    36 
       
    37 signals:
       
    38 
       
    39     void exit();
       
    40 
       
    41 public slots:
       
    42 
       
    43     void start();
       
    44     void stop();
       
    45 
       
    46 private:
       
    47 
       
    48     Q_DISABLE_COPY (SnsrScreensaver)
       
    49 
       
    50 private slots:
       
    51 
       
    52     void onRuntimeStarted();
       
    53     void onRuntimeStopped();
       
    54     void onRuntimeFaulted();
       
    55 
       
    56 private:
       
    57 
       
    58     HsRuntime *mRuntime;
       
    59 
       
    60     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrScreensaver)
       
    61 
       
    62 };
       
    63 
       
    64 #endif // SNSRSCREENSAVER_H