mmmw_plat/system_tone_service_api/tsrc/inc/systemtoneservicesactiveobj.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:47:10 +0300
changeset 31 8dfd592727cb
parent 22 128eb6a32b84
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2010 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: This file contains activeobject header for handling callbacks
*
*/



#include <e32base.h>
#include <e32svr.h>
#include <StifParser.h>
#include <StifLogger.h>
#include <StifTestInterface.h>
#include <systemtoneservice.h>

 


class CStsActiveObj : public CActive
{
    
    public:
    static CStsActiveObj* NewL( MStsPlayAlarmObserver* aObserver,CStifLogger* aLogger );
    ~CStsActiveObj();
       
    public:     // Functions from base classes

    /**
    * RunL derived from CActive handles the completed requests.
    */
    void RunL();

    /**
    * DoCancel derived from CActive handles the cancel
    */
    void DoCancel();

    /**
    * RunError derived from CActive handles errors from active handler.
    */
    TInt RunError( TInt aError );
    
    private:

        /**
        * By default Symbian OS constructor is private.
        */
        void ConstructL(MStsPlayAlarmObserver* aObserver, CStifLogger* aLogger);

        /**
        * C++ constructor.
        */
        CStsActiveObj();
    

    private:    // Data
    MStsPlayAlarmObserver*   iObserver;
    CStifLogger* 			 iLog;
   

};