bluetoothengine/headsetsimulator/profiles/hfpprofile/inc/features/hfpfeaturecommons.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * |
|
3 * Copyright (c) <2010> Comarch S.A. and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of the License "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Original Contributors: |
|
11 * Comarch S.A. - original contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef FEATUREPROVIDERBASE_H_ |
|
20 #define FEATUREPROVIDERBASE_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CHsHFPCommand; |
|
25 |
|
26 /** |
|
27 * @brief Observer of feature's class |
|
28 */ |
|
29 class MHsHFPFeatureProviderObserver |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Callback method indicates that procedure is finished |
|
34 * |
|
35 * @param aErr KErrNone if procedure finishes successfully, |
|
36 * otherwise one of the system-wide error codes |
|
37 */ |
|
38 virtual void HandleProcedureCompleted(TInt aErr) = 0 |
|
39 }; |
|
40 |
|
41 /** |
|
42 * @brief Abstract class for particular features |
|
43 */ |
|
44 class MHsHFPProcedureCommons |
|
45 { |
|
46 public: |
|
47 /** |
|
48 * Processes AT command and prepares response |
|
49 * |
|
50 * @param aInputCmd input AT command |
|
51 * @param aOutputCmd response |
|
52 * |
|
53 * @return KErrNone if successful, otherwise one of the system-wide error |
|
54 * codes |
|
55 */ |
|
56 virtual TInt ProcessCommand(const CHsHFPCommand &aInputCmd, |
|
57 CHsHFPCommand &aOutputCmd) = 0; |
|
58 }; |
|
59 |
|
60 #endif /* FEATUREPROVIDERBASE_H_ */ |