hti/HtiFramework/inc/HtiFramework.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Start HTI framework and provide configuration parameters.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HTISERVER_H__
       
    20 #define HTISERVER_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32svr.h>
       
    24 #include <e32panic.h>
       
    25 
       
    26 #include "HtiDispatcher.h"
       
    27 
       
    28 class CHtiCfg;
       
    29 
       
    30 class CHtiFramework : public CBase
       
    31     {
       
    32     public:
       
    33         static CHtiFramework* NewL();
       
    34         ~CHtiFramework();
       
    35 
       
    36         /**
       
    37         * Entry point, called after CHTIServer constructed
       
    38         */
       
    39         TInt StartL();
       
    40 
       
    41     protected:
       
    42         CHtiFramework();
       
    43         void ConstructL();
       
    44         void StartHtiWatchDogL();
       
    45         void WaitNormalState( TInt aMaxWaitTime, TInt aStartUpDelay );
       
    46         TBool IsHtiRunning();
       
    47         TBool IsStartAcceptedL( TBool aIsAutoStartEnabled );
       
    48 
       
    49     private:
       
    50 
       
    51     // HTI configuration
       
    52     CHtiCfg* iCfg;
       
    53 
       
    54     // Message dispatcher
       
    55     CHtiDispatcher* iDispatcher;
       
    56 
       
    57     // Pointer to original heap, used if bigger heap is created for HTI
       
    58     RHeap* iOriginalHeap;
       
    59     };
       
    60 
       
    61 #endif