equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
|
16 |
|
17 |
15 |
18 /** |
16 /** |
19 @file |
17 @file |
20 @publishedAll |
18 @publishedAll |
21 @released |
19 @released |
46 @param aObserver The observer of this interface. |
44 @param aObserver The observer of this interface. |
47 @return A new CRemConCoreApiTarget, owned by the interface selector. |
45 @return A new CRemConCoreApiTarget, owned by the interface selector. |
48 */ |
46 */ |
49 IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, |
47 IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, |
50 MRemConCoreApiTargetObserver& aObserver); |
48 MRemConCoreApiTargetObserver& aObserver); |
|
49 /** |
|
50 Factory function. |
|
51 @param aInterfaceSelector The interface selector. The client must have |
|
52 created one of these first. |
|
53 @param aObserver The observer of this interface. |
|
54 @param aFeatureSupported The Array is used to stote features supportd by the client |
|
55 |
|
56 @return A new CRemConCoreApiTarget, owned by the interface selector. |
|
57 */ |
|
58 IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, |
|
59 MRemConCoreApiTargetObserver& aObserver,const RArray<TRemConCoreApiOperationId>& aFeatureSupported); |
51 |
60 |
52 /** Destructor */ |
61 /** Destructor */ |
53 IMPORT_C ~CRemConCoreApiTarget(); |
62 IMPORT_C ~CRemConCoreApiTarget(); |
54 |
63 |
55 public: |
64 public: |
503 @param aInterfaceSelector The interface selector. |
512 @param aInterfaceSelector The interface selector. |
504 @param aObserver The observer of this interface. |
513 @param aObserver The observer of this interface. |
505 */ |
514 */ |
506 CRemConCoreApiTarget(CRemConInterfaceSelector& aInterfaceSelector, |
515 CRemConCoreApiTarget(CRemConInterfaceSelector& aInterfaceSelector, |
507 MRemConCoreApiTargetObserver& aObserver); |
516 MRemConCoreApiTargetObserver& aObserver); |
|
517 void ConstructL(const RArray<TRemConCoreApiOperationId>& aFeaturesSupported); |
508 |
518 |
509 private: // utility |
519 private: // utility |
510 /** |
520 /** |
511 Utility to send a response. |
521 Utility to send a response. |
512 @param aStatus TRequestStatus for the send operation. |
522 @param aStatus TRequestStatus for the send operation. |
526 void HandlePlay(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
536 void HandlePlay(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
527 void HandleTuneFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
537 void HandleTuneFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
528 void HandleSelectDiskFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
538 void HandleSelectDiskFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
529 void HandleSelectAvInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
539 void HandleSelectAvInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
530 void HandleSelectAudioInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
540 void HandleSelectAudioInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton); |
|
541 private : |
|
542 void RemConCoreSetFeatures(TBool* aFeatureSupported); |
531 |
543 |
532 private: // unowned |
544 private: // unowned |
533 MRemConCoreApiTargetObserver& iObserver; |
545 MRemConCoreApiTargetObserver& iObserver; |
534 |
546 |
535 private: // owned |
547 private: // owned |