|
1 /* |
|
2 * Copyright (c) 2003 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SAEGPRSAVAILABILITYOBS_H |
|
20 #define SAEGPRSAVAILABILITYOBS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <etelpckt.h> |
|
24 |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CSaeEtelObserver; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * This class observs the GPRS availability. |
|
33 */ |
|
34 NONSHARABLE_CLASS( CSaeGprsAvailabilityObs ) : public CActive |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 CSaeGprsAvailabilityObs( CSaeEtelObserver* aEtelObserver, RPacketService* aService ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CSaeGprsAvailabilityObs(); |
|
47 |
|
48 private: |
|
49 |
|
50 // By default, prohibit copy constructor |
|
51 CSaeGprsAvailabilityObs( const CSaeGprsAvailabilityObs& ); |
|
52 // Prohibit assigment operator |
|
53 CSaeGprsAvailabilityObs& operator= ( const CSaeGprsAvailabilityObs& ); |
|
54 |
|
55 /** |
|
56 * Issues the request. |
|
57 */ |
|
58 void IssueRequest(); |
|
59 |
|
60 /** |
|
61 * Initialize GPRS registration status. |
|
62 */ |
|
63 void InitializeRegStatus(); |
|
64 |
|
65 /** |
|
66 * Cancels the request. |
|
67 */ |
|
68 void DoCancel(); |
|
69 |
|
70 /** |
|
71 * Handles the event. |
|
72 */ |
|
73 void RunL(); |
|
74 |
|
75 /** |
|
76 * Checks the current network registration status. |
|
77 */ |
|
78 void CheckRegistrationStatusAndInformPubSub(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 // A pointer to the ETel observer. Not owned. |
|
83 CSaeEtelObserver* iEtelObserver; |
|
84 // A pointer to Etel GPRS session. Not owned. |
|
85 RPacketService* iService; |
|
86 RPacketService::TRegistrationStatus iRegistrationStatus; |
|
87 }; |
|
88 |
|
89 #endif // SAEGPRSSTATUSOBS |
|
90 |
|
91 // End of File |