videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/mpxplaybackutilityimpl.cpp
branchGCC_SURGE
changeset 48 ebbeb6bcda56
parent 27 7bf7319dbddd
parent 47 45e72b57a2fd
equal deleted inserted replaced
27:7bf7319dbddd 48:ebbeb6bcda56
     1 /*
       
     2 * Copyright (c) 2006 - 2007 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:  Playback Utility implementation
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: %
       
    19 
       
    20 #include <bamdesca.h>
       
    21 #include <s32mem.h>
       
    22 #include <e32math.h>
       
    23 #include <mpxcmn.h>
       
    24 #include <mpxplaybackobserver.h>
       
    25 #include <mpxcollectionplaylist.h>
       
    26 #include <mpxmedia.h>
       
    27 #include <mpxmessagemonitor.h>
       
    28 #include <mpxtaskqueue.h>
       
    29 #include <mpxuser.h>
       
    30 #include <mpxmessagegeneraldefs.h>
       
    31 #include <mpxcommandgeneraldefs.h>
       
    32 #include <mpxcollectionpath.h>
       
    33 #include <mpxplaybackcommanddefs.h>
       
    34 #include <mpxsubscription.h>
       
    35 #include <mpxlog.h>
       
    36 
       
    37 #include "mpxplaybackutilityimpl.h"
       
    38 
       
    39 // ============================== MEMBER FUNCTIONS ============================
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // Retrieves playback utility from TLS. Creates if it's not there.
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 MMPXPlaybackUtility* CMPXPlaybackUtility::UtilityL(
       
    46     const TUid& aModeId,
       
    47     const TMPXCategory aCategory)
       
    48     {
       
    49     MMPXPlaybackUtility* utility( NULL );
       
    50     
       
    51     utility = CMPXPlaybackUtility::NewL( aModeId, NULL, aCategory );
       
    52 
       
    53     return utility;
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // Two phases constructor
       
    58 // ----------------------------------------------------------------------------
       
    59 //
       
    60 CMPXPlaybackUtility* CMPXPlaybackUtility::NewL(const TUid& aModeId,
       
    61                                                MMPXPlaybackObserver* aObs,
       
    62                                                const TMPXCategory aCategory)
       
    63     {
       
    64     CMPXPlaybackUtility* p=new(ELeave)CMPXPlaybackUtility();
       
    65     CleanupStack::PushL(p);
       
    66     p->ConstructL(aModeId,aObs,aCategory);
       
    67     CleanupStack::Pop(p);
       
    68     return p;
       
    69     }
       
    70 
       
    71 // ----------------------------------------------------------------------------
       
    72 // Destructor
       
    73 // ----------------------------------------------------------------------------
       
    74 //
       
    75 CMPXPlaybackUtility::~CMPXPlaybackUtility()
       
    76     {
       
    77     iObservers.Close();
       
    78     }
       
    79 
       
    80 // ----------------------------------------------------------------------------
       
    81 // C++ constructor
       
    82 // Create a unique name out of thread ID and this pointer: no other instance of
       
    83 // this object will have the same name; used to identify this object for
       
    84 // recieving messages
       
    85 // ----------------------------------------------------------------------------
       
    86 //
       
    87 CMPXPlaybackUtility::CMPXPlaybackUtility()
       
    88     : iCallbackOngoing(EFalse)
       
    89     {
       
    90     }
       
    91 
       
    92 // ----------------------------------------------------------------------------
       
    93 // 2nd construtor
       
    94 // ----------------------------------------------------------------------------
       
    95 //
       
    96 void CMPXPlaybackUtility::ConstructL(const TUid& /* aModeId */,
       
    97                                      MMPXPlaybackObserver* /* aObs */, 
       
    98                                      const TMPXCategory /* aCategory */)
       
    99     {
       
   100     	iState = EPbStateInitialised;
       
   101     }
       
   102 
       
   103 // ----------------------------------------------------------------------------
       
   104 // Add a observer
       
   105 // ----------------------------------------------------------------------------
       
   106 //
       
   107 void CMPXPlaybackUtility::AddObserverL(MMPXPlaybackObserver& aObs)
       
   108     {
       
   109     iObservers.AppendL(&aObs);
       
   110     }
       
   111 
       
   112 // ----------------------------------------------------------------------------
       
   113 // Remove a observer
       
   114 // ----------------------------------------------------------------------------
       
   115 //
       
   116 void CMPXPlaybackUtility::RemoveObserverL(MMPXPlaybackObserver& /* aObs */)
       
   117     {
       
   118 
       
   119     }
       
   120 
       
   121 // ----------------------------------------------------------------------------
       
   122 // Returns PIds of clients that are using the engine in the mode
       
   123 // ----------------------------------------------------------------------------
       
   124 //
       
   125 void CMPXPlaybackUtility::GetClientsL(RArray<TProcessId>& /* aClients */)
       
   126     {
       
   127 
       
   128     }
       
   129 
       
   130 // ----------------------------------------------------------------------------
       
   131 // Initializes a track given by aIndex in path aCollectionPath
       
   132 // ----------------------------------------------------------------------------
       
   133 //
       
   134 void CMPXPlaybackUtility::InitL(
       
   135     const CMPXCollectionPlaylist& /* aPlaylist */,
       
   136     TBool /*aPlay */ )
       
   137     {
       
   138 
       
   139     }
       
   140 
       
   141 // ----------------------------------------------------------------------------
       
   142 // Inititialises with a single song, may not be part of any collection
       
   143 // ----------------------------------------------------------------------------
       
   144 //
       
   145 void CMPXPlaybackUtility::InitL(const TDesC& /* aUri */, const TDesC8* /* aType */ )
       
   146     {
       
   147 
       
   148     }
       
   149 
       
   150 // ----------------------------------------------------------------------------
       
   151 // Inititialises with a single song, may not be part of any collection
       
   152 // ----------------------------------------------------------------------------
       
   153 //
       
   154 void CMPXPlaybackUtility::InitL(RFile& /* aShareableFile */)
       
   155     {
       
   156 
       
   157     }
       
   158 
       
   159 // ----------------------------------------------------------------------------
       
   160 // Inititialises with a URI
       
   161 // ----------------------------------------------------------------------------
       
   162 //
       
   163 void CMPXPlaybackUtility::InitStreamingL(const TDesC& /* aUri */, const TDesC8* /* aType */, const TInt /* aAccessPoint */)
       
   164 {
       
   165 
       
   166 }
       
   167 
       
   168 
       
   169 // ----------------------------------------------------------------------------
       
   170 // Inititialises with a file, may not be part of any collection
       
   171 // ----------------------------------------------------------------------------
       
   172 //
       
   173 void CMPXPlaybackUtility::InitStreamingL(RFile& /* aShareableFile */, const TInt /* aAccessPoint */)
       
   174 {
       
   175 
       
   176 }
       
   177 
       
   178 // ----------------------------------------------------------------------------
       
   179 // Frees up client side resources only; a player is freed when there are no
       
   180 // clients using it, and all resources are freed when the last client closed
       
   181 // ----------------------------------------------------------------------------
       
   182 //
       
   183 void CMPXPlaybackUtility::Close()
       
   184     {
       
   185 
       
   186     }
       
   187 
       
   188 // ----------------------------------------------------------------------------
       
   189 // Stops any async operations that are currently under way
       
   190 // ----------------------------------------------------------------------------
       
   191 //
       
   192 void CMPXPlaybackUtility::CancelRequest()
       
   193     {
       
   194 
       
   195     }
       
   196 
       
   197 // ----------------------------------------------------------------------------
       
   198 // Issue player commands, with optional data.
       
   199 // ----------------------------------------------------------------------------
       
   200 //
       
   201 void CMPXPlaybackUtility::CommandL(TMPXPlaybackCommand /* aCmd */, TInt /* aData */)
       
   202     {
       
   203 
       
   204     }
       
   205 
       
   206 // ----------------------------------------------------------------------------
       
   207 // Issue player commands
       
   208 // ----------------------------------------------------------------------------
       
   209 //
       
   210 void CMPXPlaybackUtility::CommandL(
       
   211     CMPXCommand& aCmd,
       
   212     MMPXPlaybackCallback* /* aCallback */)
       
   213     {
       
   214     TMPXPlaybackCommand cmdType = static_cast<TMPXPlaybackCommand>(
       
   215                           aCmd.ValueTObjectL<TInt>(KMPXCommandPlaybackGeneralType));
       
   216         
       
   217     switch ( cmdType )
       
   218         {
       
   219         case EPbCmdPlay:
       
   220             {
       
   221             iState = EPbStatePlaying;
       
   222             break;
       
   223             }
       
   224         case EPbCmdDecreaseVolume:
       
   225             {
       
   226             CMPXMessage* message = CMPXMessage::NewL();
       
   227             message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMessageGeneral );
       
   228             message->SetTObjectValueL<TInt>( KMPXMessageGeneralEvent, TMPXPlaybackMessage::EPropertyChanged ); 
       
   229             message->SetTObjectValueL<TInt>( KMPXMessageGeneralType, EPbPropertyVolume );
       
   230             message->SetTObjectValueL<TInt>( KMPXMessageGeneralData, 0 );                      
       
   231             iObservers[0]->HandlePlaybackMessage( message, KErrNone );            
       
   232             }
       
   233         }
       
   234     }
       
   235 
       
   236 // ----------------------------------------------------------------------------
       
   237 // Current state of player
       
   238 // ----------------------------------------------------------------------------
       
   239 //
       
   240 TMPXPlaybackState CMPXPlaybackUtility::StateL() const
       
   241     {
       
   242     return iState;
       
   243     }
       
   244 
       
   245 // ----------------------------------------------------------------------------
       
   246 // Determine whether there is a song by the state of the engine: if there is,
       
   247 // its OK to return MMPXMedia, else NULL is returned
       
   248 // ----------------------------------------------------------------------------
       
   249 //
       
   250 MMPXSource* CMPXPlaybackUtility::Source()
       
   251     {
       
   252     return this;
       
   253     }
       
   254 
       
   255 // ----------------------------------------------------------------------------
       
   256 // Get player manager
       
   257 // ----------------------------------------------------------------------------
       
   258 //
       
   259 MMPXPlayerManager& CMPXPlaybackUtility::PlayerManager()
       
   260     {
       
   261     }
       
   262 
       
   263 // ----------------------------------------------------------------------------
       
   264 // Set playback property, EPropertyChanged event when complete
       
   265 // ----------------------------------------------------------------------------
       
   266 //
       
   267 void CMPXPlaybackUtility::SetL(TMPXPlaybackProperty aProperty,TInt /* aValue */ )
       
   268     {
       
   269         if ( aProperty == EPbPropertyMute )
       
   270         {
       
   271             CMPXMessage* message = CMPXMessage::NewL();
       
   272             message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMessageGeneral );
       
   273             message->SetTObjectValueL<TInt>( KMPXMessageGeneralEvent, TMPXPlaybackMessage::EPropertyChanged ); 
       
   274             message->SetTObjectValueL<TInt>( KMPXMessageGeneralType, 0 );
       
   275             message->SetTObjectValueL<TInt>( KMPXMessageGeneralData, 0 );                      
       
   276             iObservers[0]->HandlePlaybackMessage( message, KErrNone );
       
   277         } 
       
   278         else if ( aProperty == EPbPropertyPosition )
       
   279         {
       
   280             CMPXMessage* message = CMPXMessage::NewL();
       
   281             message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMessageGeneral );
       
   282             message->SetTObjectValueL<TInt>( KMPXMessageGeneralEvent, TMPXPlaybackMessage::EPropertyChanged ); 
       
   283             message->SetTObjectValueL<TInt>( KMPXMessageGeneralType, EPbPropertyPosition );
       
   284             message->SetTObjectValueL<TInt>( KMPXMessageGeneralData, 50 );                      
       
   285             iObservers[0]->HandlePlaybackMessage( message, KErrNone );            
       
   286         }
       
   287     }
       
   288 
       
   289 // ----------------------------------------------------------------------------
       
   290 // Send property request
       
   291 // Result will be called back in HandleProperty
       
   292 // ----------------------------------------------------------------------------
       
   293 //
       
   294 void CMPXPlaybackUtility::ValueL(MMPXPlaybackCallback& /* aCallback */,
       
   295                                  TMPXPlaybackProperty /* aProperty */)
       
   296     {
       
   297 
       
   298     }
       
   299 
       
   300 // ----------------------------------------------------------------------------
       
   301 // Send property request
       
   302 // Result will be called back in HandleProperty
       
   303 // ----------------------------------------------------------------------------
       
   304 //
       
   305 void CMPXPlaybackUtility::PropertyL(
       
   306     MMPXPlaybackCallback& /* aCallback */,
       
   307     TMPXPlaybackProperty /* aProperty */)
       
   308     {
       
   309 
       
   310     }
       
   311 
       
   312 // ----------------------------------------------------------------------------
       
   313 // Return a list of mime types supported by playback framework
       
   314 // ----------------------------------------------------------------------------
       
   315 //
       
   316 CDesCArray* CMPXPlaybackUtility::SupportedMimeTypes()
       
   317     {
       
   318     CDesCArray* desArray = NULL;
       
   319 
       
   320     return desArray;
       
   321     }
       
   322 
       
   323 // ----------------------------------------------------------------------------
       
   324 // Return a list of mime types supported by playback framework
       
   325 // ----------------------------------------------------------------------------
       
   326 //
       
   327 CDesCArray* CMPXPlaybackUtility::SupportedExtensions()
       
   328     {
       
   329     CDesCArray* desArray = NULL;
       
   330 
       
   331     return desArray;
       
   332     }
       
   333 
       
   334 // ----------------------------------------------------------------------------
       
   335 // Return a list of mime types supported by playback framework
       
   336 // ----------------------------------------------------------------------------
       
   337 //
       
   338 CDesCArray* CMPXPlaybackUtility::SupportedSchemas()
       
   339     {
       
   340     CDesCArray* desArray = NULL;
       
   341 
       
   342     return desArray;
       
   343     }
       
   344 
       
   345 // ----------------------------------------------------------------------------
       
   346 // Sets the priority of the playback utility
       
   347 // ----------------------------------------------------------------------------
       
   348 //
       
   349 void CMPXPlaybackUtility::SetPriority( TInt /* aPriority */ )
       
   350     {
       
   351 
       
   352     }
       
   353 
       
   354 
       
   355 // ----------------------------------------------------------------------------
       
   356 // CMPXPlaybackUtility::AddSubscriptionL
       
   357 // ----------------------------------------------------------------------------
       
   358 //
       
   359 void CMPXPlaybackUtility::AddSubscriptionL(
       
   360     const CMPXSubscription& /* aSubscription */)
       
   361     {
       
   362 
       
   363     }
       
   364 
       
   365 // ----------------------------------------------------------------------------
       
   366 // CMPXPlaybackUtility::RemoveSubscriptionL
       
   367 // ----------------------------------------------------------------------------
       
   368 //
       
   369 void CMPXPlaybackUtility::RemoveSubscriptionL(
       
   370     const CMPXSubscription& /* aSubscription */ )
       
   371     {
       
   372 
       
   373     }
       
   374 
       
   375 // ----------------------------------------------------------------------------
       
   376 // CMPXPlaybackUtility::ClearSubscriptionsL
       
   377 // ----------------------------------------------------------------------------
       
   378 //
       
   379 void CMPXPlaybackUtility::ClearSubscriptionsL()
       
   380     {
       
   381 
       
   382     }
       
   383 // ----------------------------------------------------------------------------
       
   384 // Get a list of player types
       
   385 // ----------------------------------------------------------------------------
       
   386 //
       
   387 void CMPXPlaybackUtility::GetPlayerTypesL(
       
   388     RArray<TMPXPlaybackPlayerType>& /* aTypes */ )
       
   389     {
       
   390 
       
   391     }
       
   392 
       
   393 // ----------------------------------------------------------------------------
       
   394 // Returns display name for custom types
       
   395 // ----------------------------------------------------------------------------
       
   396 //
       
   397 HBufC* CMPXPlaybackUtility::PlayerTypeDisplayNameL(TMPXPlaybackPlayerType /* aType */ )
       
   398     {
       
   399 		HBufC* buf=NULL;
       
   400 		return buf;
       
   401     }
       
   402 
       
   403 // ----------------------------------------------------------------------------
       
   404 // Get the list of UIDs of all players
       
   405 // ----------------------------------------------------------------------------
       
   406 //
       
   407 void CMPXPlaybackUtility::GetPlayerListL(RArray<TUid>& /* aPlayers */)
       
   408     {
       
   409 
       
   410     }
       
   411 
       
   412 // ----------------------------------------------------------------------------
       
   413 // Get the list of UIDs of players with the specific type
       
   414 // ----------------------------------------------------------------------------
       
   415 //
       
   416 void CMPXPlaybackUtility::GetPlayerListL(RArray<TUid>& /* aPlayers */,
       
   417                                          TMPXPlaybackPlayerType /* aType */)
       
   418     {
       
   419 
       
   420     }
       
   421 
       
   422 // ----------------------------------------------------------------------------
       
   423 // Asynchronous method: when server completes message, RunL() will be called
       
   424 // and then the observer is notified of the results. Data required for the
       
   425 // results that is not supplied by the server is stored; data supplied by the
       
   426 // server is written back into packaged descriptors in this address space
       
   427 // ----------------------------------------------------------------------------
       
   428 //
       
   429 void CMPXPlaybackUtility::SubPlayerNamesL(MMPXPlaybackCallback& /* aCallback */,
       
   430                                           TUid /* aPlayer */)
       
   431     {
       
   432 
       
   433     }
       
   434 
       
   435 // ----------------------------------------------------------------------------
       
   436 // Selects all players with the type
       
   437 // ----------------------------------------------------------------------------
       
   438 //
       
   439 void CMPXPlaybackUtility::SelectPlayersL(TMPXPlaybackPlayerType /* aType */)
       
   440     {
       
   441 
       
   442     }
       
   443 
       
   444 // ----------------------------------------------------------------------------
       
   445 // Selects a specific player
       
   446 // ----------------------------------------------------------------------------
       
   447 //
       
   448 void CMPXPlaybackUtility::SelectPlayerL(TUid /* aPlayer */ )
       
   449     {
       
   450 
       
   451     }
       
   452 
       
   453 // ----------------------------------------------------------------------------
       
   454 // Selects a specific player and sub player
       
   455 // ----------------------------------------------------------------------------
       
   456 //
       
   457 void CMPXPlaybackUtility::SelectSubPlayerL(TUid /* aPlayer */, TInt /* aSubPlayerIndex */)
       
   458     {
       
   459 
       
   460     }
       
   461 
       
   462 // ----------------------------------------------------------------------------
       
   463 // Clears all selection criteria.
       
   464 // ----------------------------------------------------------------------------
       
   465 //
       
   466 void CMPXPlaybackUtility::ClearSelectPlayersL()
       
   467     {
       
   468 
       
   469     }
       
   470 
       
   471 // ----------------------------------------------------------------------------
       
   472 // Retreives the current selection
       
   473 // ----------------------------------------------------------------------------
       
   474 //
       
   475 void CMPXPlaybackUtility::GetSelectionL(TMPXPlaybackPlayerType& /* aType */,
       
   476                                         TUid& /* aPlayer */,
       
   477                                         TInt& /* aSubPlayerIndex */,
       
   478                                         HBufC*& /* aSubPlayerName */)
       
   479     {
       
   480 
       
   481     }
       
   482 
       
   483 // ----------------------------------------------------------------------------
       
   484 // The current player
       
   485 // ----------------------------------------------------------------------------
       
   486 //
       
   487 MMPXPlayer* CMPXPlaybackUtility::CurrentPlayer()
       
   488     {
       
   489     return NULL;
       
   490     }
       
   491 
       
   492 // ----------------------------------------------------------------------------
       
   493 // The 'type' of the player
       
   494 // ----------------------------------------------------------------------------
       
   495 //
       
   496 TMPXPlaybackPlayerType CMPXPlaybackUtility::TypeL()
       
   497     {
       
   498     MPX_FUNC_EX("CMPXPlaybackUtility::TypeL()");
       
   499     return EPbLocal;
       
   500     }
       
   501 
       
   502 // ----------------------------------------------------------------------------
       
   503 // The name of player type
       
   504 // ----------------------------------------------------------------------------
       
   505 //
       
   506 HBufC* CMPXPlaybackUtility::TypeNameL()
       
   507     {
       
   508 		HBufC* buf=NULL;
       
   509 		return buf;
       
   510     }
       
   511 
       
   512 // ----------------------------------------------------------------------------
       
   513 // Get sub players
       
   514 // ----------------------------------------------------------------------------
       
   515 //
       
   516 void CMPXPlaybackUtility::SubPlayerNamesL(MMPXPlaybackCallback& aCallback)
       
   517     {
       
   518     MPX_FUNC_EX("CMPXPlaybackUtility::SubPlayerNamesL()");
       
   519     SubPlayerNamesL(aCallback,UidL());
       
   520     }
       
   521 
       
   522 // ----------------------------------------------------------------------------
       
   523 // Selected sub player index
       
   524 // ----------------------------------------------------------------------------
       
   525 //
       
   526 TInt CMPXPlaybackUtility::SubPlayerL() const
       
   527     {
       
   528     return 0;
       
   529     }
       
   530 
       
   531 // ----------------------------------------------------------------------------
       
   532 // The UID identifying this player
       
   533 // ----------------------------------------------------------------------------
       
   534 //
       
   535 TUid CMPXPlaybackUtility::UidL() const
       
   536     {
       
   537     }
       
   538 
       
   539 // ----------------------------------------------------------------------------
       
   540 // Path to the collection
       
   541 // ----------------------------------------------------------------------------
       
   542 //
       
   543 CMPXCollectionPlaylist* CMPXPlaybackUtility::PlaylistL()
       
   544     {
       
   545     MPX_FUNC_EX("CMPXPlaybackUtility::PlaylistL()");
       
   546     CMPXCollectionPlaylist *p = NULL;
       
   547 
       
   548     return p;
       
   549     }
       
   550 
       
   551 // ----------------------------------------------------------------------------
       
   552 // Return file handle
       
   553 // ----------------------------------------------------------------------------
       
   554 //
       
   555 RFile* CMPXPlaybackUtility::FileL()
       
   556     {
       
   557     RFile* file(NULL);
       
   558     return file;
       
   559     }
       
   560 
       
   561 // ----------------------------------------------------------------------------
       
   562 // URI of current song
       
   563 // ----------------------------------------------------------------------------
       
   564 //
       
   565 HBufC* CMPXPlaybackUtility::UriL()
       
   566     {
       
   567 		HBufC* buf=NULL;
       
   568 		return buf;
       
   569     }
       
   570 
       
   571 // ----------------------------------------------------------------------------
       
   572 // Request for media properties.
       
   573 // ----------------------------------------------------------------------------
       
   574 //
       
   575 void CMPXPlaybackUtility::MediaL(
       
   576     const TArray<TMPXAttribute>& aAttrs,
       
   577     MMPXPlaybackCallback& aCallback)
       
   578     {
       
   579     MediaL( aAttrs, aCallback, NULL );
       
   580     }
       
   581 
       
   582 // ----------------------------------------------------------------------------
       
   583 // Request for media properties.
       
   584 // ----------------------------------------------------------------------------
       
   585 //
       
   586 void CMPXPlaybackUtility::MediaL(
       
   587     const TArray<TMPXAttribute>& /* aAttrs */,
       
   588     MMPXPlaybackCallback& /* aCallback */,
       
   589     CMPXAttributeSpecs* /* aSpecs */)
       
   590     {
       
   591 
       
   592     }
       
   593 
       
   594 // ----------------------------------------------------------------------------
       
   595 // Server has completed the message, and if there's no error, the results are
       
   596 // available. The server completes with the function id (or error) so the correct
       
   597 // callback is made
       
   598 // ----------------------------------------------------------------------------
       
   599 //
       
   600 void CMPXPlaybackUtility::RunL()
       
   601     {
       
   602 
       
   603     }
       
   604 
       
   605 // ----------------------------------------------------------------------------
       
   606 // Canceling by the server
       
   607 // ----------------------------------------------------------------------------
       
   608 //
       
   609 void CMPXPlaybackUtility::DoCancel()
       
   610     {
       
   611 
       
   612     }
       
   613 
       
   614 // ----------------------------------------------------------------------------
       
   615 // Sends error message to all observers - maybe it should only be to the
       
   616 // client that calls the async method
       
   617 // ----------------------------------------------------------------------------
       
   618 //
       
   619 TInt CMPXPlaybackUtility::RunError(TInt /* aError */)
       
   620     {
       
   621     return KErrNone;
       
   622     }
       
   623 
       
   624 // ----------------------------------------------------------------------------
       
   625 // Distributes messages to all observers
       
   626 // ----------------------------------------------------------------------------
       
   627 //
       
   628 void CMPXPlaybackUtility::MessageReceived(TInt /* aMsgData */, TInt /* aError */)
       
   629     {
       
   630 
       
   631     }
       
   632 
       
   633 // ----------------------------------------------------------------------------
       
   634 // Distributes messages to all observers
       
   635 // ----------------------------------------------------------------------------
       
   636 //
       
   637 void CMPXPlaybackUtility::HandleMessageL(TInt /* aMsgData */, TInt /* aError */)
       
   638     {
       
   639 
       
   640     }
       
   641 
       
   642 // ----------------------------------------------------------------------------
       
   643 //  Handle error in RunL
       
   644 // ----------------------------------------------------------------------------
       
   645 //
       
   646 void CMPXPlaybackUtility::HandleRunErrorL(TInt /* aError */)
       
   647     {
       
   648 
       
   649     }
       
   650 
       
   651 
       
   652 // ----------------------------------------------------------------------------
       
   653 // Read a buffer from server
       
   654 // ----------------------------------------------------------------------------
       
   655 //
       
   656 HBufC* CMPXPlaybackUtility::DesL(TInt /* aSize */)
       
   657     {
       
   658     HBufC* des=NULL;
       
   659 
       
   660     return des;
       
   661     }
       
   662 
       
   663 // ----------------------------------------------------------------------------
       
   664 // Adds a sync request to the queue: if there is no outstanding request,
       
   665 // it will be executed immediately
       
   666 // ----------------------------------------------------------------------------
       
   667 //
       
   668 void CMPXPlaybackUtility::AddRequestL(TMPXPlaybackServerOp /*aFunction */,
       
   669                                       MMPXPlaybackCallback* /* aCallback */,
       
   670                                       TInt /* aParamData */,
       
   671                                       CBufBase* /* aBuf */,
       
   672                                       TAny* /* aPtr */,
       
   673                                       CBase* /* aAlivePtr */)
       
   674     {
       
   675 
       
   676     }
       
   677 
       
   678 // ----------------------------------------------------------------------------
       
   679 // Executes the next request in the queue.
       
   680 // ----------------------------------------------------------------------------
       
   681 //
       
   682 void CMPXPlaybackUtility::ExecuteNextRequest()
       
   683     {
       
   684 
       
   685     }
       
   686 
       
   687 
       
   688 
       
   689 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   690 // ----------------------------------------------------------------------------
       
   691 // Inititialises with a single song, may not be part of any collection
       
   692 // ----------------------------------------------------------------------------
       
   693 //
       
   694 void CMPXPlaybackUtility::Init64L(RFile64& /* aShareableFile */)
       
   695     {
       
   696 
       
   697     }
       
   698  
       
   699 // ----------------------------------------------------------------------------
       
   700 // Inititialises with a file, may not be part of any collection
       
   701 // ----------------------------------------------------------------------------
       
   702 //
       
   703 void CMPXPlaybackUtility::InitStreaming64L(RFile64& /* aShareableFile */, const TInt /* aAccessPoint */)
       
   704     {
       
   705 
       
   706     }
       
   707 
       
   708 // ----------------------------------------------------------------------------
       
   709 // Return file handle
       
   710 // ----------------------------------------------------------------------------
       
   711 //
       
   712 RFile64* CMPXPlaybackUtility::File64L()
       
   713     {
       
   714     RFile64* file(NULL);
       
   715 
       
   716     return file;
       
   717     }
       
   718 
       
   719 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   720 
       
   721 // End of file