htiui/HtiServicePlugins/HtiCameraServicePlugin/src/HtiCameraServicePlugin.cpp
author hgs
Thu, 24 Jun 2010 14:55:55 +0300
changeset 31 e7a04a6385be
parent 29 1c71b77fbc93
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 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:  Implements the ECom plugin for HTI camera
hgs
parents:
diff changeset
    15
*                service.
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
hgs
parents:
diff changeset
    21
// INCLUDE FILES
hgs
parents:
diff changeset
    22
#include <HtiDispatcherInterface.h>
hgs
parents:
diff changeset
    23
#include <HtiLogging.h>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
#include "HtiCameraServicePlugin.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
// EXTERNAL DATA STRUCTURES
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
// EXTERNAL FUNCTION PROTOTYPES
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
// CONSTANTS
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// MACROS
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
// LOCAL CONSTANTS AND MACROS
hgs
parents:
diff changeset
    37
const static TUid KCameraServiceUid = { 0x2002EA9E };
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
// NOTE: Max length for error description is defined
hgs
parents:
diff changeset
    42
// in HtiDispatcherInterface.h (currently 118).
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
_LIT8( KErrorNoCommand, "ERROR: No command given" );
hgs
parents:
diff changeset
    45
_LIT8( KErrorUnknownCmd, "ERROR: Unknown Camera Service command" );
hgs
parents:
diff changeset
    46
_LIT8( KErrorInitFailed, "ERROR: Failed to init");
31
hgs
parents: 29
diff changeset
    47
_LIT8( KErrorUninitialized, "ERROR: Uninitialized");
28
hgs
parents:
diff changeset
    48
_LIT8( KErrInvalidateParameters, "ERROR: Invalidate parameters");
hgs
parents:
diff changeset
    49
_LIT8( KErrQualityLevel, "ERROR: Invalidate quality level");
hgs
parents:
diff changeset
    50
_LIT8( KErrorPrepareVideoRecordingFailed, "ERROR: Prepare video recording failed");
hgs
parents:
diff changeset
    51
_LIT8( KErrorStartVideoRecordingFailed, "ERROR: Start video recording failed");
hgs
parents:
diff changeset
    52
_LIT8( KErrorPausingVideoRecordingFailed, "ERROR: Pausing video recording failed");
hgs
parents:
diff changeset
    53
_LIT8( KErrorResumeVideoRecordingFailed, "ERROR: Resume video recording failed");
hgs
parents:
diff changeset
    54
_LIT8( KErrorStopVideoRecordingFailed, "ERROR: Stop video recording failed");
hgs
parents:
diff changeset
    55
_LIT8( KErrorSetZoomModeFailed, "ERROR: Set zoom mode failed");
hgs
parents:
diff changeset
    56
_LIT8( KErrorSetZoomValueFailed, "ERROR: Set zoom value failed");
hgs
parents:
diff changeset
    57
hgs
parents:
diff changeset
    58
// MODULE DATA STRUCTURES
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
// LOCAL FUNCTION PROTOTYPES
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
// FORWARD DECLARATIONS
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
// ============================= LOCAL FUNCTIONS ===============================
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    69
// CHtiCameraServicePlugin::CHtiCameraServicePlugin
hgs
parents:
diff changeset
    70
// C++ default constructor can NOT contain any code, that might leave.
hgs
parents:
diff changeset
    71
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    72
//
hgs
parents:
diff changeset
    73
CHtiCameraServicePlugin::CHtiCameraServicePlugin():iIsBusy(EFalse), iError(0),
hgs
parents:
diff changeset
    74
        iVideoRecordingEngine(NULL), iWaiter(NULL)
hgs
parents:
diff changeset
    75
    {
hgs
parents:
diff changeset
    76
    }
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
hgs
parents:
diff changeset
    79
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    80
// CHtiCameraServicePlugin::ConstructL
hgs
parents:
diff changeset
    81
// Symbian 2nd phase constructor can leave.
hgs
parents:
diff changeset
    82
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    83
//
hgs
parents:
diff changeset
    84
void CHtiCameraServicePlugin::ConstructL()
hgs
parents:
diff changeset
    85
    {
hgs
parents:
diff changeset
    86
    HTI_LOG_TEXT( "CHtiCameraServicePlugin::ConstructL" );
hgs
parents:
diff changeset
    87
    iWaiter = new ( ELeave ) CActiveSchedulerWait;
hgs
parents:
diff changeset
    88
    }
hgs
parents:
diff changeset
    89
hgs
parents:
diff changeset
    90
hgs
parents:
diff changeset
    91
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    92
// CHtiCameraServicePlugin::NewL
hgs
parents:
diff changeset
    93
// Two-phased constructor.
hgs
parents:
diff changeset
    94
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    95
//
hgs
parents:
diff changeset
    96
CHtiCameraServicePlugin* CHtiCameraServicePlugin::NewL()
hgs
parents:
diff changeset
    97
    {
hgs
parents:
diff changeset
    98
    CHtiCameraServicePlugin* self = new (ELeave) CHtiCameraServicePlugin;
hgs
parents:
diff changeset
    99
    CleanupStack::PushL( self );
hgs
parents:
diff changeset
   100
    self->ConstructL();
hgs
parents:
diff changeset
   101
    CleanupStack::Pop();
hgs
parents:
diff changeset
   102
    return self;
hgs
parents:
diff changeset
   103
    }
