videditor/VideoEditorCommon/src/VeiRemConTarget.cpp
branchRCL_3
changeset 3 e0b5df5c0969
parent 0 951a5db380a0
child 5 4c409de21d23
equal deleted inserted replaced
0:951a5db380a0 3:e0b5df5c0969
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <remconcoreapitarget.h>
       
    22 #include <remconinterfaceselector.h>
       
    23 #include <aknconsts.h>					
       
    24 
       
    25 #include "VeiRemConTarget.h"
       
    26 #include "VideoEditorDebugUtils.h"
       
    27 
       
    28 // ================= MEMBER FUNCTIONS =======================
       
    29 
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 //
       
    33 CVeiRemConTarget::CVeiRemConTarget(MVeiMediakeyObserver& aObserver) : iObserver(aObserver)
       
    34 	{
       
    35 	}
       
    36 
       
    37 // Default constructor can leave.
       
    38 void CVeiRemConTarget::ConstructL()
       
    39 	{
       
    40 	// Create interface selector.
       
    41 	iInterfaceSelector = CRemConInterfaceSelector::NewL();
       
    42 	// Create a new CRemConCoreApiTarget, owned by the interface selector.
       
    43 	iCoreTarget = CRemConCoreApiTarget::NewL(*iInterfaceSelector, *this);
       
    44 	// Start being a target.
       
    45 	iInterfaceSelector->OpenTargetL();
       
    46 	}
       
    47 
       
    48 // Two-phased constructor.
       
    49 EXPORT_C CVeiRemConTarget* CVeiRemConTarget::NewL(MVeiMediakeyObserver& aObserver)
       
    50 	{
       
    51 	LOG(KVideoEditorLogFile, "CVeiRemConTarget::NewL");
       
    52 
       
    53 	CVeiRemConTarget* self = new (ELeave) CVeiRemConTarget(aObserver);
       
    54 	CleanupStack::PushL(self);
       
    55 	self->ConstructL();
       
    56 	CleanupStack::Pop( self );
       
    57 	return self;
       
    58 	}
       
    59 
       
    60 // Destructor
       
    61 CVeiRemConTarget::~CVeiRemConTarget()
       
    62     {
       
    63     delete iInterfaceSelector;
       
    64     // iCoreTarget was owned by iInterfaceSelector.
       
    65     iCoreTarget = NULL;
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // CVeiRemConTarget::MrccatoCommand
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 void CVeiRemConTarget::MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction DEBUGLOG_ARG(aButtonAct))
       
    73 	{
       
    74 	LOGFMT(KVideoEditorLogFile, "CVeiRemConTarget::MrccatoCommand: buttonact:%d >>", aButtonAct );
       
    75 	switch (aOperationId)
       
    76 		{
       
    77 		case ERemConCoreApiVolumeUp:
       
    78 			iObserver.HandleVolumeUpL();
       
    79 			break;
       
    80 		case ERemConCoreApiVolumeDown:
       
    81 			iObserver.HandleVolumeDownL();
       
    82 			break;
       
    83 
       
    84 		default:
       
    85 			break;
       
    86 		}
       
    87 	LOG(KVideoEditorLogFile, "CVeiRemConTarget::MrccatoCommand << " );
       
    88 	}
       
    89 
       
    90 // ---------------------------------------------------------
       
    91 // CDmhRemConTarget::MrccatoPlay
       
    92 // ---------------------------------------------------------
       
    93 //
       
    94 void CVeiRemConTarget::MrccatoPlay(TRemConCoreApiPlaybackSpeed /*aSpeed*/, TRemConCoreApiButtonAction /*aButtonAct*/)
       
    95 	{
       
    96 	LOG(KVideoEditorLogFile, "CVeiRemConTarget::MrccatoPlay <<");
       
    97 	}
       
    98 	
       
    99 // ---------------------------------------------------------
       
   100 // CDmhRemConTarget::MrccatoTuneFunction
       
   101 // ---------------------------------------------------------
       
   102 //
       
   103 void CVeiRemConTarget::MrccatoTuneFunction(TBool /*aTwoPart*/, TUint /*aMajorChannel*/, TUint /*aMinorChannel*/, TRemConCoreApiButtonAction /*aButtonAct*/)
       
   104 	{
       
   105 
       
   106 	}
       
   107 	
       
   108 // ---------------------------------------------------------
       
   109 // CDmhRemConTarget::MrccatoSelectDiskFunction
       
   110 // ---------------------------------------------------------
       
   111 //
       
   112 void CVeiRemConTarget::MrccatoSelectDiskFunction(TUint /*aDisk*/, TRemConCoreApiButtonAction /*aButtonAct*/)
       
   113 	{
       
   114 
       
   115 	}
       
   116 	
       
   117 // ---------------------------------------------------------
       
   118 // CVeiRemConTarget::MrccatoSelectAvInputFunction
       
   119 // ---------------------------------------------------------
       
   120 //
       
   121 void CVeiRemConTarget::MrccatoSelectAvInputFunction(TUint8 /*aAvInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/)
       
   122 	{
       
   123 
       
   124 	}
       
   125 	
       
   126 // ---------------------------------------------------------
       
   127 // CVeiRemConTarget::MrccatoSelectAudioInputFunction
       
   128 // ---------------------------------------------------------
       
   129 //
       
   130 void CVeiRemConTarget::MrccatoSelectAudioInputFunction(TUint8 /*aAudioInputSignalNumber*/, TRemConCoreApiButtonAction /*aButtonAct*/)
       
   131 	{
       
   132 
       
   133 	}
       
   134 	
       
   135 //  End of File