sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __GAVDPSTATES_H__
|
sl@0
|
17 |
#define __GAVDPSTATES_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
Class to represent the state of the CGAVDPStateMachine
|
sl@0
|
22 |
|
sl@0
|
23 |
@internalComponent
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
class TGAVDPState
|
sl@0
|
26 |
{
|
sl@0
|
27 |
public:
|
sl@0
|
28 |
enum TGAVDPStateValue
|
sl@0
|
29 |
{
|
sl@0
|
30 |
EGAVDPIdle,
|
sl@0
|
31 |
EConnectedToGavdp,
|
sl@0
|
32 |
ESEPsDiscovered,
|
sl@0
|
33 |
ESEPSelected,
|
sl@0
|
34 |
EConfigured,
|
sl@0
|
35 |
EGAVDPOpen,
|
sl@0
|
36 |
EGAVDPStreaming,
|
sl@0
|
37 |
EGAVDPSuspended,
|
sl@0
|
38 |
EAborting
|
sl@0
|
39 |
};
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
inline TGAVDPState();
|
sl@0
|
42 |
inline TGAVDPState(TGAVDPStateValue aGAVDPStateValue);
|
sl@0
|
43 |
inline TGAVDPState operator=(const TGAVDPState& aGAVDPState);
|
sl@0
|
44 |
inline TBool operator==(const TGAVDPState& aGAVDPState) const;
|
sl@0
|
45 |
inline TBool operator!=(const TGAVDPState& aGAVDPState) const;
|
sl@0
|
46 |
inline void operator++();
|
sl@0
|
47 |
inline TGAVDPStateValue State() const;
|
sl@0
|
48 |
private:
|
sl@0
|
49 |
TGAVDPStateValue iState;
|
sl@0
|
50 |
};
|
sl@0
|
51 |
|
sl@0
|
52 |
|
sl@0
|
53 |
/**
|
sl@0
|
54 |
Class used by the CGAVDPStateMachine to track the state of
|
sl@0
|
55 |
a configuration by the headset.
|
sl@0
|
56 |
|
sl@0
|
57 |
@internalComponent
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
class TConfigurationByRemoteHeadsetState
|
sl@0
|
60 |
{
|
sl@0
|
61 |
public:
|
sl@0
|
62 |
enum TConfigurationByRemoteHeadsetStateValue
|
sl@0
|
63 |
{
|
sl@0
|
64 |
ENotBeingConfiguredByRemoteHeadset,
|
sl@0
|
65 |
ERemoteHeadsetConfigurationStart,
|
sl@0
|
66 |
ERemoteHeadsetConfigurationFailed,
|
sl@0
|
67 |
ERemoteHeadsetConfigurationEnd
|
sl@0
|
68 |
};
|
sl@0
|
69 |
public:
|
sl@0
|
70 |
inline TConfigurationByRemoteHeadsetState();
|
sl@0
|
71 |
inline void Reset();
|
sl@0
|
72 |
inline TConfigurationByRemoteHeadsetState operator=(const TConfigurationByRemoteHeadsetStateValue& aConfigByRemoteHeadsetStateValue);
|
sl@0
|
73 |
inline TBool operator==(const TConfigurationByRemoteHeadsetStateValue aConfigByRemoteHeadsetStateValue) const;
|
sl@0
|
74 |
inline TBool operator!=(const TConfigurationByRemoteHeadsetStateValue aConfigByRemoteHeadsetStateValue) const;
|
sl@0
|
75 |
inline TConfigurationByRemoteHeadsetState::TConfigurationByRemoteHeadsetStateValue State() const;
|
sl@0
|
76 |
inline TSEID SEPRequestedByRemoteHeadset() const;
|
sl@0
|
77 |
inline void SetSEPRequestedByRemoteHeadset(const TSEID& aSEID);
|
sl@0
|
78 |
inline TAvdtpMediaTransportCapabilities* TransportCapsRequestedByRemoteHeadset() const;
|
sl@0
|
79 |
inline void SetTransportCapsRequestedByRemoteHeadset(TAvdtpMediaTransportCapabilities* aTransportCapsRequestedByRemoteHeadset);
|
sl@0
|
80 |
inline TAvdtpMediaCodecCapabilities* CodecConfigRequestedByRemoteHeadset() const;
|
sl@0
|
81 |
inline void SetCodecConfigRequestedByRemoteHeadset(TAvdtpMediaCodecCapabilities* aCodecConfigRequestedByRemoteHeadset);
|
sl@0
|
82 |
private:
|
sl@0
|
83 |
TConfigurationByRemoteHeadsetStateValue iState;
|
sl@0
|
84 |
TSEID iSEPRequestedByRemoteHeadset;
|
sl@0
|
85 |
TAvdtpMediaTransportCapabilities* iTransportCapsRequestedByRemoteHeadset;
|
sl@0
|
86 |
TAvdtpMediaCodecCapabilities* iCodecConfigRequestedByRemoteHeadset;
|
sl@0
|
87 |
};
|
sl@0
|
88 |
|
sl@0
|
89 |
#include "GavdpStates.inl"
|
sl@0
|
90 |
|
sl@0
|
91 |
#endif
|
sl@0
|
92 |
|