diff -r 7d93ee07fb27 -r c48470be1ba7 videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsdb.cpp --- a/videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsdb.cpp Thu May 27 12:53:14 2010 +0300 +++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsdb.cpp Fri Jun 11 13:39:54 2010 +0300 @@ -2,7 +2,7 @@ * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" +* under the terms of the License "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * @@ -159,15 +159,17 @@ } // --------------------------------------------------------------------------- +// CVcxMyVideosMdsDb::CVcxMyVideosMdsDb // --------------------------------------------------------------------------- // CVcxMyVideosMdsDb::CVcxMyVideosMdsDb( MVcxMyVideosMdsDbObserver* aObserver, - MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver, RFs& aFs ) + RFs& aFs, MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver ) : iFs( aFs ), iMdsDbObserver(aObserver), iAlbumsObserver(aAlbumsObserver) { } // --------------------------------------------------------------------------- +// CVcxMyVideosMdsDb::ConstructL // --------------------------------------------------------------------------- // void CVcxMyVideosMdsDb::ConstructL() @@ -274,10 +276,10 @@ // --------------------------------------------------------------------------- // CVcxMyVideosMdsDb* CVcxMyVideosMdsDb::NewL( MVcxMyVideosMdsDbObserver* aObserver, - MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver, RFs& aFs ) + RFs& aFs, MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver ) { CVcxMyVideosMdsDb* self = - CVcxMyVideosMdsDb::NewLC( aObserver, aAlbumsObserver, aFs ); + CVcxMyVideosMdsDb::NewLC( aObserver, aFs, aAlbumsObserver ); CleanupStack::Pop( self ); return self; } @@ -287,9 +289,9 @@ // --------------------------------------------------------------------------- // CVcxMyVideosMdsDb* CVcxMyVideosMdsDb::NewLC( MVcxMyVideosMdsDbObserver* aObserver, - MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver, RFs& aFs ) + RFs& aFs, MVcxMyVideosMdsAlbumsObserver* aAlbumsObserver ) { - CVcxMyVideosMdsDb* self = new( ELeave ) CVcxMyVideosMdsDb( aObserver, aAlbumsObserver, aFs ); + CVcxMyVideosMdsDb* self = new( ELeave ) CVcxMyVideosMdsDb( aObserver, aFs, aAlbumsObserver ); CleanupStack::PushL( self ); self->ConstructL(); return self; @@ -1023,8 +1025,22 @@ //16. ORIGIN, KVcxMediaMyVideosOrigin if ( aObject.Property( *iOriginPropertyDef, property, 0 ) != KErrNotFound ) { - aVideo.SetTObjectValueL( KVcxMediaMyVideosOrigin, - static_cast(property)->Value() ); + TUint8 origin = static_cast(property)->Value(); +#ifdef VIDEO_COLLECTION_PLUGIN_TB92 + if( origin != EVcxMyVideosOriginCapturedWithCamera ) + { + origin = EVcxMyVideosOriginOther; + } +#else + if ( origin != EVcxMyVideosOriginCapturedWithCamera && + origin != EVcxMyVideosOriginDownloaded + ) + { + origin = EVcxMyVideosOriginOther; + } + +#endif + aVideo.SetTObjectValueL( KVcxMediaMyVideosOrigin, origin ); } //17. DURATION, (KMPXMediaGeneralDuration can't be used since it is TInt @@ -1573,11 +1589,6 @@ iAudioLanguagePropertyDef = &(iVideoObjectDef->GetPropertyDefL( KVcxAudioLanguagePropertyName )); //14 - -#if 0 - iDownloadIdPropertyDef = &(iVideoObjectDef->GetPropertyDefL( - KVcxDownloadIdPropertyName )); //18 -#endif }