Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __GAVDPSTATES_H__
17 #define __GAVDPSTATES_H__
21 Class to represent the state of the CGAVDPStateMachine
42 inline TGAVDPState(TGAVDPStateValue aGAVDPStateValue);
43 inline TGAVDPState operator=(const TGAVDPState& aGAVDPState);
44 inline TBool operator==(const TGAVDPState& aGAVDPState) const;
45 inline TBool operator!=(const TGAVDPState& aGAVDPState) const;
46 inline void operator++();
47 inline TGAVDPStateValue State() const;
49 TGAVDPStateValue iState;
54 Class used by the CGAVDPStateMachine to track the state of
55 a configuration by the headset.
59 class TConfigurationByRemoteHeadsetState
62 enum TConfigurationByRemoteHeadsetStateValue
64 ENotBeingConfiguredByRemoteHeadset,
65 ERemoteHeadsetConfigurationStart,
66 ERemoteHeadsetConfigurationFailed,
67 ERemoteHeadsetConfigurationEnd
70 inline TConfigurationByRemoteHeadsetState();
72 inline TConfigurationByRemoteHeadsetState operator=(const TConfigurationByRemoteHeadsetStateValue& aConfigByRemoteHeadsetStateValue);
73 inline TBool operator==(const TConfigurationByRemoteHeadsetStateValue aConfigByRemoteHeadsetStateValue) const;
74 inline TBool operator!=(const TConfigurationByRemoteHeadsetStateValue aConfigByRemoteHeadsetStateValue) const;
75 inline TConfigurationByRemoteHeadsetState::TConfigurationByRemoteHeadsetStateValue State() const;
76 inline TSEID SEPRequestedByRemoteHeadset() const;
77 inline void SetSEPRequestedByRemoteHeadset(const TSEID& aSEID);
78 inline TAvdtpMediaTransportCapabilities* TransportCapsRequestedByRemoteHeadset() const;
79 inline void SetTransportCapsRequestedByRemoteHeadset(TAvdtpMediaTransportCapabilities* aTransportCapsRequestedByRemoteHeadset);
80 inline TAvdtpMediaCodecCapabilities* CodecConfigRequestedByRemoteHeadset() const;
81 inline void SetCodecConfigRequestedByRemoteHeadset(TAvdtpMediaCodecCapabilities* aCodecConfigRequestedByRemoteHeadset);
83 TConfigurationByRemoteHeadsetStateValue iState;
84 TSEID iSEPRequestedByRemoteHeadset;
85 TAvdtpMediaTransportCapabilities* iTransportCapsRequestedByRemoteHeadset;
86 TAvdtpMediaCodecCapabilities* iCodecConfigRequestedByRemoteHeadset;
89 #include "GavdpStates.inl"