author | Oscar Gonzalez <oscar.1.gonzalez@nokia.com> |
Wed, 02 Jun 2010 16:33:50 +0100 | |
branch | opencode |
changeset 32 | 58332560b319 |
parent 24 | 6638e7f4bd8f |
permissions | -rw-r--r-- |
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 |
||
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
16 |
/** |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
17 |
@file |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
18 |
@internalAll |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
19 |
*/ |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
20 |
|
24 | 21 |
#ifndef CLTYSRECEIVETHREADEVENTSTATEHANDLER_H |
22 |
#define CLTYSRECEIVETHREADEVENTSTATEHANDLER_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <e32std.h> |
|
26 |
#include <e32base.h> |
|
27 |
#include "ltsymacros.h" |
|
28 |
||
29 |
#include "mltsyreceivethreadcallbackinterfaces.h" |
|
30 |
||
31 |
/** |
|
32 |
* |
|
33 |
* The purpose of this class is to handle |
|
34 |
* -posting a request to receive a event from baseband (DoRequestNextEvent) |
|
35 |
* - handling the event under the ETEL thread of execution (HandleReceivedEvent) |
|
36 |
* -(optionally) releasing any store events after event has been processed (DoReleaseEvent) |
|
37 |
* - handling if the receive thread dies |
|
38 |
* |
|
39 |
* This skeleton version of the class provides default implementations for each of the state handlers that should be properly implemented. |
|
40 |
*/ |
|
41 |
||
42 |
class CLtsyReceiveThreadEventStateHandler : public CBase, public MLtsyReceiveThreadEventStateHandler, public MLtsyReceiveThreadObserver |
|
43 |
{ |
|
44 |
public: |
|
45 |
static CLtsyReceiveThreadEventStateHandler* NewL(/*Add any arguments here*/); |
|
46 |
~CLtsyReceiveThreadEventStateHandler(); |
|
47 |
||
48 |
public: //from MLtsyReceiveThreadEventStateHandler |
|
49 |
virtual void DoRequestNextEvent(); |
|
50 |
virtual TInt HandleReceivedEvent(); |
|
51 |
virtual void DoReleaseEvent(); |
|
52 |
||
53 |
public: //from MLtsyReceiveThreadObserver |
|
54 |
virtual void HandleReceiveThreadLifeWatcherComplete(TInt aError); |
|
55 |
||
56 |
protected: |
|
57 |
void ConstructL(); |
|
58 |
CLtsyReceiveThreadEventStateHandler(); |
|
59 |
private: |
|
60 |
// Can be removed in real LTSY implementation. |
|
61 |
MTEST_DECLARE_EVENT_COUNTER |
|
62 |
}; |
|
63 |
||
64 |
||
65 |
#endif //CLTYSRECEIVETHREADEVENTSTATEHANDLER_H |