contentstorage/casrv/carunningappmonitor/inc/carunningapphandler.h
changeset 116 305818acdca4
parent 112 dbfb5e38438b
child 119 50e220be30d1
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
     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: carunnningapphandler.h
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CARUNNINGAPPHANDLER_H
       
    19 #define C_CARUNNINGAPPHANDLER_H
       
    20 
       
    21 #include "carunningtaskhandler.h"
       
    22 #include "casrvplugin.h"
       
    23 #include <e32cmn.h>
       
    24 
       
    25 class CCaStorageProxy;
       
    26 /**
       
    27  * Class implement task handler and content storage plugin. 
       
    28  */
       
    29 NONSHARABLE_CLASS( CCaRunningAppHandler ): public CCaSrvPlugin,
       
    30                                            public MCaRunningTaskHandler
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Factory function. Create and initialize handler instance. 
       
    35      */
       
    36     static CCaRunningAppHandler* NewL( TPluginParams* aParams );
       
    37     
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     ~CCaRunningAppHandler();
       
    42 
       
    43 private:
       
    44     /**
       
    45      * First step construction.
       
    46      */
       
    47     CCaRunningAppHandler();
       
    48     
       
    49     /**
       
    50      * Second step construction. 
       
    51      */
       
    52     void ConstructL( CCaStorageProxy& aStorage );
       
    53 
       
    54 private: //form MCaRunningTaskHandler
       
    55     /**
       
    56      * @see MCaRunningTaskHandler
       
    57      */
       
    58     void RegisterTaskL( CBase* aTask );
       
    59     
       
    60     /**
       
    61      * @see MCaRunningTaskHandler
       
    62      */
       
    63     void UnregisterTask( CBase* aTask );
       
    64 
       
    65 private:
       
    66     /**
       
    67      * List of running tasks.
       
    68      * Own.
       
    69      */
       
    70     RPointerArray<CBase> iRunningTasks;
       
    71     };
       
    72 #endif //C_CARUNNINGAPPHANDLER_H