piprofilerui/ui/hb/src/piprofilerengine.cpp
branchRCL_3
changeset 22 822c625f7adc
equal deleted inserted replaced
18:454d022d514b 22:822c625f7adc
       
     1 /*
       
     2 * Copyright (c) 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 
       
    19 #include "piprofilerengine.h"
       
    20 #include "piprofilerengineprivate.h"
       
    21 
       
    22 PIProfilerEngine::PIProfilerEngine()
       
    23 {
       
    24 
       
    25 }
       
    26 
       
    27 PIProfilerEngine::~PIProfilerEngine()
       
    28 {
       
    29     if (mPrivate != 0) {
       
    30         delete mPrivate;
       
    31         mPrivate = 0;
       
    32     }
       
    33 }
       
    34 
       
    35 bool PIProfilerEngine::init()
       
    36 {
       
    37     mPrivate = new PIProfilerEnginePrivate(this);
       
    38     return mPrivate->Init();
       
    39 }
       
    40 
       
    41 void PIProfilerEngine::getGeneralSettings(GeneralAttributes &settings)
       
    42 {
       
    43     mPrivate->GetGeneralSettings(settings);
       
    44 }
       
    45 
       
    46 void PIProfilerEngine::notifyUIReady()
       
    47 {
       
    48     mPrivate->NotifyUIReady();
       
    49 }
       
    50 
       
    51 bool PIProfilerEngine::saveGeneralSettings(GeneralAttributes &settings)
       
    52 {
       
    53     return mPrivate->SaveGeneralSettings(settings);
       
    54 
       
    55 }
       
    56 
       
    57 bool PIProfilerEngine::savePluginSettings(const PluginAttributes &pluginAttributes)
       
    58 {
       
    59     return mPrivate->SavePluginSettings(pluginAttributes);
       
    60 }
       
    61 
       
    62 bool PIProfilerEngine::startProfiling()
       
    63 {
       
    64     return mPrivate->StartProfiling();
       
    65 }
       
    66 bool PIProfilerEngine::startTimedProfiling()
       
    67 {
       
    68     return mPrivate->StartTimedProfiling();
       
    69 }
       
    70 void PIProfilerEngine::stopProfiling()
       
    71 {
       
    72     return mPrivate->StopProfiling();
       
    73 }
       
    74 
       
    75 int PIProfilerEngine::getTimeLimit()
       
    76 {
       
    77     return mPrivate->GetTimeLimit();
       
    78 }
       
    79 
       
    80 void PIProfilerEngine::leaveProfilingOnAfterClosing()
       
    81 {
       
    82     mPrivate->LeaveProfilingOnAfterClosing();
       
    83 }
       
    84 
       
    85 bool PIProfilerEngine::checkTraceLocationSanity(QString &location)
       
    86 {
       
    87     mPrivate->CheckTraceLocationSanity(location);
       
    88 }