logsui/logsapp/src/logsapplication.cpp
changeset 17 90fe74753f71
child 18 acd4e87b24b4
equal deleted inserted replaced
15:76d2cf7a585e 17:90fe74753f71
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <QObject>
       
    19 #include <QString>
       
    20 #include "logsapplication.h"
       
    21 
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // 
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 LogsApplication::LogsApplication(int &argc, char *argv[])
       
    28     : HbApplication(argc, argv),mViewReady(false),mReadCompleted(false), 
       
    29       mFeaturePreloadedEnabled(false), mFeatureFakeExitEnabled(false)
       
    30 {
       
    31 }
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // 
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 LogsApplication::~LogsApplication()
       
    38 {
       
    39 }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // 
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 bool LogsApplication::logsFeaturePreloadingEnabled()
       
    46 {
       
    47     return mFeaturePreloadedEnabled;
       
    48 }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // 
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 bool LogsApplication::logsFeatureFakeExitEnabled()
       
    55 {
       
    56     return mFeatureFakeExitEnabled;
       
    57 }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // 
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void LogsApplication::testLogsAppEngineReady(){
       
    64     if (mViewReady && !mReadCompleted){
       
    65         emit applicationReady();
       
    66     }
       
    67     mReadCompleted = true;
       
    68 }
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // 
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 void LogsApplication::testLogsHandleAppViewReady(){
       
    75     if (mReadCompleted && !mViewReady){
       
    76         emit applicationReady();
       
    77     }
       
    78     mViewReady = true;
       
    79 }
       
    80 
       
    81 // end of file