camerasrv_pub/camcorder_mmf_plugin_custom_commands_api/inc/CamCControllerCustomCommands.h
author hgs
Wed, 06 Oct 2010 14:52:34 +0300
changeset 42 605672cc2a86
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Camcorder controller plug-in custom commands
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#ifndef CAMCCONTROLLERCUSTOMCOMMANDS_H
hgs
parents:
diff changeset
    21
#define CAMCCONTROLLERCUSTOMCOMMANDS_H
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
/**
hgs
parents:
diff changeset
    24
* CamcorderMMFPlugin controller UID which can be used by the client to identify the
hgs
parents:
diff changeset
    25
* controller. The client can proceed to use the custom commands defined in
hgs
parents:
diff changeset
    26
* TCamCControllerCustomCommands if the UID matches to what is returned by
hgs
parents:
diff changeset
    27
* CMMFControllerImplementationInformation::Uid() method.
hgs
parents:
diff changeset
    28
*/ 
hgs
parents:
diff changeset
    29
const TUid KCamCControllerImplementationUid = {0x101F8503};
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
/**
hgs
parents:
diff changeset
    32
* TMMFEvent UID used for asynchronous stopping of video recording. This event
hgs
parents:
diff changeset
    33
* indicates that no new video frames are captured and that audio recording
hgs
parents:
diff changeset
    34
* has stopped.
hgs
parents:
diff changeset
    35
*/
hgs
parents:
diff changeset
    36
const TUid KCamCControllerCCVideoRecordStopped = {0x2000E546};
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
/**
hgs
parents:
diff changeset
    39
* TMMFEvent UID used for asynchronous stopping of video recording. This event
hgs
parents:
diff changeset
    40
* indicates that the video container files has been fully composed.
hgs
parents:
diff changeset
    41
*/
hgs
parents:
diff changeset
    42
const TUid KCamCControllerCCVideoFileComposed = {0x2000E547};
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
/**
hgs
parents:
diff changeset
    46
* Custom command IDs specific to CamcorderMMFPlugin controller
hgs
parents:
diff changeset
    47
*/
hgs
parents:
diff changeset
    48
enum TCamCControllerCustomCommands
hgs
parents:
diff changeset
    49
    {
hgs
parents:
diff changeset
    50
    /**
hgs
parents:
diff changeset
    51
    * Custom command for setting a new filename without closing and reopening
hgs
parents:
diff changeset
    52
    * the controller. Expects the first parameter to be a TMMFFileConfig object
hgs
parents:
diff changeset
    53
    * with the iPath member set to the new target file name. This custom command
hgs
parents:
diff changeset
    54
    * should be used synchronously via
hgs
parents:
diff changeset
    55
    * CVideoRecorderUtility::CustomCommandSync(). Prepare() should be called
hgs
parents:
diff changeset
    56
    * after issuing the ECamCControllerCCNewFilename command.
hgs
parents:
diff changeset
    57
    */
hgs
parents:
diff changeset
    58
    ECamCControllerCCNewFilename = 0,
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
    /**
hgs
parents:
diff changeset
    61
    * Custom command for initiating asynchronous stopping of video recording.
hgs
parents:
diff changeset
    62
    * No parameters. This custom command should be used synchronously via
hgs
parents:
diff changeset
    63
    * CVideoRecorderUtility::CustomCommandSync(). The command should only be
hgs
parents:
diff changeset
    64
    * used then paused or recording and it triggers the
hgs
parents:
diff changeset
    65
    * KCamCControllerCCVideoRecordStopped and KCamCControllerCCVideoFileComposed
hgs
parents:
diff changeset
    66
    * events.
hgs
parents:
diff changeset
    67
    */
hgs
parents:
diff changeset
    68
    ECamCControllerCCVideoStopAsync
hgs
parents:
diff changeset
    69
    };
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
#endif      // CAMCCONTROLLERCUSTOMCOMMANDS_H
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
// End of File