|
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 * Declares direct connection state machine class. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file Nd_dirct.h |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 #ifndef __ND_DIRCT_H__ |
|
28 #define __ND_DIRCT_H__ |
|
29 |
|
30 #include <comms-infras/cagentsmbase.h> |
|
31 #include "Nd_Bases.h" |
|
32 |
|
33 // Forward declarations |
|
34 |
|
35 class CCommsDbNetDialAccess; |
|
36 class CNetDialScript; |
|
37 |
|
38 |
|
39 class CDirCtAgXSM : public CNetdialSM |
|
40 /** |
|
41 Direct Connection state machine. |
|
42 |
|
43 @internalComponent |
|
44 */ |
|
45 { |
|
46 public: |
|
47 static CDirCtAgXSM* NewL(MAgentNotify& aObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDbAccess); |
|
48 virtual ~CDirCtAgXSM(); |
|
49 //CNetdialSM Inheritance |
|
50 virtual inline CEventLogger* Logger(); |
|
51 virtual void SetUpScriptL(); |
|
52 |
|
53 // Derived from CAgentSMBase |
|
54 virtual TInt Notification(TNifToAgentEventType aEvent, TAny* aInfo); |
|
55 virtual TInt IncomingConnectionReceived(); |
|
56 private: |
|
57 CDirCtAgXSM(MAgentNotify& aObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDbAccess); |
|
58 virtual void ConstructL(); |
|
59 }; |
|
60 |
|
61 inline CEventLogger* CDirCtAgXSM::Logger() |
|
62 /** |
|
63 Default implementation for direct state logger. |
|
64 */ |
|
65 { |
|
66 NetDialPanic(ELoggerNotDefined); |
|
67 return NULL; |
|
68 } |
|
69 |
|
70 #endif |