homescreensrv_plat/appruntimemodel_api/hsruntime.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:35:23 +0200
changeset 60 f62f87b200ec
permissions -rw-r--r--
Revision: 201007 Kit: 201011

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Base class for all homescreen runtimes.
*
*/


#ifndef HSRUNTIME_H
#define HSRUNTIME_H

#include <QObject>

#include "hsruntimemodel_global.h"

/*! 
    \class HsRuntime
    \ingroup group_hsruntimemodel
    \brief Base class for all home screen runtimes.

    Provides the common functionality for all home screen runtime
    implementations.
        
*/
class HSRUNTIMEMODEL_EXPORT HsRuntime : public QObject
{
    Q_OBJECT

public:
    HsRuntime(QObject* aParent = 0) : QObject(aParent) {}
    virtual ~HsRuntime() {}


signals:
/*!
    Emitted when the runtime has started.         
*/
    void started();

/*!
    Emitted when the runtime has stopped.         
*/
    void stopped();
    
/*!
    Emitted when the runtime has faulted.         
*/
    void faulted();


public slots:

/*!
    Starts the runtime.         
*/
    virtual void start() = 0;

/*!
    Stops the runtime.         
*/
    virtual void stop() = 0;



private:

    Q_DISABLE_COPY(HsRuntime)
};

#endif