logsui/logsapp/src/logsapplication.cpp
changeset 19 e4c884866116
child 18 acd4e87b24b4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logsui/logsapp/src/logsapplication.cpp	Fri Sep 17 08:29:34 2010 +0300
@@ -0,0 +1,81 @@
+/*
+* Copyright (c) 2009-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:
+*
+*/
+
+#include <QObject>
+#include <QString>
+#include "logsapplication.h"
+
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+LogsApplication::LogsApplication(int &argc, char *argv[])
+    : HbApplication(argc, argv),mViewReady(false),mReadCompleted(false), 
+      mFeaturePreloadedEnabled(false), mFeatureFakeExitEnabled(false)
+{
+}
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+LogsApplication::~LogsApplication()
+{
+}
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+bool LogsApplication::logsFeaturePreloadingEnabled()
+{
+    return mFeaturePreloadedEnabled;
+}
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+bool LogsApplication::logsFeatureFakeExitEnabled()
+{
+    return mFeatureFakeExitEnabled;
+}
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void LogsApplication::testLogsAppEngineReady(){
+    if (mViewReady && !mReadCompleted){
+        emit applicationReady();
+    }
+    mReadCompleted = true;
+}
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void LogsApplication::testLogsHandleAppViewReady(){
+    if (mReadCompleted && !mViewReady){
+        emit applicationReady();
+    }
+    mViewReady = true;
+}
+
+// end of file