60
|
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 __HSPPROFILE_H__
|
|
20 |
#define __HSPPROFILE_H__
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
#include <e32std.h>
|
|
24 |
#include <hsprofilepluginbase.h>
|
|
25 |
|
|
26 |
class CHsHSPDataHandler;
|
|
27 |
class CHsHSPSettings;
|
|
28 |
|
|
29 |
/** HSP Ecom implementation Uid */
|
|
30 |
const TUid KHsHSPProfileImplementationUid =
|
|
31 |
{
|
|
32 |
0xE0009DC7
|
|
33 |
};
|
|
34 |
|
|
35 |
|
|
36 |
/**
|
|
37 |
* @brief Implementation of Headset profile
|
|
38 |
*/
|
|
39 |
class CHsHSPProfile : public CHsProfileBase
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
/**
|
|
43 |
* Two-phase constructor
|
|
44 |
* @return instance of class
|
|
45 |
*/
|
|
46 |
static CHsHSPProfile* NewL();
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Two-phase constructor
|
|
50 |
* @return instance of class
|
|
51 |
*/
|
|
52 |
static CHsHSPProfile* NewLC();
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Destructor
|
|
56 |
*/
|
|
57 |
~CHsHSPProfile();
|
|
58 |
|
|
59 |
public:
|
|
60 |
// Methods derived from MHsProfileBase
|
|
61 |
void HandleCommandL( const TDesC8 &aCommandsIn, TDes8 &aCommandsOut,
|
|
62 |
const TBool aFromAG = ETrue );
|
|
63 |
|
|
64 |
void HandleClientDisconnected( TInt aErr );
|
|
65 |
|
|
66 |
void HandleClientConnected( TDes8& aCommandOut );
|
|
67 |
|
|
68 |
void HandleAcceptCallL( TDes8& aCommandOut );
|
|
69 |
|
|
70 |
void HandleReleaseCallL( TDes8& aCommandOut );
|
|
71 |
|
|
72 |
private:
|
|
73 |
/**
|
|
74 |
* Constructor for performing 1st stage construction
|
|
75 |
*/
|
|
76 |
CHsHSPProfile();
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Constructor for performing 2nd stage construction
|
|
80 |
*/
|
|
81 |
void ContructL();
|
|
82 |
|
|
83 |
private:
|
|
84 |
/** AT command handler. Owned */
|
|
85 |
CHsHSPDataHandler* iDataHandler;
|
|
86 |
|
|
87 |
/** Profile's settings */
|
|
88 |
CHsHSPSettings* iSettings;
|
|
89 |
};
|
|
90 |
|
|
91 |
#endif // __HSPPROFILE_H__
|