plugins/networking/winsockprt/inc/wsp_active.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // wsp_active.h
       
     2 // 
       
     3 // Copyright (c) 2002 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "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 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #ifndef __WSP_ACTIVE_H__
       
    14 #define __WSP_ACTIVE_H__
       
    15 
       
    16 #include <e32base.h>
       
    17 #include "wsp_def.h"
       
    18 
       
    19 class CWin32Scheduler;
       
    20 
       
    21 class CWin32ActiveObject : public CBase
       
    22 	{
       
    23 protected:
       
    24 	CWin32ActiveObject(CWin32Scheduler& aScheduler);
       
    25 	~CWin32ActiveObject();
       
    26 	void ConstructL();
       
    27 	void ReleaseEventHandle();
       
    28 	virtual void Run() = 0;
       
    29 protected:
       
    30 	WIN32_HANDLE iEvent;
       
    31 	CWin32Scheduler& iScheduler;
       
    32 private:
       
    33 	friend class CWin32Scheduler;
       
    34 	TSglQueLink iLink;
       
    35 	};
       
    36 
       
    37 
       
    38 #endif // __WSP_ACTIVE_H__