camerasrv_pub/camcorder_mmf_plugin_custom_commands_api/inc/CamCControllerCustomCommands.h
changeset 42 605672cc2a86
equal deleted inserted replaced
39:e80a5e3e883f 42:605672cc2a86
       
     1 /*
       
     2 * Copyright (c) 2002-2010 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:  Camcorder controller plug-in custom commands
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CAMCCONTROLLERCUSTOMCOMMANDS_H
       
    21 #define CAMCCONTROLLERCUSTOMCOMMANDS_H
       
    22 
       
    23 /**
       
    24 * CamcorderMMFPlugin controller UID which can be used by the client to identify the
       
    25 * controller. The client can proceed to use the custom commands defined in
       
    26 * TCamCControllerCustomCommands if the UID matches to what is returned by
       
    27 * CMMFControllerImplementationInformation::Uid() method.
       
    28 */ 
       
    29 const TUid KCamCControllerImplementationUid = {0x101F8503};
       
    30 
       
    31 /**
       
    32 * TMMFEvent UID used for asynchronous stopping of video recording. This event
       
    33 * indicates that no new video frames are captured and that audio recording
       
    34 * has stopped.
       
    35 */
       
    36 const TUid KCamCControllerCCVideoRecordStopped = {0x2000E546};
       
    37 
       
    38 /**
       
    39 * TMMFEvent UID used for asynchronous stopping of video recording. This event
       
    40 * indicates that the video container files has been fully composed.
       
    41 */
       
    42 const TUid KCamCControllerCCVideoFileComposed = {0x2000E547};
       
    43 
       
    44 
       
    45 /**
       
    46 * Custom command IDs specific to CamcorderMMFPlugin controller
       
    47 */
       
    48 enum TCamCControllerCustomCommands
       
    49     {
       
    50     /**
       
    51     * Custom command for setting a new filename without closing and reopening
       
    52     * the controller. Expects the first parameter to be a TMMFFileConfig object
       
    53     * with the iPath member set to the new target file name. This custom command
       
    54     * should be used synchronously via
       
    55     * CVideoRecorderUtility::CustomCommandSync(). Prepare() should be called
       
    56     * after issuing the ECamCControllerCCNewFilename command.
       
    57     */
       
    58     ECamCControllerCCNewFilename = 0,
       
    59 
       
    60     /**
       
    61     * Custom command for initiating asynchronous stopping of video recording.
       
    62     * No parameters. This custom command should be used synchronously via
       
    63     * CVideoRecorderUtility::CustomCommandSync(). The command should only be
       
    64     * used then paused or recording and it triggers the
       
    65     * KCamCControllerCCVideoRecordStopped and KCamCControllerCCVideoFileComposed
       
    66     * events.
       
    67     */
       
    68     ECamCControllerCCVideoStopAsync
       
    69     };
       
    70 
       
    71 #endif      // CAMCCONTROLLERCUSTOMCOMMANDS_H
       
    72 
       
    73 // End of File