homescreensrv_plat/appruntimemodel_api/hsruntime.h
changeset 60 f62f87b200ec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreensrv_plat/appruntimemodel_api/hsruntime.h	Fri Mar 19 09:35:23 2010 +0200
@@ -0,0 +1,80 @@
+/*
+* 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