languageinterworkingfw/servicehandler/inc/liwecommonitor.h
changeset 57 61b27eec6533
parent 45 7aa6007702af
equal deleted inserted replaced
45:7aa6007702af 57:61b27eec6533
     1 /*
       
     2 * Copyright (c) 2003-2005 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 the License "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:       Declares ECom monitoring class for LIW framework.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef _LIWECOMMONITOR_H
       
    24 #define _LIWECOMMONITOR_H
       
    25 
       
    26 #include <ecom/ecom.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CLiwCriteriaItem;
       
    30 class CLiwServiceIfBase;
       
    31 
       
    32 class CLiwEcomMonitor : public CActive
       
    33     {
       
    34     public:
       
    35         static CLiwEcomMonitor* NewL(TCallBack& aSynchronizeCallBack);
       
    36         virtual ~CLiwEcomMonitor();
       
    37 
       
    38     protected:  // Functions from base classes
       
    39         /**
       
    40         * From CActive
       
    41         */
       
    42         void RunL();
       
    43 
       
    44         /**
       
    45         * From CActive
       
    46         */
       
    47         void DoCancel();
       
    48 
       
    49     public:
       
    50         inline REComSession& EComSession();
       
    51         void ListImplemetationsL(RImplInfoPtrArray& aResult, CLiwCriteriaItem* aItem) const;
       
    52         CLiwServiceIfBase* CreateImplementationL(TUid aImplUid);
       
    53 
       
    54     protected:
       
    55         /**
       
    56         * C++ default constructor.
       
    57         */
       
    58         CLiwEcomMonitor(TCallBack& aSynchronizeCallBack);
       
    59         void ConstructL();
       
    60         void StartMonitoring();
       
    61 
       
    62     private:
       
    63         TCallBack    iSynchronizeCallBack;
       
    64         REComSession iEcomSession;
       
    65     };
       
    66 
       
    67 
       
    68 inline REComSession& CLiwEcomMonitor::EComSession()
       
    69     {
       
    70     return iEcomSession;
       
    71     }
       
    72 
       
    73 #endif // _LIWECOMMONITOR_H
       
    74 
       
    75 // End of file