equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * CallBack Timer and Callback state base. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file Nd_callback.h |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 #ifndef __ND_CALLBACK_H__ |
|
28 #define __ND_CALLBACK_H__ |
|
29 |
|
30 #include <comms-infras/cagentsmbase.h> |
|
31 |
|
32 |
|
33 class MNdCallBackObserver |
|
34 /** |
|
35 Callback state m class. |
|
36 */ |
|
37 { |
|
38 public: |
|
39 virtual void TimerComplete(TInt aError) =0; |
|
40 }; |
|
41 |
|
42 |
|
43 class CCallBackTimer : public CTimer |
|
44 /** |
|
45 CCallBackTimer class. |
|
46 */ |
|
47 { |
|
48 public: |
|
49 static CCallBackTimer* NewL(MNdCallBackObserver* aNotifier); |
|
50 CCallBackTimer(MNdCallBackObserver* aNotifier); |
|
51 void Start(TTimeIntervalMicroSeconds32 aTimer); |
|
52 private: |
|
53 void RunL(); |
|
54 private: |
|
55 MNdCallBackObserver* iNotifier; |
|
56 }; |
|
57 |
|
58 |
|
59 class CNdCallBackStateBase : public CAgentStateBase, public MNdCallBackObserver |
|
60 /** |
|
61 CallBack state base. |
|
62 */ |
|
63 { |
|
64 public: |
|
65 CNdCallBackStateBase(MAgentStateMachineEnv& aSMObserver); |
|
66 void ConstructL(); |
|
67 virtual ~CNdCallBackStateBase(); |
|
68 //NdCallBack Observer Inheritance |
|
69 virtual void TimerComplete(TInt aError); |
|
70 protected: |
|
71 CCallBackTimer* iCallBackTimer; |
|
72 }; |
|
73 |
|
74 #endif |