connectionutilities/ConnectionDialogs/cconndlg/inc/ActiveBase.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:12:51 +0200
branchRCL_3
changeset 8 2e6c4614c58e
parent 0 5a93021fdf25
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2002 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:  Declaration of a CActive base class 
*
*/



#ifndef __ACTIVEBASE_H__
#define __ACTIVEBASE_H__


// INCLUDES
#include <e32base.h>


// CLASS DECLARATION

/**
 * CActiveBase class, an active object for selection plugin
 */     
NONSHARABLE_CLASS( CActiveBase ) : public CActive
    {
    public:
        /**
        * NewL function
        */
        static CActiveBase* NewL();
    
        /**
        * Destructor
        */    
        virtual ~CActiveBase();
    
        /**
        * Cancels the active object
        */
        void Cancel();

        /**
        * Timer callback of iPeridoc.
        */
        static TInt Tick( TAny* aObject );    
    
        
    protected:
        /**
        * ConstructL 
        */
        void ConstructL();
    
        /**
        * Constructor
        */    
        CActiveBase();
    
        /**
        * DoCancel from CActive
        */    
        virtual void DoCancel();

        /**
        * RunL from CActive
        */
        virtual void RunL();

        /**
        * Starts Timer
        * @param aTickInterval refersh interval
        */
        void StartTimerL( TInt aTickInterval );
    
        /**
        * Stops Timer
        */
        void StopTimer();                                            
        

    protected:
    
        // Timer, to refresh iaps of networks. Owned.
        CPeriodic* iPeriodic;
            
        // used for complete runl, not owned.
        TRequestStatus* iClientStatus;  
    };     


#endif

// End of File