|
1 // Copyright (c) 2007-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 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 |
|
20 */ |
|
21 #ifndef LBS_SUPL_END_H |
|
22 #define LBS_SUPL_END_H |
|
23 |
|
24 #include "suplmessagebase.h" |
|
25 #include <lbspositioninfo.h> |
|
26 |
|
27 |
|
28 /** |
|
29 Encapsulation for outgoing/received SUPL END messages. |
|
30 |
|
31 @internalTechnology |
|
32 */ |
|
33 NONSHARABLE_CLASS(CSuplEnd) : public CSuplMessageBase |
|
34 { |
|
35 public: |
|
36 IMPORT_C static CSuplEnd* NewL(TBool aIsOutgoingMessage); |
|
37 IMPORT_C static CSuplEnd* NewLC(TBool aIsOutgoingMessage); |
|
38 virtual ~CSuplEnd(); |
|
39 |
|
40 public: |
|
41 |
|
42 /** Set the positon parameter (for outgoing messages) */ |
|
43 IMPORT_C TInt SetPosition(const TPositionInfoBase& aPosInfo); |
|
44 |
|
45 /** Set the SUPL Status Code (for outgoing messages) */ |
|
46 IMPORT_C TInt SetStatusCode(TSuplStatusCode& aStatusCode); |
|
47 |
|
48 /** Set the hash of the received SUPL INIT (for outgoing messages) */ |
|
49 IMPORT_C TInt SetVer(const TDesC8& aVer); |
|
50 |
|
51 /** Returns ETrue if the position parameter is present (for received messages) */ |
|
52 IMPORT_C TBool PositionPresent(); |
|
53 |
|
54 /** Populates aPosInfo with the received position information (for received messages) */ |
|
55 IMPORT_C TInt GetPosition(TPosition& aPosInfo); |
|
56 |
|
57 /** Returns ETrue if the status code parameter is present (for received messages) */ |
|
58 IMPORT_C TBool StatusCodePresent(); |
|
59 |
|
60 /** Returns the status code parameter (for received messages) */ |
|
61 IMPORT_C TSuplStatusCode StatusCode(); |
|
62 |
|
63 private: |
|
64 |
|
65 /** Constructor */ |
|
66 CSuplEnd(TBool aIsOutgoingMessage); |
|
67 |
|
68 /** second stage constructor */ |
|
69 void ConstructL(); |
|
70 |
|
71 /** Prohibit copy constructor */ |
|
72 CSuplEnd(const CSuplEnd&); |
|
73 |
|
74 /** Prohibit assigment operator */ |
|
75 CSuplEnd& operator= (const CSuplEnd&); |
|
76 |
|
77 TInt DecodeTime(const TUint8* aTimeString, TTime& aTimeOut); |
|
78 }; |
|
79 |
|
80 #endif // LBS_SUPL_END_H |