screengrabber/inc/application.h
branchRCL_3
changeset 21 b3cee849fa46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/screengrabber/inc/application.h	Tue Aug 31 15:15:20 2010 +0300
@@ -0,0 +1,49 @@
+/*
+* 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 SGAPPLICATION_H
+#define SGAPPLICATION_H
+
+#include <e32keys.h>
+#include <w32std.h>
+
+#include <hbapplication.h>
+class EngineWrapper;
+
+class SGApplication : public HbApplication
+{
+public:
+    SGApplication(int argc, char *argv[]);//, EngineWrapper &engine);
+    ~SGApplication();
+#if defined(Q_WS_S60)
+
+#if defined(HB_QT_S60_EVENT_FILTER)
+    virtual bool s60EventFilter(TWsEvent *aEvent);
+#else
+    virtual bool symbianEventFilter(const QSymbianEvent *event);
+#endif // (HB_QT_S60_EVENT_FILTER)
+#endif//(Q_WS_S60)    
+    inline void SetEngineWrapper(EngineWrapper *aEngine){iEngine = aEngine;}
+private:
+	RWsSession    		iWsSession_a; 
+    RWindowGroup        iRootWin_a;  
+
+
+    EngineWrapper *iEngine;
+};
+
+#endif // SGAPPLICATION_H