hgs
parents:
diff changeset
   104
hgs
parents:
diff changeset
   105
hgs
parents:
diff changeset
   106
// Destructor
hgs
parents:
diff changeset
   107
CHtiCameraServicePlugin::~CHtiCameraServicePlugin()
hgs
parents:
diff changeset
   108
    {
31
hgs
parents: 29
diff changeset
   109
    if(iVideoRecordingEngine)
hgs
parents: 29
diff changeset
   110
        {
hgs
parents: 29
diff changeset
   111
        delete iVideoRecordingEngine;
hgs
parents: 29
diff changeset
   112
        iVideoRecordingEngine = NULL;
hgs
parents: 29
diff changeset
   113
        }
28
hgs
parents:
diff changeset
   114
    
hgs
parents:
diff changeset
   115
    delete iWaiter;
hgs
parents:
diff changeset
   116
    iWaiter = NULL;
hgs
parents:
diff changeset
   117
    }
hgs
parents:
diff changeset
   118
hgs
parents:
diff changeset
   119
hgs
parents:
diff changeset
   120
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   121
// CHtiCameraServicePlugin::ProcessMessageL
hgs
parents:
diff changeset
   122
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   123
//
hgs
parents:
diff changeset
   124
void CHtiCameraServicePlugin::ProcessMessageL( const TDesC8& aMessage,
hgs
parents:
diff changeset
   125
                                        THtiMessagePriority /*aPriority*/ )
