|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Contains definition of CBTSACGavdp class which uses GAVDP API. |
|
15 * Two other classes CAVStreamEndPoint and CBTSACSEPManager are helper |
|
16 * classes to use GAVDP. This class also constructs CBTSACStreamerController |
|
17 * class. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef BTSAC_SEP_MANAGER_H |
|
23 #define BTSAC_SEP_MANAGER_H |
|
24 |
|
25 #include "btsacStreamEndPoint.h" |
|
26 |
|
27 |
|
28 // DATA TYPES |
|
29 _LIT(KSEPIdle, "Idle"); |
|
30 _LIT(KSEPDiscoveredRemote, "Remote"); |
|
31 _LIT(KSEPRegistered, "Registered"); |
|
32 _LIT(KSEPLocallyConfigured, "Configured"); |
|
33 _LIT(KSEPRemotelyBound, "Remotely bound"); |
|
34 _LIT(KSEPOpen, "Open"); |
|
35 _LIT(KSEPStreaming, "Streaming"); |
|
36 _LIT(KSEPSuspended, "Suspended"); |
|
37 _LIT(KSEPAborted, "Aborted"); |
|
38 _LIT(KSEPErrored, "Errored"); |
|
39 |
|
40 |
|
41 // FORWARD DECLARATION |
|
42 |
|
43 |
|
44 NONSHARABLE_CLASS(CBTSACSEPManager) : public CBase |
|
45 { |
|
46 public: |
|
47 static CBTSACSEPManager* NewL(const TBTDevAddr& aAddr); |
|
48 |
|
49 TInt SetState(TSEID aSEID, CBTSACStreamEndPoint::TSEPState aState, const TAny* aBlob=NULL); |
|
50 void BindSEPs(TSEID aLocalSEID, TSEID aRemoteSEID); |
|
51 void NewSEPL(const TAvdtpSEPInfo& aInfo); |
|
52 TInt GetSEP(TSEID aSEID, CBTSACStreamEndPoint& aSEP); |
|
53 TInt NoOfSEPs(); |
|
54 TInt GetInfo(TInt aIndex, TAvdtpSEPInfo& aInfo); |
|
55 TInt StoreCaps( TInt aIndex, TAvdtpServiceCapability* aCaps ); |
|
56 TInt GetCaps(TInt aIndex, RPointerArray<TAvdtpServiceCapability>& ); |
|
57 virtual ~CBTSACSEPManager(); |
|
58 const TBTDevAddr& GetDeviceAddr(); |
|
59 private: |
|
60 TInt FindSEP(TSEID aSEID, CBTSACStreamEndPoint& aSEP); |
|
61 CBTSACSEPManager(); |
|
62 CBTSACSEPManager(const TBTDevAddr& aAddr); |
|
63 private: |
|
64 RPointerArray<CBTSACStreamEndPoint> iStreamEndPoints; |
|
65 TBTDevAddr iAddr; |
|
66 }; |
|
67 |
|
68 |
|
69 #endif |