tsrc/musenginestub/src/musenglivesession.cpp
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // USER
       
    20 #include "musenglivesession.h"
       
    21 #include "musenglivesessionobserver.h"
       
    22 //#include "musunittesting.h"
       
    23 //#include "musengmceutils.h"
       
    24 
       
    25 // SYSTEM
       
    26 /*
       
    27 #include <mcecamerasource.h>
       
    28 #include <mcevideostream.h>
       
    29 #include <mcertpsink.h>
       
    30 #include <mcedisplaysink.h>
       
    31 #include <mcesession.h>
       
    32 #include <mcevideocodec.h>
       
    33 */
       
    34 
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 EXPORT_C CMusEngLiveSession* CMusEngLiveSession::NewL(
       
    42                     const TDesC& /*aFileName*/,
       
    43                     const TRect& aRect,
       
    44                     MMusEngLiveSessionObserver* aSessionObserver,
       
    45                     TUint aSipProfileId )
       
    46     {
       
    47     CMusEngLiveSession* self = new( ELeave ) CMusEngLiveSession(
       
    48                                                     aSessionObserver,
       
    49                                                     aRect,
       
    50                                                     aSipProfileId );
       
    51     CleanupStack::PushL( self );
       
    52     self->ConstructL();
       
    53     CleanupStack::Pop( self );
       
    54     return self;
       
    55     }
       
    56 
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 EXPORT_C CMusEngLiveSession* CMusEngLiveSession::NewL(
       
    63                         const TRect& aRect,
       
    64                         MMusEngLiveSessionObserver* aSessionObserver,
       
    65                         TUint aSipProfileId )
       
    66     {
       
    67     CMusEngLiveSession* self = new( ELeave ) CMusEngLiveSession(
       
    68                                                     aSessionObserver,
       
    69                                                     aRect,
       
    70                                                     aSipProfileId);
       
    71     CleanupStack::PushL( self );
       
    72     self->ConstructL();
       
    73     CleanupStack::Pop( self );
       
    74     return self;
       
    75     }
       
    76 
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 CMusEngLiveSession::~CMusEngLiveSession()
       
    83     {
       
    84     }
       
    85 
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 EXPORT_C void CMusEngLiveSession::SetSessionObserver(
       
    92                         MMusEngLiveSessionObserver* aSessionObserver )
       
    93     {
       
    94     }
       
    95 
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 EXPORT_C TInt CMusEngLiveSession::CurrentZoomL() const
       
   102     {
       
   103     return iCurrentZoom;
       
   104     }
       
   105 
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 EXPORT_C TInt CMusEngLiveSession::MaxZoomL() const
       
   112     {
       
   113     return iCurrentZoom;
       
   114     }
       
   115 
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 EXPORT_C TInt CMusEngLiveSession::MinZoomL() const
       
   122     {
       
   123     return iCurrentZoom;
       
   124     }
       
   125 
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 // -----------------------------------------------------------------------------
       
   130 //
       
   131 EXPORT_C void CMusEngLiveSession::ZoomInL()
       
   132     {
       
   133     iCurrentZoom++;
       
   134     }
       
   135 
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 EXPORT_C void CMusEngLiveSession::ZoomOutL()
       
   142     {
       
   143     iCurrentZoom--;
       
   144     }
       
   145 
       
   146 
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 // -----------------------------------------------------------------------------
       
   150 //
       
   151 EXPORT_C void CMusEngLiveSession::ZoomDefaultL()
       
   152     {
       
   153     }
       
   154 
       
   155 
       
   156 // -----------------------------------------------------------------------------
       
   157 // Enable camera
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 EXPORT_C void CMusEngLiveSession::PlayL()
       
   161     {
       
   162     iPlaying = ETrue;
       
   163     }
       
   164 
       
   165 
       
   166 // -----------------------------------------------------------------------------
       
   167 // Disable camera
       
   168 // -----------------------------------------------------------------------------
       
   169 //
       
   170 EXPORT_C void CMusEngLiveSession::PauseL()
       
   171     {
       
   172     iPlaying = EFalse;
       
   173     }
       
   174 
       
   175 
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 // -----------------------------------------------------------------------------
       
   179 //
       
   180 void CMusEngLiveSession::CompleteSessionStructureL()
       
   181     {
       
   182     }
       
   183 
       
   184 
       
   185 // -----------------------------------------------------------------------------
       
   186 //
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 CMusEngLiveSession::CMusEngLiveSession(
       
   190                         MMusEngLiveSessionObserver* aSessionObserver,
       
   191                         const TRect& aRect,
       
   192                         TUint aSipProfileId )
       
   193     :CMusEngMceOutSession( aRect, aSipProfileId ),
       
   194      iDefaultZoomFactor( -1 )
       
   195     {
       
   196     }
       
   197 
       
   198 
       
   199 // -----------------------------------------------------------------------------
       
   200 //
       
   201 // -----------------------------------------------------------------------------
       
   202 //
       
   203 void CMusEngLiveSession::ConstructL( /*const TDesC& aFileName*/ )
       
   204     {
       
   205     }
       
   206 
       
   207 
       
   208 
       
   209 
       
   210 
       
   211