hgs
parents:
diff changeset
   126
    {
hgs
parents:
diff changeset
   127
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::ProcessMessageL" );
hgs
parents:
diff changeset
   128
    HTI_LOG_FORMAT( "Message length = %d", aMessage.Length() );
hgs
parents:
diff changeset
   129
hgs
parents:
diff changeset
   130
    if ( iIsBusy )
hgs
parents:
diff changeset
   131
        {
hgs
parents:
diff changeset
   132
        HTI_LOG_TEXT( "Plugin is busy - leaving" );
hgs
parents:
diff changeset
   133
        User::Leave( KErrInUse );
hgs
parents:
diff changeset
   134
        }
hgs
parents:
diff changeset
   135
hgs
parents:
diff changeset
   136
    // Will be set to EFalse in the SendResponseMsg or SendErrorResponseMsg
hgs
parents:
diff changeset
   137
    // methods when the response has been successfully sent and the plugin is
hgs
parents:
diff changeset
   138
    // ready for next message.
hgs
parents:
diff changeset
   139
    iIsBusy = ETrue;
hgs
parents:
diff changeset
   140
hgs
parents:
diff changeset
   141
    if ( aMessage.Length() < 1 )
hgs
parents:
diff changeset
   142
        {
hgs
parents:
diff changeset
   143
        SendErrorMessageL( KErrArgument, KErrorNoCommand );
hgs
parents:
diff changeset
   144
        return;
hgs
parents:
diff changeset
   145
        }
hgs
parents:
diff changeset
   146
    
hgs
parents:
diff changeset
   147
    TUint8 command = aMessage.Ptr()[0];
hgs
parents:
diff changeset
   148
    TInt err = KErrNone;
hgs
parents:
diff changeset
   149
hgs
parents:
diff changeset
   150
    switch (command)
hgs
parents:
diff changeset
   151
        {
31
hgs
parents: 29
diff changeset
   152
        case ECmdInitialize:
hgs
parents: 29
diff changeset
   153
            TRAP(err, HandleInitializeCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents: 29
diff changeset
   154
            break;
hgs
parents: 29
diff changeset
   155
        case ECmdUninitialize:
hgs
parents: 29
diff changeset
   156
            TRAP(err, HandleUninitializeCmdL(aMessage.Right( aMessage.Length() - 1 )));
28
hgs
parents:
diff changeset
   157
            break;
hgs
parents:
diff changeset
   158
        case ECmdPrepareVideoRecording:
hgs
parents:
diff changeset
   159
            TRAP(err, HandlePrepareVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   160
            break;
hgs
parents:
diff changeset
   161
        case ECmdStartVideoRecording:
hgs
parents:
diff changeset
   162
            TRAP(err, HandleStartVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   163
            break;
hgs
parents:
diff changeset
   164
        case ECmdPausingVideoRecording:
hgs
parents:
diff changeset
   165
            TRAP(err, HandlePausingVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   166
            break;
hgs
parents:
diff changeset
   167
        case ECmdResumeVideoRecording:
hgs
parents:
diff changeset
   168
            TRAP(err, HandleResumeVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   169
            break;
hgs
parents:
diff changeset
   170
        case ECmdStopVideoRecording:
hgs
parents:
diff changeset
   171
            TRAP(err, HandleStopVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   172
            break;
hgs
parents:
diff changeset
   173
        case ECmdCloseVideoRecording:
hgs
parents:
diff changeset
   174
            TRAP(err, HandleCloseVideoRecordingCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   175
            break;
hgs
parents:
diff changeset
   176
        case ECmdGetZoom:
hgs
parents:
diff changeset
   177
            TRAP(err, HandleGetZoomCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   178
            break;
hgs
parents:
diff changeset
   179
        case ECmdSetZoom:
hgs
parents:
diff changeset
   180
            TRAP(err, HandleSetZoomCmdL(aMessage.Right( aMessage.Length() - 1 )));
hgs
parents:
diff changeset
   181
            break;
hgs
parents:
diff changeset
   182
        default:
hgs
parents:
diff changeset
   183
            TRAP(err, SendErrorMessageL(KErrArgument, KErrorUnknownCmd));
hgs
parents:
diff changeset
   184
            break;
hgs
parents:
diff changeset
   185
        }
hgs
parents:
diff changeset
   186
    
hgs
parents:
diff changeset
   187
    if(err != KErrNone)
hgs
parents:
diff changeset
   188
        {
hgs
parents:
diff changeset
   189
        iIsBusy = EFalse;
hgs
parents:
diff changeset
   190
        User::Leave( err );
hgs
parents:
diff changeset
   191
        }
hgs
parents:
diff changeset
   192
hgs
parents:
diff changeset
   193
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::ProcessMessageL" );
hgs
parents:
diff changeset
   194
    }
hgs
parents:
diff changeset
   195
31
hgs
parents: 29
diff changeset
   196
void CHtiCameraServicePlugin::HandleInitializeCmdL( const TDesC8& aData )
28
hgs
parents:
diff changeset
   197
    {
31
hgs
parents: 29
diff changeset
   198
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleInitializeCmdL" );
28
hgs
parents:
diff changeset
   199
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   200
        {
hgs
parents:
diff changeset
   201
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   202
        return;
hgs
parents:
diff changeset
   203
        }
hgs
parents:
diff changeset
   204
    
hgs
parents:
diff changeset
   205
    HTI_LOG_TEXT("Initializes Camera Application Engine");
31
hgs
parents: 29
diff changeset
   206
    if(iVideoRecordingEngine)
hgs
parents: 29
diff changeset
   207
        {
hgs
parents: 29
diff changeset
   208
        delete iVideoRecordingEngine;
hgs
parents: 29
diff changeset
   209
        iVideoRecordingEngine = NULL;
hgs
parents: 29
diff changeset
   210
        }
hgs
parents: 29
diff changeset
   211
    
hgs
parents: 29
diff changeset
   212
    iVideoRecordingEngine = CEngineVideoRecording::NewL(*this, 0);
28
hgs
parents:
diff changeset
   213
    iVideoRecordingEngine->InitL();
hgs
parents:
diff changeset
   214
    iWaiter->Start();
hgs
parents:
diff changeset
   215
    if(iError != KErrNone)
hgs
parents:
diff changeset
   216
        {
hgs
parents:
diff changeset
   217
        SendErrorMessageL(iError, KErrorInitFailed);
hgs
parents:
diff changeset
   218
        }
hgs
parents:
diff changeset
   219
    else
hgs
parents:
diff changeset
   220
        {
hgs
parents:
diff changeset
   221
        HTI_LOG_TEXT("Initializes video recording");
hgs
parents:
diff changeset
   222
        iVideoRecordingEngine->InitVideoRecorderL();
hgs
parents:
diff changeset
   223
        
hgs
parents:
diff changeset
   224
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   225
        }
hgs
parents:
diff changeset
   226
31
hgs
parents: 29
diff changeset
   227
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleInitializeCmdL" );
28
hgs
parents:
diff changeset
   228
    }
hgs
parents:
diff changeset
   229
31
hgs
parents: 29
diff changeset
   230
void CHtiCameraServicePlugin::HandleUninitializeCmdL(const TDesC8& aData)
hgs
parents: 29
diff changeset
   231
    {
hgs
parents: 29
diff changeset
   232
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleUninitializeCmdL" );
hgs
parents: 29
diff changeset
   233
    if(aData.Length() != 0)
hgs
parents: 29
diff changeset
   234
        {
hgs
parents: 29
diff changeset
   235
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents: 29
diff changeset
   236
        return;
hgs
parents: 29
diff changeset
   237
        }
hgs
parents: 29
diff changeset
   238
    
hgs
parents: 29
diff changeset
   239
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   240
        {
hgs
parents: 29
diff changeset
   241
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   242
        return;
hgs
parents: 29
diff changeset
   243
        }
hgs
parents: 29
diff changeset
   244
    
hgs
parents: 29
diff changeset
   245
    delete iVideoRecordingEngine;
hgs
parents: 29
diff changeset
   246
    iVideoRecordingEngine = NULL;
hgs
parents: 29
diff changeset
   247
    
hgs
parents: 29
diff changeset
   248
    SendOkMsgL(KNullDesC8);
hgs
parents: 29
diff changeset
   249
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleUninitializeCmdL" );
hgs
parents: 29
diff changeset
   250
    }
28
hgs
parents:
diff changeset
   251
hgs
parents:
diff changeset
   252
void CHtiCameraServicePlugin::HandlePrepareVideoRecordingCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   253
    {
hgs
parents:
diff changeset
   254
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandlePrepareVideoRecordingCmdL" );
hgs
parents:
diff changeset
   255
    if(aData.Length() < 2 || aData[1] != aData.Length() -2)
hgs
parents:
diff changeset
   256
        {
hgs
parents:
diff changeset
   257
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   258
        return;
hgs
parents:
diff changeset
   259
        }
hgs
parents:
diff changeset
   260
    
31
hgs
parents: 29
diff changeset
   261
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   262
        {
hgs
parents: 29
diff changeset
   263
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   264
        return;
hgs
parents: 29
diff changeset
   265
        }
hgs
parents: 29
diff changeset
   266
    
28
hgs
parents:
diff changeset
   267
    TInt qualityLevelIndex = aData[0];
hgs
parents:
diff changeset
   268
    if(qualityLevelIndex < 0 || qualityLevelIndex > iVideoRecordingEngine->VideoQualityCount() -1)
hgs
parents:
diff changeset
   269
        {
hgs
parents:
diff changeset
   270
        SendErrorMessageL(KErrOverflow, KErrQualityLevel);
hgs
parents:
diff changeset
   271
        return;
hgs
parents:
diff changeset
   272
        }
hgs
parents:
diff changeset
   273
    
hgs
parents:
diff changeset
   274
    TBuf<255> filePath;
hgs
parents:
diff changeset
   275
    TInt nextOffset = ParseString( aData, 1, filePath );
hgs
parents:
diff changeset
   276
    if ( filePath.Length() < 1 || nextOffset < 0 )
hgs
parents:
diff changeset
   277
        {
hgs
parents:
diff changeset
   278
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   279
        return;
hgs
parents:
diff changeset
   280
        }
hgs
parents:
diff changeset
   281
    
hgs
parents:
diff changeset
   282
    HTI_LOG_FORMAT("Set video recording file name: %S", &filePath);
hgs
parents:
diff changeset
   283
    iVideoRecordingEngine->SetVideoRecordingFileNameL(filePath);
hgs
parents:
diff changeset
   284
    
hgs
parents:
diff changeset
   285
    HTI_LOG_FORMAT("Prepare video recording with quality level index: %d", qualityLevelIndex);
hgs
parents:
diff changeset
   286
    iVideoRecordingEngine->PrepareVideoRecordingL(qualityLevelIndex);
hgs
parents:
diff changeset
   287
    
hgs
parents:
diff changeset
   288
    iWaiter->Start();
hgs
parents:
diff changeset
   289
    if(iError != KErrNone)
hgs
parents:
diff changeset
   290
        {
hgs
parents:
diff changeset
   291
        SendErrorMessageL(iError, KErrorPrepareVideoRecordingFailed);
hgs
parents:
diff changeset
   292
        }
hgs
parents:
diff changeset
   293
    else
hgs
parents:
diff changeset
   294
        {
hgs
parents:
diff changeset
   295
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   296
        }
hgs
parents:
diff changeset
   297
    
hgs
parents:
diff changeset
   298
     HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandlePrepareVideoRecordingCmdL" );
hgs
parents:
diff changeset
   299
    }
hgs
parents:
diff changeset
   300
hgs
parents:
diff changeset
   301
void CHtiCameraServicePlugin::HandleStartVideoRecordingCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   302
    {
hgs
parents:
diff changeset
   303
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleStartVideoRecordingCmdL" );
hgs
parents:
diff changeset
   304
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   305
        {
hgs
parents:
diff changeset
   306
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   307
        return;
hgs
parents:
diff changeset
   308
        }
hgs
parents:
diff changeset
   309
    
31
hgs
parents: 29
diff changeset
   310
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   311
        {
hgs
parents: 29
diff changeset
   312
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   313
        return;
hgs
parents: 29
diff changeset
   314
        }
hgs
parents: 29
diff changeset
   315
    
28
hgs
parents:
diff changeset
   316
    HTI_LOG_TEXT("Start video recording...");
hgs
parents:
diff changeset
   317
    iVideoRecordingEngine->StartVideoRecording();
hgs
parents:
diff changeset
   318
    
hgs
parents:
diff changeset
   319
    if(iError != KErrNone)
hgs
parents:
diff changeset
   320
        {
hgs
parents:
diff changeset
   321
        SendErrorMessageL(iError, KErrorStartVideoRecordingFailed);
hgs
parents:
diff changeset
   322
        }
hgs
parents:
diff changeset
   323
    else
hgs
parents:
diff changeset
   324
        {
hgs
parents:
diff changeset
   325
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   326
        }
hgs
parents:
diff changeset
   327
hgs
parents:
diff changeset
   328
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleStartVideoRecordingCmdL" );
hgs
parents:
diff changeset
   329
    }
hgs
parents:
diff changeset
   330
hgs
parents:
diff changeset
   331
void CHtiCameraServicePlugin::HandlePausingVideoRecordingCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   332
    {
hgs
parents:
diff changeset
   333
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandlePausingVideoRecordingCmdL" );
hgs
parents:
diff changeset
   334
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   335
        {
hgs
parents:
diff changeset
   336
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   337
        return;
hgs
parents:
diff changeset
   338
        }
hgs
parents:
diff changeset
   339
    
31
hgs
parents: 29
diff changeset
   340
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   341
        {
hgs
parents: 29
diff changeset
   342
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   343
        return;
hgs
parents: 29
diff changeset
   344
        }
hgs
parents: 29
diff changeset
   345
    
28
hgs
parents:
diff changeset
   346
    HTI_LOG_TEXT("Pausing video recording");
hgs
parents:
diff changeset
   347
    iVideoRecordingEngine->PauseVideoRecording();
hgs
parents:
diff changeset
   348
    if(iError != KErrNone)
hgs
parents:
diff changeset
   349
        {
hgs
parents:
diff changeset
   350
        SendErrorMessageL(iError, KErrorPausingVideoRecordingFailed);
hgs
parents:
diff changeset
   351
        }
hgs
parents:
diff changeset
   352
    else
hgs
parents:
diff changeset
   353
        {
hgs
parents:
diff changeset
   354
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   355
        }
hgs
parents:
diff changeset
   356
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandlePausingVideoRecordingCmdL" );
hgs
parents:
diff changeset
   357
    }
hgs
parents:
diff changeset
   358
hgs
parents:
diff changeset
   359
void CHtiCameraServicePlugin::HandleResumeVideoRecordingCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   360
    {
hgs
parents:
diff changeset
   361
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleResumeVideoRecordingCmdL" );
hgs
parents:
diff changeset
   362
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   363
        {
hgs
parents:
diff changeset
   364
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   365
        return;
hgs
parents:
diff changeset
   366
        }
hgs
parents:
diff changeset
   367
    
31
hgs
parents: 29
diff changeset
   368
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   369
        {
hgs
parents: 29
diff changeset
   370
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   371
        return;
hgs
parents: 29
diff changeset
   372
        }
hgs
parents: 29
diff changeset
   373
    
28
hgs
parents:
diff changeset
   374
    HTI_LOG_TEXT("Resume video recording...");
hgs
parents:
diff changeset
   375
    iVideoRecordingEngine->ResumeVideoRecording();
hgs
parents:
diff changeset
   376
    
hgs
parents:
diff changeset
   377
    if(iError != KErrNone)
hgs
parents:
diff changeset
   378
        {
hgs
parents:
diff changeset
   379
        SendErrorMessageL(iError, KErrorResumeVideoRecordingFailed);
hgs
parents:
diff changeset
   380
        }
hgs
parents:
diff changeset
   381
    else
hgs
parents:
diff changeset
   382
        {
hgs
parents:
diff changeset
   383
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   384
        }
hgs
parents:
diff changeset
   385
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleResumeVideoRecordingCmdL" );
hgs
parents:
diff changeset
   386
    }
hgs
parents:
diff changeset
   387
hgs
parents:
diff changeset
   388
void CHtiCameraServicePlugin::HandleStopVideoRecordingCmdL( const TDesC8& aData )    
hgs
parents:
diff changeset
   389
    {
hgs
parents:
diff changeset
   390
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleStopVideoRecordingCmdL" );
hgs
parents:
diff changeset
   391
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   392
        {
hgs
parents:
diff changeset
   393
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   394
        return;
hgs
parents:
diff changeset
   395
        }
hgs
parents:
diff changeset
   396
    
31
hgs
parents: 29
diff changeset
   397
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   398
        {
hgs
parents: 29
diff changeset
   399
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   400
        return;
hgs
parents: 29
diff changeset
   401
        }
hgs
parents: 29
diff changeset
   402
    
28
hgs
parents:
diff changeset
   403
    HTI_LOG_TEXT("Stop video recording");
hgs
parents:
diff changeset
   404
    iVideoRecordingEngine->StopVideoRecording();
hgs
parents:
diff changeset
   405
    if(iError != KErrNone)
hgs
parents:
diff changeset
   406
        {
hgs
parents:
diff changeset
   407
        SendErrorMessageL(iError, KErrorStopVideoRecordingFailed);
hgs
parents:
diff changeset
   408
        }
hgs
parents:
diff changeset
   409
    else
hgs
parents:
diff changeset
   410
        {
hgs
parents:
diff changeset
   411
        SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   412
        }
hgs
parents:
diff changeset
   413
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleStopVideoRecordingCmdL" );
hgs
parents:
diff changeset
   414
    }
hgs
parents:
diff changeset
   415
hgs
parents:
diff changeset
   416
void CHtiCameraServicePlugin::HandleCloseVideoRecordingCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   417
    {
hgs
parents:
diff changeset
   418
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleCloseVideoRecordingCmdL" );
hgs
parents:
diff changeset
   419
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   420
        {
hgs
parents:
diff changeset
   421
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   422
        return;
hgs
parents:
diff changeset
   423
        }
hgs
parents:
diff changeset
   424
    
31
hgs
parents: 29
diff changeset
   425
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   426
        {
hgs
parents: 29
diff changeset
   427
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   428
        return;
hgs
parents: 29
diff changeset
   429
        }
hgs
parents: 29
diff changeset
   430
    
28
hgs
parents:
diff changeset
   431
    HTI_LOG_TEXT("Close video recording");
hgs
parents:
diff changeset
   432
    iVideoRecordingEngine->CloseVideoRecording();
hgs
parents:
diff changeset
   433
    SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   434
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleCloseVideoRecordingCmdL" );
hgs
parents:
diff changeset
   435
    }
hgs
parents:
diff changeset
   436
hgs
parents:
diff changeset
   437
void CHtiCameraServicePlugin::HandleGetZoomCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   438
    {
hgs
parents:
diff changeset
   439
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleGetZoomCmdL" );
hgs
parents:
diff changeset
   440
    if(aData.Length() != 0)
hgs
parents:
diff changeset
   441
        {
hgs
parents:
diff changeset
   442
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   443
        return;
hgs
parents:
diff changeset
   444
        }
hgs
parents:
diff changeset
   445
    
31
hgs
parents: 29
diff changeset
   446
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   447
        {
hgs
parents: 29
diff changeset
   448
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   449
        return;
hgs
parents: 29
diff changeset
   450
        }
hgs
parents: 29
diff changeset
   451
    
28
hgs
parents:
diff changeset
   452
    TUint8 zoomMode = (TUint8)iVideoRecordingEngine->ZoomMode();
hgs
parents:
diff changeset
   453
    HTI_LOG_FORMAT("Current zoom mode: %d", zoomMode);
hgs
parents:
diff changeset
   454
    
hgs
parents:
diff changeset
   455
    TUint32 zoomValue = iVideoRecordingEngine->ZoomValue();
hgs
parents:
diff changeset
   456
    HTI_LOG_FORMAT("Current zoom value: %d", zoomValue);
hgs
parents:
diff changeset
   457
    
hgs
parents:
diff changeset
   458
    TUint32 zoomMinValue = iVideoRecordingEngine->MinZoomValue();
hgs
parents:
diff changeset
   459
    HTI_LOG_FORMAT("Min zoom value: %d", zoomMinValue);
hgs
parents:
diff changeset
   460
    
hgs
parents:
diff changeset
   461
    TUint32 zoomMaxValue = iVideoRecordingEngine->MaxZoomValue();
hgs
parents:
diff changeset
   462
    HTI_LOG_FORMAT("Max zoom value: %d", zoomMaxValue);
hgs
parents:
diff changeset
   463
    
hgs
parents:
diff changeset
   464
    TBuf8<13> buf;
hgs
parents:
diff changeset
   465
    buf.Append(zoomMode);
hgs
parents:
diff changeset
   466
    buf.Append((TUint8*)&zoomValue, 4);
hgs
parents:
diff changeset
   467
    buf.Append((TUint8*)&zoomMinValue, 4);
hgs
parents:
diff changeset
   468
    buf.Append((TUint8*)&zoomMaxValue, 4);
hgs
parents:
diff changeset
   469
    SendOkMsgL( buf );
hgs
parents:
diff changeset
   470
hgs
parents:
diff changeset
   471
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleGetZoomCmdL" );
hgs
parents:
diff changeset
   472
    }
hgs
parents:
diff changeset
   473
hgs
parents:
diff changeset
   474
void CHtiCameraServicePlugin::HandleSetZoomCmdL( const TDesC8& aData )
hgs
parents:
diff changeset
   475
    {
hgs
parents:
diff changeset
   476
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::HandleSetZoomCmdL" );
hgs
parents:
diff changeset
   477
    if(aData.Length() != 5)
hgs
parents:
diff changeset
   478
        {
hgs
parents:
diff changeset
   479
        SendErrorMessageL(KErrArgument, KErrInvalidateParameters);
hgs
parents:
diff changeset
   480
        return;
hgs
parents:
diff changeset
   481
        }
hgs
parents:
diff changeset
   482
    
31
hgs
parents: 29
diff changeset
   483
    if(iVideoRecordingEngine == NULL)
hgs
parents: 29
diff changeset
   484
        {
hgs
parents: 29
diff changeset
   485
        SendErrorMessageL(KErrNotReady, KErrorUninitialized);
hgs
parents: 29
diff changeset
   486
        return;
hgs
parents: 29
diff changeset
   487
        }
hgs
parents: 29
diff changeset
   488
    
28
hgs
parents:
diff changeset
   489
    CEngineVideoRecording::TZoomMode zoomMode = (CEngineVideoRecording::TZoomMode)aData[0];
hgs
parents:
diff changeset
   490
    HTI_LOG_FORMAT("Set zoom mode: %d", zoomMode);
hgs
parents:
diff changeset
   491
    TRAPD(err, iVideoRecordingEngine->SetZoomModeL(zoomMode));
hgs
parents:
diff changeset
   492
    if(err != KErrNone)
hgs
parents:
diff changeset
   493
        {
hgs
parents:
diff changeset
   494
        SendErrorMessageL(err, KErrorSetZoomModeFailed);
hgs
parents:
diff changeset
   495
        }
hgs
parents:
diff changeset
   496
    else
hgs
parents:
diff changeset
   497
        {
hgs
parents:
diff changeset
   498
        TInt value = aData[1] + ( aData[2] << 8 )
hgs
parents:
diff changeset
   499
                + ( aData[3] << 16 )
hgs
parents:
diff changeset
   500
                + ( aData[4] << 24 );
hgs
parents:
diff changeset
   501
        HTI_LOG_FORMAT("Set zoom value: %d", value);
hgs
parents:
diff changeset
   502
        TRAPD(err, iVideoRecordingEngine->SetZoomValueL(value));
hgs
parents:
diff changeset
   503
        if(err != KErrNone)
hgs
parents:
diff changeset
   504
            {
hgs
parents:
diff changeset
   505
            SendErrorMessageL(err, KErrorSetZoomValueFailed);
hgs
parents:
diff changeset
   506
            }
hgs
parents:
diff changeset
   507
        else
hgs
parents:
diff changeset
   508
            {
hgs
parents:
diff changeset
   509
            SendOkMsgL(KNullDesC8);
hgs
parents:
diff changeset
   510
            }
hgs
parents:
diff changeset
   511
        }
hgs
parents:
diff changeset
   512
    
hgs
parents:
diff changeset
   513
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::HandleSetZoomCmdL" );
hgs
parents:
diff changeset
   514
    }
hgs
parents:
diff changeset
   515
hgs
parents:
diff changeset
   516
hgs
parents:
diff changeset
   517
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   518
// CHtiCameraServicePlugin::IsBusy
hgs
parents:
diff changeset
   519
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   520
//
hgs
parents:
diff changeset
   521
TBool CHtiCameraServicePlugin::IsBusy()
hgs
parents:
diff changeset
   522
    {
hgs
parents:
diff changeset
   523
    return iIsBusy;
hgs
parents:
diff changeset
   524
    }
hgs
parents:
diff changeset
   525
hgs
parents:
diff changeset
   526
hgs
parents:
diff changeset
   527
// ----------------------------------------------------------------------------
hgs
parents:
diff changeset
   528
void CHtiCameraServicePlugin::SendOkMsgL( const TDesC8& aData )
hgs
parents:
diff changeset
   529
    {
hgs
parents:
diff changeset
   530
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::SendOkMsgL: Starting" );
hgs
parents:
diff changeset
   531
hgs
parents:
diff changeset
   532
    User::LeaveIfNull( iDispatcher );
hgs
parents:
diff changeset
   533
hgs
parents:
diff changeset
   534
    HBufC8* temp = HBufC8::NewL( aData.Length() + 1 );
hgs
parents:
diff changeset
   535
    TPtr8 response = temp->Des();
hgs
parents:
diff changeset
   536
    response.Append( ( TChar ) EResultOk );
hgs
parents:
diff changeset
   537
    response.Append( aData );
hgs
parents:
diff changeset
   538
    User::LeaveIfError( iDispatcher->DispatchOutgoingMessage(
hgs
parents:
diff changeset
   539
        temp, KCameraServiceUid ) );
hgs
parents:
diff changeset
   540
    iIsBusy = EFalse;
hgs
parents:
diff changeset
   541
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::SendOkMsgL: Done" );
hgs
parents:
diff changeset
   542
    }
hgs
parents:
diff changeset
   543
hgs
parents:
diff changeset
   544
// ----------------------------------------------------------------------------
hgs
parents:
diff changeset
   545
void CHtiCameraServicePlugin::SendErrorMessageL( TInt aError, const TDesC8& aDescription )
hgs
parents:
diff changeset
   546
    {
hgs
parents:
diff changeset
   547
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::SendErrorMessageL: Starting" );
hgs
parents:
diff changeset
   548
    User::LeaveIfNull( iDispatcher );
hgs
parents:
diff changeset
   549
    User::LeaveIfError( iDispatcher->DispatchOutgoingErrorMessage(
hgs
parents:
diff changeset
   550
        aError, aDescription, KCameraServiceUid ) );
hgs
parents:
diff changeset
   551
    iIsBusy = EFalse;
hgs
parents:
diff changeset
   552
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::SendErrorMessageL: Done" );
hgs
parents:
diff changeset
   553
    }
hgs
parents:
diff changeset
   554
hgs
parents:
diff changeset
   555
TInt CHtiCameraServicePlugin::ParseString( const TDesC8& aRequest,
hgs
parents:
diff changeset
   556
                                          TInt aOffset,
hgs
parents:
diff changeset
   557
                                          TDes& aResult )
hgs
parents:
diff changeset
   558
    {
hgs
parents:
diff changeset
   559
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::ParseString" );
hgs
parents:
diff changeset
   560
hgs
parents:
diff changeset
   561
    // If offset outside the string return empty string
hgs
parents:
diff changeset
   562
    if ( aOffset >= aRequest.Size() )
hgs
parents:
diff changeset
   563
        {
hgs
parents:
diff changeset
   564
        return aOffset;
hgs
parents:
diff changeset
   565
        }
hgs
parents:
diff changeset
   566
hgs
parents:
diff changeset
   567
    TInt length = aRequest[aOffset];
hgs
parents:
diff changeset
   568
    HTI_LOG_FORMAT( "String length = %d", length );
hgs
parents:
diff changeset
   569
hgs
parents:
diff changeset
   570
    // If length is zero return empty string
hgs
parents:
diff changeset
   571
    if ( length < 1 )
hgs
parents:
diff changeset
   572
        {
hgs
parents:
diff changeset
   573
        return aOffset + 1;
hgs
parents:
diff changeset
   574
        }
hgs
parents:
diff changeset
   575
hgs
parents:
diff changeset
   576
    if ( length > aResult.MaxLength() )
hgs
parents:
diff changeset
   577
        {
hgs
parents:
diff changeset
   578
        return KErrBadDescriptor;
hgs
parents:
diff changeset
   579
        }
hgs
parents:
diff changeset
   580
hgs
parents:
diff changeset
   581
    TInt nextOffset = length + aOffset + 1;
hgs
parents:
diff changeset
   582
    HTI_LOG_FORMAT( "Next offset = %d", nextOffset );
hgs
parents:
diff changeset
   583
    HTI_LOG_FORMAT( "Request size = %d", aRequest.Size() );
hgs
parents:
diff changeset
   584
hgs
parents:
diff changeset
   585
    if ( nextOffset > aRequest.Size() )
hgs
parents:
diff changeset
   586
        {
hgs
parents:
diff changeset
   587
        return KErrArgument;
hgs
parents:
diff changeset
   588
        }
hgs
parents:
diff changeset
   589
hgs
parents:
diff changeset
   590
    aResult.Copy( aRequest.Mid( aOffset + 1, length ) );
hgs
parents:
diff changeset
   591
hgs
parents:
diff changeset
   592
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::ParseString" );
hgs
parents:
diff changeset
   593
    return nextOffset;
hgs
parents:
diff changeset
   594
    }
hgs
parents:
diff changeset
   595
hgs
parents:
diff changeset
   596
void CHtiCameraServicePlugin::MevroInitComplete( TInt aError )
hgs
parents:
diff changeset
   597
    {
hgs
parents:
diff changeset
   598
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::MevroInitComplete" );
hgs
parents:
diff changeset
   599
    HTI_LOG_FORMAT("aError = %d", aError);
31
hgs
parents: 29
diff changeset
   600
    iError = aError; 
28
hgs
parents:
diff changeset
   601
    iWaiter->AsyncStop();
hgs
parents:
diff changeset
   602
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::MevroInitComplete" );
hgs
parents:
diff changeset
   603
    }
hgs
parents:
diff changeset
   604
hgs
parents:
diff changeset
   605
void CHtiCameraServicePlugin::MevroVideoPrepareComplete(TInt aError)
hgs
parents:
diff changeset
   606
    {
hgs
parents:
diff changeset
   607
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::MevroVideoPrepareComplete" );
hgs
parents:
diff changeset
   608
    HTI_LOG_FORMAT("aError = %d", aError);
29
hgs
parents: 28
diff changeset
   609
    iError = aError;
28
hgs
parents:
diff changeset
   610
    iWaiter->AsyncStop();
hgs
parents:
diff changeset
   611
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::MevroVideoPrepareComplete" );
hgs
parents:
diff changeset
   612
    }
hgs
parents:
diff changeset
   613
hgs
parents:
diff changeset
   614
void CHtiCameraServicePlugin::MevroVideoRecordingOn(TInt aError)
hgs
parents:
diff changeset
   615
    {
hgs
parents:
diff changeset
   616
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::MevroVideoRecordingOn" );
hgs
parents:
diff changeset
   617
    HTI_LOG_FORMAT("aError = %d", aError);
29
hgs
parents: 28
diff changeset
   618
    iError = aError;
28
hgs
parents:
diff changeset
   619
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::MevroVideoRecordingOn" );
hgs
parents:
diff changeset
   620
    }
hgs
parents:
diff changeset
   621
hgs
parents:
diff changeset
   622
void CHtiCameraServicePlugin::MevroVideoRecordingPaused(TInt aError)
hgs
parents:
diff changeset
   623
    {
hgs
parents:
diff changeset
   624
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::MevroVideoRecordingPaused" );
hgs
parents:
diff changeset
   625
    HTI_LOG_FORMAT("aError = %d", aError);
29
hgs
parents: 28
diff changeset
   626
    iError = aError;
28
hgs
parents:
diff changeset
   627
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::MevroVideoRecordingPaused" );
hgs
parents:
diff changeset
   628
    }
hgs
parents:
diff changeset
   629
hgs
parents:
diff changeset
   630
void CHtiCameraServicePlugin::MevroVideoRecordingComplete(TInt aError)
hgs
parents:
diff changeset
   631
    {
hgs
parents:
diff changeset
   632
    HTI_LOG_FUNC_IN( "CHtiCameraServicePlugin::MevroVideoRecordingComplete" );
hgs
parents:
diff changeset
   633
    HTI_LOG_FORMAT("aError = %d", aError);
29
hgs
parents: 28
diff changeset
   634
    iError = aError;
28
hgs
parents:
diff changeset
   635
    HTI_LOG_FUNC_OUT( "CHtiCameraServicePlugin::MevroVideoRecordingComplete" );
hgs
parents:
diff changeset
   636
    }
hgs
parents:
diff changeset
   637
//  End of File