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: PSM client active object class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSMCLIENTACTIVE_H |
|
20 #define PSMCLIENTACTIVE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class MPsmClientObserver; |
|
26 |
|
27 /** |
|
28 * Active object for PSM client. Active objects are hidden from actual clients |
|
29 * |
|
30 * @since S60 5.0 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CPsmClientActive ) : public CActive |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * C++ constructor. |
|
39 * |
|
40 * @param aObserver Observer for the completion of this active object |
|
41 * @param aInfo Contains information from the asynchronous request this |
|
42 * object is pending. |
|
43 */ |
|
44 CPsmClientActive( MPsmClientObserver& aObserver ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CPsmClientActive(); |
|
50 |
|
51 /** |
|
52 * Reference to TRequestStatus |
|
53 */ |
|
54 TRequestStatus& RequestStatus() { return iStatus; }; |
|
55 |
|
56 /** |
|
57 * Sets this active object to active |
|
58 */ |
|
59 void SetActive(); |
|
60 |
|
61 protected: // From CActive |
|
62 |
|
63 void RunL(); |
|
64 void DoCancel(); |
|
65 |
|
66 private: // data |
|
67 |
|
68 MPsmClientObserver& iObserver; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // PSMCLIENTACTIVE_H |