launcher/inc/commonActions.h
branchRCL_3
changeset 21 b3cee849fa46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/launcher/inc/commonActions.h	Tue Aug 31 15:15:20 2010 +0300
@@ -0,0 +1,106 @@
+/*
+* Copyright (c) 2010 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: 
+*
+*/
+
+
+#ifndef COMMONACTIONS_H
+#define COMMONACTIONS_H
+
+#include <qobject.h>
+
+class EngineWrapper;
+class HbAction;
+class HbMenu;
+class HbApplication;
+
+class CommonActions : public QObject
+{
+    Q_OBJECT
+public:
+    
+    /**
+     * Constructor
+     */
+    CommonActions(EngineWrapper *engine, HbApplication *application);
+    
+    /**
+     * Destructor
+     */
+    ~CommonActions();
+    
+    /**
+     * Adds all actions to menu that is given as parameter
+     */
+    void addActionsToMenu(HbMenu *menu);
+    
+public slots:
+
+    /**
+     * Shows about box
+     */
+    void showAbout();
+    
+    /**
+     * Stops launching applications
+     */
+    void stopLaunch();
+    
+    /**
+     * Sends DLL info
+     */
+    void sendDllInfo();
+    
+    /**
+     * Compares DLL infos
+     */
+    void compareDllInfo();
+    
+    /**
+     * Sends log
+     */
+    void sendLog();
+    
+    /**
+     * Deletes log
+     */
+    void deleteLog();
+    
+    /**
+     * Exits launcher
+     */
+    void exit();
+
+private:
+    void connectSignalsAndSlots();
+    
+private:
+    EngineWrapper *mEngine;
+    
+    HbApplication *mApplication;
+    
+    //Actions:
+
+    HbAction *mActionStopLaunch;
+    HbAction *mActionSendDllInfo;
+    HbAction *mActionCompareDllInfo;
+    HbAction *mActionSendLog;
+    HbAction *mActionDeleteLog;
+    HbAction *mActionAbout;
+    HbAction *mActionExit;
+    
+};
+    
+#endif //COMMONACTIONS_H