|
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 // This file defines the base class for protocol state handlers |
|
15 // employed by the SUPL Protocol Module |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalTechnology |
|
22 @deprecated |
|
23 */ |
|
24 |
|
25 #ifndef __CSUPLSTATEHANDLERBASE_H__ |
|
26 #define __CSUPLSTATEHANDLERBASE_H__ |
|
27 |
|
28 #include <e32base.h> |
|
29 #include "suplfsmsessionbase.h" |
|
30 #include "suplmessagecommon.h" |
|
31 |
|
32 |
|
33 /** Class that defines the base class for protocol state handlers. |
|
34 */ |
|
35 NONSHARABLE_CLASS(CSuplStateHandlerBase) : public CBase |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** Destructor |
|
41 */ |
|
42 virtual ~CSuplStateHandlerBase(); |
|
43 |
|
44 // Pure virtual methods to be implemented in derived classes |
|
45 |
|
46 /** Perform entry actions |
|
47 */ |
|
48 virtual TBool EntryActionsL() = 0; |
|
49 |
|
50 protected: |
|
51 |
|
52 /** Standard constructor |
|
53 @param aMachine Reference to the parent state machine. |
|
54 */ |
|
55 CSuplStateHandlerBase(CSuplFsmSessionBase& aMachine); |
|
56 |
|
57 TBool BuildLocationIdL(CSuplLocationId*& aLocationId); |
|
58 TBool EntryActionsFromPositioningInProgressStateL(); |
|
59 TBool EntryActionsFromPositionReceivedStateL(); |
|
60 TBool EntryActionsFromSuplSessionEndedStateL(); |
|
61 TBool EntryActionsFromLbsSessionEndedStateL(); |
|
62 |
|
63 |
|
64 void ConvertToBcd(TDes8& aBcdString); |
|
65 |
|
66 protected: |
|
67 |
|
68 /** Parent state machine. |
|
69 */ |
|
70 CSuplFsmSessionBase& iMachine; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // __CSUPLSTATEHANDLERBASE_H__ |