24
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef CLTYSRECEIVETHREADEVENTSTATEHANDLER_H
|
|
17 |
#define CLTYSRECEIVETHREADEVENTSTATEHANDLER_H
|
|
18 |
|
|
19 |
// INCLUDES
|
|
20 |
#include <e32std.h>
|
|
21 |
#include <e32base.h>
|
|
22 |
#include "ltsymacros.h"
|
|
23 |
|
|
24 |
#include "mltsyreceivethreadcallbackinterfaces.h"
|
|
25 |
|
|
26 |
/**
|
|
27 |
*
|
|
28 |
* The purpose of this class is to handle
|
|
29 |
* -posting a request to receive a event from baseband (DoRequestNextEvent)
|
|
30 |
* - handling the event under the ETEL thread of execution (HandleReceivedEvent)
|
|
31 |
* -(optionally) releasing any store events after event has been processed (DoReleaseEvent)
|
|
32 |
* - handling if the receive thread dies
|
|
33 |
*
|
|
34 |
* This skeleton version of the class provides default implementations for each of the state handlers that should be properly implemented.
|
|
35 |
*/
|
|
36 |
|
|
37 |
class CLtsyReceiveThreadEventStateHandler : public CBase, public MLtsyReceiveThreadEventStateHandler, public MLtsyReceiveThreadObserver
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
static CLtsyReceiveThreadEventStateHandler* NewL(/*Add any arguments here*/);
|
|
41 |
~CLtsyReceiveThreadEventStateHandler();
|
|
42 |
|
|
43 |
public: //from MLtsyReceiveThreadEventStateHandler
|
|
44 |
virtual void DoRequestNextEvent();
|
|
45 |
virtual TInt HandleReceivedEvent();
|
|
46 |
virtual void DoReleaseEvent();
|
|
47 |
|
|
48 |
public: //from MLtsyReceiveThreadObserver
|
|
49 |
virtual void HandleReceiveThreadLifeWatcherComplete(TInt aError);
|
|
50 |
|
|
51 |
protected:
|
|
52 |
void ConstructL();
|
|
53 |
CLtsyReceiveThreadEventStateHandler();
|
|
54 |
private:
|
|
55 |
// Can be removed in real LTSY implementation.
|
|
56 |
MTEST_DECLARE_EVENT_COUNTER
|
|
57 |
};
|
|
58 |
|
|
59 |
|
|
60 |
#endif //CLTYSRECEIVETHREADEVENTSTATEHANDLER_H
|