0
|
1 |
/**
|
|
2 |
* ====================================================================
|
|
3 |
* asynccallhandler.h
|
|
4 |
*
|
|
5 |
* Copyright (c) 2006 Nokia Corporation
|
|
6 |
*
|
|
7 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8 |
* you may not use this file except in compliance with the License.
|
|
9 |
* You may obtain a copy of the License at
|
|
10 |
*
|
|
11 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12 |
*
|
|
13 |
* Unless required by applicable law or agreed to in writing, software
|
|
14 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16 |
* See the License for the specific language governing permissions and
|
|
17 |
* limitations under the License.
|
|
18 |
* ====================================================================
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef __ASYNCCALLHANDLER_H__
|
|
22 |
#define __ASYNCCALLHANDLER_H__
|
|
23 |
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <etel.h>
|
|
27 |
#include <etel3rdparty.h>
|
|
28 |
|
|
29 |
#ifndef EKA2
|
|
30 |
class CAsyncCallHandler:public CActive
|
|
31 |
#else
|
|
32 |
NONSHARABLE_CLASS (CAsyncCallHandler):public CActive
|
|
33 |
#endif
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
void GetSignalStrength(CTelephony::TSignalStrengthV1Pckg& signalStrength,TRequestStatus& status);
|
|
37 |
void GetPhoneId(CTelephony::TPhoneIdV1Pckg& phoneId,TRequestStatus& status);
|
|
38 |
void GetBatteryInfo(CTelephony::TBatteryInfoV1Pckg& batteryInfo,TRequestStatus& status);
|
|
39 |
void RunL();
|
|
40 |
void DoCancel();
|
|
41 |
static CAsyncCallHandler* NewL(CTelephony& telephony);
|
|
42 |
virtual ~CAsyncCallHandler();
|
|
43 |
private:
|
|
44 |
CActiveSchedulerWait* iWait;
|
|
45 |
CTelephony& iTelephony;
|
|
46 |
CAsyncCallHandler(CTelephony& telephony);
|
|
47 |
void ConstructL();
|
|
48 |
};
|
|
49 |
|
|
50 |
#endif /* __ASYNCCALLHANDLER_H__ */
|