equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: GPRS termination active object definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPEGPRSTERMINATION_H |
|
21 #define CPEGPRSTERMINATION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Active object for terminating GPRS connections. |
|
31 * @since 4.0 |
|
32 */ |
|
33 class CPEGprsTermination |
|
34 : public CActive |
|
35 { |
|
36 public: // Constructors and destructor. |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 */ |
|
41 CPEGprsTermination(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CPEGprsTermination(); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * Starts termination. |
|
52 */ |
|
53 void StartL(); |
|
54 |
|
55 /** |
|
56 * Checks if it is terminating connections |
|
57 * (or just preparing for that). |
|
58 * @return ETrue if terminating. |
|
59 */ |
|
60 TBool IsTerminating() const; |
|
61 |
|
62 private: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * @see CActive::RunL. |
|
66 */ |
|
67 void RunL(); |
|
68 |
|
69 /** |
|
70 * @see CActive::DoCancel. |
|
71 */ |
|
72 void DoCancel(); |
|
73 |
|
74 private: |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // CPEGPRSTERMINATION_H |
|
79 |
|
80 // End of File |