|
1 /* |
|
2 * Copyright (c) 2005 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 * Active object for de-initialization request cycle. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __EPOS_CSUPLDEINITREQUESTOR_H |
|
22 #define __EPOS_CSUPLDEINITREQUESTOR_H |
|
23 |
|
24 // INCLUDE FILES |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 // CONSTANT DECLARATIONS |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Active object implementing a de-initialization request cycle. |
|
34 * |
|
35 */ |
|
36 class CSuplServerDeInitRequest : public CActive |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CSuplServerDeInitRequest* NewL(CSuplSessionManager& aSessionManager); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CSuplServerDeInitRequest(); |
|
49 |
|
50 public: // New functions |
|
51 |
|
52 /** |
|
53 * Starts a DeInitialize request cycle. |
|
54 */ |
|
55 |
|
56 void DeInitialize(); |
|
57 |
|
58 protected: // From CActive |
|
59 |
|
60 void RunL(); |
|
61 TInt RunError(TInt aError); |
|
62 void DoCancel(); |
|
63 |
|
64 private: |
|
65 |
|
66 CSuplServerDeInitRequest(CSuplSessionManager& aSessionManager); |
|
67 |
|
68 void ConstructL(); |
|
69 |
|
70 // By default, prohibit copy constructor |
|
71 CSuplServerDeInitRequest( const CSuplServerDeInitRequest& ); |
|
72 // Prohibit assigment operator |
|
73 CSuplServerDeInitRequest& operator= ( const CSuplServerDeInitRequest& ); |
|
74 |
|
75 |
|
76 private: // Data |
|
77 CSuplSessionManager& iSessionManager; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // __EPOS_CSUPLDEINITREQUESTOR_H |
|
82 |
|
83 // End of File |