videocollection/hgmyvideos/tsrc/ut_vcxhgmyvideosmainview/src/vcxhgmyvideosvideomodelhandler_stub.cpp
changeset 0 96612d01cf9f
child 15 8f0df5c82986
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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:     Stub class for unit testing.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 
       
    23 #include "VcxHgMyVideosVideoModelHandler.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CVcxHgMyVideosVideoModelHandler* CVcxHgMyVideosVideoModelHandler::NewL( 
       
    32         CVcxHgMyVideosVideoListImpl& aVideoListImpl,
       
    33         CVcxHgMyVideosModel& aModel,
       
    34         CVcxHgMyVideosMainView& aView,
       
    35         CHgScroller& aScroller )        
       
    36     {
       
    37     CVcxHgMyVideosVideoModelHandler* self = 
       
    38         CVcxHgMyVideosVideoModelHandler::NewLC( 
       
    39             aVideoListImpl, aModel, aView, aScroller );
       
    40     CleanupStack::Pop( self );
       
    41     return self;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 CVcxHgMyVideosVideoModelHandler* CVcxHgMyVideosVideoModelHandler::NewLC(
       
    49         CVcxHgMyVideosVideoListImpl& aVideoListImpl,
       
    50         CVcxHgMyVideosModel& aModel,
       
    51         CVcxHgMyVideosMainView& aView,
       
    52         CHgScroller& aScroller )        
       
    53     {
       
    54     CVcxHgMyVideosVideoModelHandler* self = 
       
    55         new (ELeave) CVcxHgMyVideosVideoModelHandler( 
       
    56             aVideoListImpl, aModel, aView, aScroller );
       
    57     CleanupStack::PushL( self );
       
    58     self->ConstructL();
       
    59     return self;
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // Constructor
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 CVcxHgMyVideosVideoModelHandler::CVcxHgMyVideosVideoModelHandler(
       
    67         CVcxHgMyVideosVideoListImpl& aVideoListImpl,
       
    68         CVcxHgMyVideosModel& aModel,
       
    69         CVcxHgMyVideosMainView& aView,
       
    70         CHgScroller& aScroller )
       
    71     : iVideoListImpl( aVideoListImpl ),
       
    72       iModel( aModel ),
       
    73       iView( aView ),
       
    74       iScroller( aScroller ),
       
    75       iCurrentCategoryIndex( KErrNotFound ),
       
    76       iRestoreHighlightPosition( EFalse )
       
    77     {
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 void CVcxHgMyVideosVideoModelHandler::ConstructL()
       
    85     {
       
    86     }
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // Destructor
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 CVcxHgMyVideosVideoModelHandler::~CVcxHgMyVideosVideoModelHandler()
       
    93     {
       
    94 
       
    95     }
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 void CVcxHgMyVideosVideoModelHandler::DoModelActivateL()
       
   102     {
       
   103     }
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 void CVcxHgMyVideosVideoModelHandler::DoModelDeactivate()
       
   110     {
       
   111     }
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 void CVcxHgMyVideosVideoModelHandler::SaveHighlightedItemIdL()
       
   118     {
       
   119     }
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 //
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 void CVcxHgMyVideosVideoModelHandler::UpdateVideoListL( TInt aCategoryIndex )
       
   126     {
       
   127     }
       
   128 
       
   129 // -----------------------------------------------------------------------------
       
   130 //
       
   131 // -----------------------------------------------------------------------------
       
   132 //
       
   133 void CVcxHgMyVideosVideoModelHandler::ResortVideoListL()
       
   134     {
       
   135     }
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 //  
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 TInt CVcxHgMyVideosVideoModelHandler::Highlight()
       
   142     {
       
   143     return 0;
       
   144     }
       
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 //  
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 TInt CVcxHgMyVideosVideoModelHandler::VideoCount()
       
   151     {
       
   152     return 1;
       
   153     }
       
   154 
       
   155 // -----------------------------------------------------------------------------
       
   156 //  
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 TInt CVcxHgMyVideosVideoModelHandler::CurrentCategoryIndex()
       
   160     {
       
   161     return 2;
       
   162     }
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 //  
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 void CVcxHgMyVideosVideoModelHandler::MarkedVideosL( 
       
   169         RArray<TInt>& aMarkedVideos )
       
   170     {
       
   171     }
       
   172 
       
   173 // -----------------------------------------------------------------------------
       
   174 //  
       
   175 // -----------------------------------------------------------------------------
       
   176 //
       
   177 void CVcxHgMyVideosVideoModelHandler::OngoingDownloads(
       
   178         RArray<TInt>& aDownloads )
       
   179     {
       
   180     }
       
   181 
       
   182 // -----------------------------------------------------------------------------
       
   183 // 
       
   184 // -----------------------------------------------------------------------------
       
   185 //
       
   186 TVcxMyVideosDownloadState CVcxHgMyVideosVideoModelHandler::VideoDownloadState( 
       
   187         TInt aIndex )
       
   188     {
       
   189     return (TVcxMyVideosDownloadState) 1;
       
   190     }
       
   191 
       
   192 // -----------------------------------------------------------------------------
       
   193 //
       
   194 // -----------------------------------------------------------------------------
       
   195 //
       
   196 TVcxMyVideosDownloadState CVcxHgMyVideosVideoModelHandler::VideoDownloadState( 
       
   197         CMPXMedia& aMedia )
       
   198     {
       
   199     return (TVcxMyVideosDownloadState) 1;
       
   200     }
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 //
       
   204 // -----------------------------------------------------------------------------
       
   205 //
       
   206 TBool CVcxHgMyVideosVideoModelHandler::IsProgressivePlayPossible( TInt aIndex )
       
   207     {
       
   208     return ETrue;
       
   209     }
       
   210 
       
   211 // -----------------------------------------------------------------------------
       
   212 //  
       
   213 // -----------------------------------------------------------------------------
       
   214 //
       
   215 void CVcxHgMyVideosVideoModelHandler::HandleMarkCommandL( TInt aMarkCommand )
       
   216     {
       
   217     }
       
   218 
       
   219 // -----------------------------------------------------------------------------
       
   220 //
       
   221 // -----------------------------------------------------------------------------
       
   222 //
       
   223 TInt CVcxHgMyVideosVideoModelHandler::GetViaPlayerCustomMessage(
       
   224         TInt aIndex, TViaPlayerCustomMessage& aVideoInfo, TInt& aMpxId1 )
       
   225     {
       
   226     }
       
   227 
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 // -----------------------------------------------------------------------------
       
   231 //
       
   232 TInt CVcxHgMyVideosVideoModelHandler::GetViaPlayerCustomMessage(
       
   233         TMPXItemId& aMpxItemId, TViaPlayerCustomMessage& aVideoInfo )
       
   234     {
       
   235     return KErrNone;
       
   236     }
       
   237 
       
   238 // -----------------------------------------------------------------------------
       
   239 //
       
   240 // -----------------------------------------------------------------------------
       
   241 //
       
   242 TInt CVcxHgMyVideosVideoModelHandler::GetVideoPlayerCustomMessage(
       
   243         TInt aIndex, TVideoPlayerCustomMessage& aVideoInfo, TInt& aMpxId1 )
       
   244     {
       
   245     return KErrNone;
       
   246     }
       
   247 
       
   248 // -----------------------------------------------------------------------------
       
   249 //
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 TInt CVcxHgMyVideosVideoModelHandler::GetVideoPlayerCustomMessage(
       
   253         TMPXItemId& aMpxItemId, TVideoPlayerCustomMessage& aVideoInfo )
       
   254     {
       
   255     return KErrNone;
       
   256     }
       
   257 
       
   258 // -----------------------------------------------------------------------------
       
   259 //
       
   260 // -----------------------------------------------------------------------------
       
   261 //
       
   262 TInt32 CVcxHgMyVideosVideoModelHandler::VideoAgeProfileL( TInt aIndex )
       
   263     {
       
   264     return 0;
       
   265     }
       
   266 
       
   267 // -----------------------------------------------------------------------------
       
   268 //
       
   269 // -----------------------------------------------------------------------------
       
   270 //
       
   271 TInt32 CVcxHgMyVideosVideoModelHandler::VideoAgeProfileL( TMPXItemId aId )
       
   272     {
       
   273     return 0;
       
   274     }
       
   275 
       
   276 // -----------------------------------------------------------------------------
       
   277 //
       
   278 // -----------------------------------------------------------------------------
       
   279 //
       
   280 TInt32 CVcxHgMyVideosVideoModelHandler::VideoAgeProfileL( CMPXMedia* aMedia )
       
   281     {
       
   282     return 0;
       
   283     }
       
   284 
       
   285 // -----------------------------------------------------------------------------
       
   286 // Tries to find MPX Item Id based on URI. Does not modify MPX Item Id's initial
       
   287 // value if video not found.
       
   288 // -----------------------------------------------------------------------------
       
   289 //
       
   290 TBool CVcxHgMyVideosVideoModelHandler::FindVideoMpxIdL( const TDesC& aVideoPath,
       
   291                                                         TMPXItemId& aMpxItemId )
       
   292     {
       
   293     return EFalse;
       
   294     }
       
   295 
       
   296 // -----------------------------------------------------------------------------
       
   297 // Informative call about video being played. Method removes possible new indicator
       
   298 // from video.
       
   299 // -----------------------------------------------------------------------------
       
   300 //
       
   301 void CVcxHgMyVideosVideoModelHandler::ClearNewVideoIndicatorL( TInt aIndex )
       
   302     {
       
   303     }
       
   304 
       
   305 // -----------------------------------------------------------------------------
       
   306 // Informative call about video being played. Method removes possible new indicator
       
   307 // from video.
       
   308 // -----------------------------------------------------------------------------
       
   309 //
       
   310 void CVcxHgMyVideosVideoModelHandler::ClearNewVideoIndicatorL( TMPXItemId& aMpxItemId )
       
   311     {
       
   312     }
       
   313 
       
   314 // -----------------------------------------------------------------------------
       
   315 //
       
   316 // -----------------------------------------------------------------------------
       
   317 //
       
   318 void CVcxHgMyVideosVideoModelHandler::ShowVideoDetailsDialogL()
       
   319     {
       
   320     }
       
   321 
       
   322 // -----------------------------------------------------------------------------
       
   323 //
       
   324 // -----------------------------------------------------------------------------
       
   325 //
       
   326 TInt CVcxHgMyVideosVideoModelHandler::LastPlaybackPosition( const TDesC& aContentUri )
       
   327     {
       
   328     return 0;
       
   329     }
       
   330 
       
   331 // -----------------------------------------------------------------------------
       
   332 //
       
   333 // -----------------------------------------------------------------------------
       
   334 //
       
   335 void CVcxHgMyVideosVideoModelHandler::SetLastPlaybackPositionL( const TDesC& aContentUri,
       
   336                                                                 TInt aPosition )
       
   337     {
       
   338     }
       
   339 
       
   340 // -----------------------------------------------------------------------------
       
   341 //
       
   342 // -----------------------------------------------------------------------------
       
   343 //
       
   344 const TDesC& CVcxHgMyVideosVideoModelHandler::GetVideoName( TInt aIndex )
       
   345     {
       
   346     return KNullDesC;
       
   347     }
       
   348 
       
   349 // -----------------------------------------------------------------------------
       
   350 //
       
   351 // -----------------------------------------------------------------------------
       
   352 //
       
   353 const TDesC& CVcxHgMyVideosVideoModelHandler::GetVideoUri( TInt aIndex )
       
   354     {
       
   355     return KNullDesC;
       
   356     }
       
   357 
       
   358 // -----------------------------------------------------------------------------
       
   359 //
       
   360 // -----------------------------------------------------------------------------
       
   361 //
       
   362 TInt CVcxHgMyVideosVideoModelHandler::GetVideoSize( TInt aIndex )
       
   363     {
       
   364     return 0;
       
   365     }
       
   366 
       
   367 // -----------------------------------------------------------------------------
       
   368 //
       
   369 // -----------------------------------------------------------------------------
       
   370 //
       
   371 void CVcxHgMyVideosVideoModelHandler::DeleteVideosL( 
       
   372         const RArray<TInt>& aOperationTargets )
       
   373     {
       
   374     }
       
   375 
       
   376 // -----------------------------------------------------------------------------
       
   377 //
       
   378 // -----------------------------------------------------------------------------
       
   379 //
       
   380 void CVcxHgMyVideosVideoModelHandler::MoveOrCopyVideosL( 
       
   381         const RArray<TInt>& aOperationTargets,
       
   382         TInt aTargetDrive,
       
   383         TBool aCopy )
       
   384     { 
       
   385     }
       
   386 
       
   387 // -----------------------------------------------------------------------------
       
   388 //
       
   389 // -----------------------------------------------------------------------------
       
   390 //
       
   391 void CVcxHgMyVideosVideoModelHandler::PlayVideoL( TInt aIndex )
       
   392     {
       
   393     }
       
   394 
       
   395 
       
   396 // -----------------------------------------------------------------------------
       
   397 //
       
   398 // -----------------------------------------------------------------------------
       
   399 //
       
   400 void CVcxHgMyVideosVideoModelHandler::ResumeDownloadL( TInt aIndex )
       
   401     {
       
   402     }
       
   403 
       
   404 // -----------------------------------------------------------------------------
       
   405 //
       
   406 // -----------------------------------------------------------------------------
       
   407 //
       
   408 void CVcxHgMyVideosVideoModelHandler::CancelDownloadL( TInt aIndex )
       
   409     {
       
   410     }
       
   411 
       
   412 // -----------------------------------------------------------------------------
       
   413 //
       
   414 // -----------------------------------------------------------------------------
       
   415 //
       
   416 void CVcxHgMyVideosVideoModelHandler::Release( TInt aReleaseStart, 
       
   417                                                TInt aReleaseEnd )
       
   418     {
       
   419     }
       
   420 
       
   421 // -----------------------------------------------------------------------------
       
   422 //
       
   423 // -----------------------------------------------------------------------------
       
   424 //
       
   425 void CVcxHgMyVideosVideoModelHandler::Request( TInt aRequestStart, 
       
   426                                                TInt aRequestEnd,
       
   427                                                THgScrollDirection aDirection )
       
   428     {
       
   429     }
       
   430 
       
   431 // -----------------------------------------------------------------------------
       
   432 //
       
   433 // -----------------------------------------------------------------------------
       
   434 //
       
   435 void CVcxHgMyVideosVideoModelHandler::HandleRequestL( TInt aRequestStart, 
       
   436                                                       TInt aRequestEnd,
       
   437                                                       THgScrollDirection aDirection )
       
   438     {
       
   439     }
       
   440 
       
   441 // -----------------------------------------------------------------------------
       
   442 // 
       
   443 // -----------------------------------------------------------------------------
       
   444 // 
       
   445 HBufC* CVcxHgMyVideosVideoModelHandler::FormatVideoSecondRowLC( 
       
   446            CMPXMedia& aMedia, TBool& aIsDownloading )
       
   447         
       
   448     {
       
   449     return ( HBufC* ) NULL ;
       
   450     }
       
   451 
       
   452 // -----------------------------------------------------------------------------
       
   453 // 
       
   454 // -----------------------------------------------------------------------------
       
   455 // 
       
   456 HBufC* CVcxHgMyVideosVideoModelHandler::FormatVideoSecondRowCompletedLC( 
       
   457         CMPXMedia& aMedia )
       
   458     {
       
   459     return ( HBufC* )NULL ;
       
   460     }
       
   461 
       
   462 // -----------------------------------------------------------------------------
       
   463 // 
       
   464 // -----------------------------------------------------------------------------
       
   465 // 
       
   466 HBufC* CVcxHgMyVideosVideoModelHandler::FormatVideoSecondRowDownloadingLC( 
       
   467            CMPXMedia& aMedia )
       
   468     {
       
   469     return ( HBufC* )NULL ;
       
   470     }
       
   471 
       
   472 // -----------------------------------------------------------------------------
       
   473 //
       
   474 // -----------------------------------------------------------------------------
       
   475 // 
       
   476 void CVcxHgMyVideosVideoModelHandler::ReplaceVideoArrayL( CMPXMediaArray& aVideoList )
       
   477     {
       
   478 
       
   479     }
       
   480 
       
   481 // -----------------------------------------------------------------------------
       
   482 //
       
   483 // -----------------------------------------------------------------------------
       
   484 // 
       
   485 TInt CVcxHgMyVideosVideoModelHandler::DownloadProgressL( const CMPXMedia& aMpxMedia )
       
   486     {
       
   487     return 0;
       
   488     }
       
   489 
       
   490 // -----------------------------------------------------------------------------
       
   491 //
       
   492 // -----------------------------------------------------------------------------
       
   493 // 
       
   494 void CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL( TInt aListIndex )
       
   495     {
       
   496     }
       
   497 
       
   498 // -----------------------------------------------------------------------------
       
   499 //
       
   500 // -----------------------------------------------------------------------------
       
   501 // 
       
   502 void CVcxHgMyVideosVideoModelHandler::DeleteItemL( TMPXItemId aMpxItemId )
       
   503     {
       
   504     }
       
   505 
       
   506 // -----------------------------------------------------------------------------
       
   507 //
       
   508 // -----------------------------------------------------------------------------
       
   509 // 
       
   510 void CVcxHgMyVideosVideoModelHandler::InsertVideoL( CMPXMedia* aVideo )
       
   511     {
       
   512     }
       
   513 
       
   514 // -----------------------------------------------------------------------------
       
   515 //
       
   516 // -----------------------------------------------------------------------------
       
   517 // 
       
   518 TBool CVcxHgMyVideosVideoModelHandler::ValidOrigin( CMPXMedia& aMedia )
       
   519     {
       
   520     return EFalse;
       
   521     }
       
   522 
       
   523 // -----------------------------------------------------------------------------
       
   524 // MPX Collection calls this callback when video list is available.
       
   525 // -----------------------------------------------------------------------------
       
   526 // 
       
   527 void CVcxHgMyVideosVideoModelHandler::NewVideoListL( CMPXMediaArray& aVideoList )
       
   528     {
       
   529     }
       
   530 
       
   531 // -----------------------------------------------------------------------------
       
   532 // MPX Collection calls this callback when the video list has been modified.
       
   533 // -----------------------------------------------------------------------------
       
   534 // 
       
   535 void CVcxHgMyVideosVideoModelHandler::VideoListModifiedL()
       
   536     {}
       
   537 
       
   538 // -----------------------------------------------------------------------------
       
   539 // MPX Collection calls this callback when single video item has been modified.
       
   540 // -----------------------------------------------------------------------------
       
   541 // 
       
   542 void CVcxHgMyVideosVideoModelHandler::VideoModifiedL( TMPXChangeEventType aEventType,
       
   543                                                       TMPXItemId aMpxItemId,
       
   544                                                       TInt32 aExtraInfo,
       
   545                                                       TBool aSimulated )
       
   546     {
       
   547     }
       
   548 
       
   549 // -----------------------------------------------------------------------------
       
   550 // MPX Collection calls this callback when a single video has fetched.
       
   551 // -----------------------------------------------------------------------------
       
   552 // 
       
   553 void CVcxHgMyVideosVideoModelHandler::VideoFetchingCompletedL( CMPXMedia* aVideo )
       
   554     {
       
   555     }
       
   556 
       
   557 // -----------------------------------------------------------------------------
       
   558 // Download updater calls this when resume has started from beginning.
       
   559 // -----------------------------------------------------------------------------
       
   560 // 
       
   561 void CVcxHgMyVideosVideoModelHandler::ResumeStartedFromBeginningL( TUint32 aMpxId )
       
   562     {
       
   563     }
       
   564 
       
   565 // -----------------------------------------------------------------------------
       
   566 // MPX Collection calls this callback when deletion of multiple videos completes.
       
   567 // -----------------------------------------------------------------------------
       
   568 // 
       
   569 void CVcxHgMyVideosVideoModelHandler::VideoDeletionCompletedL( TInt aFailedCount,
       
   570                                                                TMPXItemId aFailedMpxId )
       
   571     {
       
   572     }
       
   573 
       
   574 // -----------------------------------------------------------------------------
       
   575 // MPX Collection calls this callback when move or copy command is completed.
       
   576 // -----------------------------------------------------------------------------
       
   577 // 
       
   578 void CVcxHgMyVideosVideoModelHandler::VideoMoveOrCopyCompletedL( TInt aFailedCount,
       
   579                                                                  TMPXItemId aFailedMpxId )
       
   580     {
       
   581     }
       
   582 
       
   583 // -----------------------------------------------------------------------------
       
   584 // MPX Collection calls this callback when details fetching is completed.
       
   585 // -----------------------------------------------------------------------------
       
   586 // 
       
   587 void CVcxHgMyVideosVideoModelHandler::VideoDetailsCompletedL( const CMPXMedia& aMedia )
       
   588     {
       
   589     }