phonesrv_plat/sat_service_api/tsrc/inc/satserviceapitestmonitor.h
author hgs
Tue, 10 Aug 2010 13:19:41 +0300
changeset 38 bc103bfb69cf
parent 0 ff3b6d0fd310
permissions -rw-r--r--
201031_02

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Test class for SAT Icon API 
*
*/


#ifndef CSATSERVICEAPITESTMONITOR_H
#define CSATSERVICEAPITESTMONITOR_H

class CSATServiceAPI;
class CStifLogger;

class CSatServiceAPIMonitor : public CActive
    {
public: // Construtor and destructor
    
    /**
     * Constructor to use in the object creation. Initializes the necessary data.
     */
    CSatServiceAPIMonitor( CStifLogger& aLog, CSATServiceAPI& aTest ); 
          
    /**
     * Destructor
     */    
    virtual ~CSatServiceAPIMonitor();
    
public:  // New functions

    /**
     * Activate the active object
     *
     * @since S60 5.1
     */ 
    void Activate();
    
    /**
     * Return the referance of iStatus
     *
     * @since S60 5.1
     * @return TRequestStatus&, referance of iStatus
     */    
    TRequestStatus& Status();
    
protected: // Functions from CActive

    /**
     * From CActive
     * Handles the request completion.
     */
    void RunL();

    /**
     * From CActive
     * Implements the cancel protocol.
     */
    void DoCancel();
   
    /**
     * From CActive 
     * Handles a leave occurring in the request completion event 
     * handler RunL()
     * 
     * @param aError Leave from RunL().
     * @return Error code
     */    
    TInt RunError( TInt aError );
    
private: // Data

    /* 
     * Ref to logger.
     */
    CStifLogger& iLog; 
    
    /* 
     * Ref to CSATServiceAPI.
     */    
    CSATServiceAPI& iTest;    
    
    };


#endif      // CSATSERVICEAPITESTMONITOR_H