videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/vcxmyvideoscollectionutil.cpp
branchRCL_3
changeset 15 8f0df5c82986
child 16 67eb01668b0e
equal deleted inserted replaced
14:55fa1ec415c6 15:8f0df5c82986
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <mpxmedia.h>
       
    23 #include <mpxmediaarray.h>
       
    24 #include <mpxlog.h>
       
    25 #include <mpxmediacontainerdefs.h>
       
    26 #include <mpxmediageneraldefs.h>
       
    27 #include <vcxmyvideosdefs.h>
       
    28 #include <mpxmessagecontainerdefs.h>
       
    29 #include <bautils.h>
       
    30 #include <mpxmediavideodefs.h>
       
    31 #ifdef _DEBUG
       
    32 #include <flogger.h>
       
    33 #include <f32file.h> 
       
    34 #endif
       
    35 #include "vcxmyvideoscollectionutil.h"
       
    36 
       
    37 // ============================ MEMBER FUNCTIONS ==============================
       
    38 
       
    39 // ----------------------------------------------------------------------------
       
    40 // CVcxMyVideosCollectionUtil::CreateEmptyMediaListL
       
    41 // ----------------------------------------------------------------------------
       
    42 //
       
    43 CMPXMedia* TVcxMyVideosCollectionUtil::CreateEmptyMediaListL()
       
    44     {
       
    45     RArray<TInt> supportedIds;
       
    46     CleanupClosePushL( supportedIds ); // 1->
       
    47                 
       
    48     supportedIds.AppendL( KMPXMediaIdContainer );
       
    49     supportedIds.AppendL( KMPXMediaIdGeneral );
       
    50 
       
    51     //create container
       
    52     CMPXMedia* container = CMPXMedia::NewL( supportedIds.Array() );
       
    53     CleanupStack::PushL( container ); // 2->
       
    54 
       
    55     CMPXMediaArray* mediaArray = CMPXMediaArray::NewL();
       
    56     CleanupStack::PushL( mediaArray ); // 3->
       
    57 
       
    58     container->SetCObjectValueL( KMPXMediaArrayContents, mediaArray );
       
    59 
       
    60     CleanupStack::PopAndDestroy( mediaArray );    // <-3
       
    61     CleanupStack::Pop( container );               // <-2    
       
    62     CleanupStack::PopAndDestroy( &supportedIds ); // <-1
       
    63     return container;
       
    64     }
       
    65 
       
    66 // ----------------------------------------------------------------------------
       
    67 // CVcxMyVideosCollectionUtil::CreateEmptyMessageListL
       
    68 // ----------------------------------------------------------------------------
       
    69 //
       
    70 CMPXMedia* TVcxMyVideosCollectionUtil::CreateEmptyMessageListL()
       
    71     {
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // TVcxMyVideosCollectionUtil::CopyFromListToListL
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 void TVcxMyVideosCollectionUtil::CopyFromListToListL(
       
    79         CMPXMedia& aFromList,
       
    80         CMPXMedia& aToList,
       
    81         RArray<TUint32>& aMdsIds )
       
    82     {
       
    83     }
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // TVcxMyVideosCollectionUtil::CopyFromListToListL
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 void TVcxMyVideosCollectionUtil::CopyFromListToListL(
       
    90         RArray<CMPXMedia*>& aFromArray,
       
    91         CMPXMedia& aToList,
       
    92         RArray<TUint32>& aMdsIds )
       
    93     {
       
    94     }
       
    95     
       
    96 // ---------------------------------------------------------------------------
       
    97 // This helper function converts drive letter to drive number
       
    98 // ---------------------------------------------------------------------------
       
    99 //
       
   100 TInt TVcxMyVideosCollectionUtil::DriveLetter2DriveNumber( const TDesC &aDrive )
       
   101     {
       
   102     }
       
   103 
       
   104 // ---------------------------------------------------------------------------
       
   105 // TVcxMyVideosCollectionUtil::MakeUniqueFileNameL
       
   106 // ---------------------------------------------------------------------------
       
   107 //
       
   108 void TVcxMyVideosCollectionUtil::MakeUniqueFileNameL( RFs& aFs, const TDesC& aPath,
       
   109         TDes& aUniquePath )
       
   110     {
       
   111     }
       
   112 
       
   113 // ----------------------------------------------------------------------------
       
   114 // TVcxMyVideosCollectionUtil::OriginL
       
   115 // ----------------------------------------------------------------------------
       
   116 //
       
   117 TUint8 TVcxMyVideosCollectionUtil::OriginL( CMPXMedia& aVideo )
       
   118     {
       
   119     }
       
   120 
       
   121 // ----------------------------------------------------------------------------
       
   122 // TVcxMyVideosCollectionUtil::FlagsL
       
   123 // ----------------------------------------------------------------------------
       
   124 //
       
   125 TUint32 TVcxMyVideosCollectionUtil::FlagsL( CMPXMedia& aVideo )
       
   126     {
       
   127     }
       
   128 
       
   129 // ----------------------------------------------------------------------------
       
   130 // TVcxMyVideosCollectionUtil::DownloadIdL
       
   131 // ----------------------------------------------------------------------------
       
   132 //
       
   133 TUint32 TVcxMyVideosCollectionUtil::DownloadIdL( CMPXMedia& aVideo )
       
   134     {
       
   135     }
       
   136 
       
   137 // ----------------------------------------------------------------------------
       
   138 // TVcxMyVideosCollectionUtil::DownloadStateL
       
   139 // ----------------------------------------------------------------------------
       
   140 //
       
   141 TVcxMyVideosDownloadState TVcxMyVideosCollectionUtil::DownloadStateL( CMPXMedia& aVideo )
       
   142     {
       
   143     }
       
   144 
       
   145 // ----------------------------------------------------------------------------
       
   146 // TVcxMyVideosCollectionUtil::IdL
       
   147 // ----------------------------------------------------------------------------
       
   148 //
       
   149 TMPXItemId TVcxMyVideosCollectionUtil::IdL( CMPXMedia& aVideo )
       
   150     {
       
   151     }
       
   152 
       
   153 
       
   154 
       
   155 // ----------------------------------------------------------------------------
       
   156 // TVcxMyVideosCollectionUtil::DurationL
       
   157 // ----------------------------------------------------------------------------
       
   158 //
       
   159 TReal32 TVcxMyVideosCollectionUtil::DurationL( CMPXMedia& aVideo )
       
   160     {
       
   161     }
       
   162 
       
   163 
       
   164 // ----------------------------------------------------------------------------
       
   165 // TVcxMyVideosCollectionUtil::Title
       
   166 // ----------------------------------------------------------------------------
       
   167 //
       
   168 const TDesC& TVcxMyVideosCollectionUtil::Title( CMPXMedia& aVideo )
       
   169     {                            
       
   170     }
       
   171 
       
   172 // ----------------------------------------------------------------------------
       
   173 // TVcxMyVideosCollectionUtil::RatingL
       
   174 // ----------------------------------------------------------------------------
       
   175 //
       
   176 TUint8 TVcxMyVideosCollectionUtil::RatingL( CMPXMedia& aVideo )
       
   177     {
       
   178     }
       
   179 
       
   180 // ----------------------------------------------------------------------------
       
   181 // TVcxMyVideosCollectionUtil::AudioFourCcL
       
   182 // ----------------------------------------------------------------------------
       
   183 //
       
   184 TUint32 TVcxMyVideosCollectionUtil::AudioFourCcL( CMPXMedia& aVideo )
       
   185     {
       
   186     }
       
   187 
       
   188 // ----------------------------------------------------------------------------
       
   189 // TVcxMyVideosCollectionUtil::AreSupported
       
   190 // ----------------------------------------------------------------------------
       
   191 //
       
   192 TBool TVcxMyVideosCollectionUtil::AreSupported( CMPXMedia& aVideo,
       
   193         const TArray<TMPXAttribute>& aAttrs,
       
   194         TBool& aNonSupportedAttrCanBeFoundFromMds )
       
   195     {
       
   196     }
       
   197 
       
   198 // ----------------------------------------------------------------------------
       
   199 // TVcxMyVideosCollectionUtil::AttrBelongsToFullSet
       
   200 // ----------------------------------------------------------------------------
       
   201 //
       
   202 TBool TVcxMyVideosCollectionUtil::AttrBelongsToFullSet( const TMPXAttribute& aAttr )
       
   203     {
       
   204     }
       
   205 
       
   206 // ----------------------------------------------------------------------------
       
   207 // TVcxMyVideosCollectionUtil::Origin
       
   208 // ----------------------------------------------------------------------------
       
   209 //
       
   210 TInt TVcxMyVideosCollectionUtil::Origin( TInt aCategoryId )
       
   211     {
       
   212     }
       
   213     
       
   214 #ifdef _DEBUG
       
   215 // ----------------------------------------------------------------------------
       
   216 // TVcxMyVideosCollectionUtil::PrintOpenFileHandlesL
       
   217 // ----------------------------------------------------------------------------
       
   218 //
       
   219 void TVcxMyVideosCollectionUtil::PrintOpenFileHandlesL( const TDesC& aFileName, RFs& aFs )
       
   220     {
       
   221     }   
       
   222 
       
   223 // ----------------------------------------------------------------------------
       
   224 // TVcxMyVideosCollectionUtil::GetProcessName
       
   225 // ----------------------------------------------------------------------------
       
   226 //
       
   227 void TVcxMyVideosCollectionUtil::GetProcessName( TInt aThreadId, TFullName& aProcessName )
       
   228     {
       
   229     }   
       
   230 #endif
       
   231    
       
   232 // End of file