homescreenapp/hsapplication/inc/hshomescreen.h
changeset 35 f9ce957a272c
child 36 cdae8c6c3876
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:  Homescreen application main class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSHOMESCREEN_H
       
    19 #define HSHOMESCREEN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "hstest_global.h"
       
    23 
       
    24 HOMESCREEN_TEST_CLASS(t_hsapplication)
       
    25 
       
    26 class QStateMachine;
       
    27 
       
    28 class HsHomeScreen : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     HsHomeScreen(QObject *parent = 0);
       
    34     ~HsHomeScreen();
       
    35 
       
    36 signals:    
       
    37     void exit();
       
    38 
       
    39 public slots:
       
    40     void start();
       
    41     void stop();
       
    42 
       
    43 protected:
       
    44     bool eventFilter(QObject *watched, QEvent *event);
       
    45 
       
    46 private:
       
    47     void registerServicePlugins();
       
    48     void registerServicePlugins(const QString &root);
       
    49 
       
    50 private slots:
       
    51     void onRuntimeStarted();
       
    52     void onRuntimeStopped();    
       
    53 
       
    54 private:
       
    55     Q_DISABLE_COPY(HsHomeScreen)
       
    56 
       
    57 private:
       
    58     QStateMachine *mRuntime;
       
    59 
       
    60     HOMESCREEN_TEST_FRIEND_CLASS(t_hsapplication)
       
    61 };
       
    62 
       
    63 #endif