|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Accessory connection status handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CACCSRVCONNECTIONSTATUSHANDLER_H |
|
21 #define CACCSRVCONNECTIONSTATUSHANDLER_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include "AccSrvHandlerBase.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class MAccSrvConnectionControllerObserver; |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * Starts asunchronous Accessory Connection Status update. |
|
41 * |
|
42 * @lib AccServer.lib |
|
43 * @since S60 3.1 |
|
44 */ |
|
45 NONSHARABLE_CLASS( CAccSrvConnectionStatusHandler ) : public CAccSrvHandlerBase |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CAccSrvConnectionStatusHandler* NewL( |
|
53 MAccSrvConnectionControllerObserver* aCallback ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CAccSrvConnectionStatusHandler(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 public: // Functions from base classes |
|
63 |
|
64 protected: // New functions |
|
65 |
|
66 protected: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * Handles an active object's request completion event. |
|
70 * |
|
71 * @since S60 3.1 |
|
72 * @return void |
|
73 */ |
|
74 void RunL(); |
|
75 |
|
76 |
|
77 /** |
|
78 * The active scheduler calls this function if this active object's |
|
79 * RunL() function leaves. |
|
80 * |
|
81 * @since S60 3.1 |
|
82 * @param aError The leave code |
|
83 * @return KErrNone, when error has been handled |
|
84 */ |
|
85 TInt RunError( TInt aError ); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * C++ default constructor. |
|
91 */ |
|
92 CAccSrvConnectionStatusHandler(); |
|
93 |
|
94 /** |
|
95 * Constructor with notify handling. |
|
96 */ |
|
97 CAccSrvConnectionStatusHandler( MAccSrvConnectionControllerObserver* aCallback ); |
|
98 |
|
99 /** |
|
100 * By default Symbian 2nd phase constructor is private. |
|
101 */ |
|
102 void ConstructL(); |
|
103 |
|
104 public: // Data |
|
105 |
|
106 protected: // Data |
|
107 |
|
108 private: // Data |
|
109 |
|
110 public: // Friend classes |
|
111 |
|
112 protected: // Friend classes |
|
113 |
|
114 private: // Friend classes |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // CACCSRVCONNECTIONSTATUSHANDLER_H |
|
119 |
|
120 // End of File |