diff -r 000000000000 -r 4e91876724a2 photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/inc/glxdatasourcemds.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/inc/glxdatasourcemds.inl Thu Dec 17 08:45:44 2009 +0200 @@ -0,0 +1,183 @@ +/* +* Copyright (c) 2008-2009 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" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Inline methods for the data source MDS class +* +*/ + + + + +/** + * @internal reviewed 10/07/2007 by M Byrne + */ + +#include + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::Session +// ---------------------------------------------------------------------------- +// +CMdESession& CGlxDataSourceMde::Session() const + { + __ASSERT_DEBUG(iSessionOpen, Panic(EGlxPanicDatasourceMdeSessionNotOpen)); + return *iSession; + } + +#ifndef USE_S60_TNM +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::ThumbnailCreator +// ---------------------------------------------------------------------------- +// +CGlxtnThumbnailCreator& CGlxDataSourceMde::ThumbnailCreator() const + { + return *iThumbnailCreator; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::ThumbnailDatabase +// ---------------------------------------------------------------------------- +// +CGlxtnThumbnailDatabase& CGlxDataSourceMde::ThumbnailDatabase() const + { + return *iThumbnailDatabase; + } +#endif + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::FileServerSession +// ---------------------------------------------------------------------------- +// +//const RFs& CGlxDataSourceMde::FileServerSession() const + RFs& CGlxDataSourceMde::FileServerSession() + { + return iFs; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::CameraAlbumId +// ---------------------------------------------------------------------------- +// +const TGlxMediaId& CGlxDataSourceMde::CameraAlbumId() const + { + return iCameraAlbumId; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::FavoritesId +// ---------------------------------------------------------------------------- +// +const TGlxMediaId& CGlxDataSourceMde::FavoritesId() const + { + return iFavoritesId; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::NamespaceDef +// ---------------------------------------------------------------------------- +// +CMdENamespaceDef* CGlxDataSourceMde::NamespaceDef() const + { + return iNameSpaceDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::ObjectDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::ObjectDef() const + { + return *iObjectDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::ImageDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::ImageDef() const + { + return *iImageDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::VideoDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::VideoDef() const + { + return *iVideoDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::MediaDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::MediaDef() const + { + return *iMediaDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::AlbumDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::AlbumDef() const + { + return *iAlbumDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::TagDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::TagDef() const + { + return *iTagDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::MonthDef +// ---------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::MonthDef() const + { + return *iMonthDef; + } + +// ---------------------------------------------------------------------------- +// CGlxDataSourceMde::ContainsDef +// ---------------------------------------------------------------------------- +// +CMdERelationDef& CGlxDataSourceMde::ContainsDef() const + { + return *iContainsDef; + } + +// --------------------------------------------------------------------------- +// CGlxDataSourceMde::ContainsLocationDef +// --------------------------------------------------------------------------- +// +CMdERelationDef& CGlxDataSourceMde::ContainsLocationDef() const + { + return *iContainsLocationDef; + } + +// --------------------------------------------------------------------------- +// CGlxDataSourceMde::LocationDef +// --------------------------------------------------------------------------- +// +CMdEObjectDef& CGlxDataSourceMde::LocationDef() const + { + return *iLocationDef; + } +