photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/inc/glxdatasourcemds.inl
changeset 0 4e91876724a2
child 35 420f6808bf21
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:  Inline methods for the data source MDS class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  * @internal reviewed 10/07/2007 by M Byrne
       
    23  */
       
    24 
       
    25 #include <glxpanic.h>
       
    26 
       
    27 // ----------------------------------------------------------------------------
       
    28 //  CGlxDataSourceMde::Session
       
    29 // ----------------------------------------------------------------------------
       
    30 // 
       
    31 CMdESession& CGlxDataSourceMde::Session() const
       
    32     {
       
    33     __ASSERT_DEBUG(iSessionOpen, Panic(EGlxPanicDatasourceMdeSessionNotOpen));
       
    34     return *iSession;
       
    35     }
       
    36 
       
    37 #ifndef USE_S60_TNM
       
    38 // ----------------------------------------------------------------------------
       
    39 //  CGlxDataSourceMde::ThumbnailCreator
       
    40 // ----------------------------------------------------------------------------
       
    41 // 
       
    42 CGlxtnThumbnailCreator& CGlxDataSourceMde::ThumbnailCreator() const
       
    43     {
       
    44     return *iThumbnailCreator;
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 //  CGlxDataSourceMde::ThumbnailDatabase
       
    49 // ----------------------------------------------------------------------------
       
    50 // 
       
    51 CGlxtnThumbnailDatabase& CGlxDataSourceMde::ThumbnailDatabase() const
       
    52     {
       
    53     return *iThumbnailDatabase;
       
    54     }
       
    55 #endif
       
    56 
       
    57 // ----------------------------------------------------------------------------
       
    58 //  CGlxDataSourceMde::FileServerSession
       
    59 // ----------------------------------------------------------------------------
       
    60 // 
       
    61 //const RFs& CGlxDataSourceMde::FileServerSession() const
       
    62  RFs& CGlxDataSourceMde::FileServerSession()
       
    63     {
       
    64     return iFs;
       
    65     }
       
    66 
       
    67 // ----------------------------------------------------------------------------
       
    68 //  CGlxDataSourceMde::CameraAlbumId
       
    69 // ----------------------------------------------------------------------------
       
    70 // 
       
    71 const TGlxMediaId& CGlxDataSourceMde::CameraAlbumId() const
       
    72     {
       
    73     return iCameraAlbumId;
       
    74     }
       
    75 
       
    76 // ----------------------------------------------------------------------------
       
    77 //  CGlxDataSourceMde::FavoritesId
       
    78 // ----------------------------------------------------------------------------
       
    79 // 
       
    80 const TGlxMediaId& CGlxDataSourceMde::FavoritesId() const
       
    81     {
       
    82     return iFavoritesId;
       
    83     }
       
    84 
       
    85 // ----------------------------------------------------------------------------
       
    86 //  CGlxDataSourceMde::NamespaceDef
       
    87 // ----------------------------------------------------------------------------
       
    88 // 
       
    89 CMdENamespaceDef* CGlxDataSourceMde::NamespaceDef() const
       
    90     {
       
    91     return iNameSpaceDef;
       
    92     }
       
    93 
       
    94 // ----------------------------------------------------------------------------
       
    95 //  CGlxDataSourceMde::ObjectDef
       
    96 // ----------------------------------------------------------------------------
       
    97 // 
       
    98 CMdEObjectDef& CGlxDataSourceMde::ObjectDef() const
       
    99     {
       
   100     return *iObjectDef;
       
   101     }
       
   102 
       
   103 // ----------------------------------------------------------------------------
       
   104 //  CGlxDataSourceMde::ImageDef
       
   105 // ----------------------------------------------------------------------------
       
   106 // 
       
   107 CMdEObjectDef& CGlxDataSourceMde::ImageDef() const
       
   108     {
       
   109     return *iImageDef;
       
   110     }
       
   111 
       
   112 // ----------------------------------------------------------------------------
       
   113 //  CGlxDataSourceMde::VideoDef
       
   114 // ----------------------------------------------------------------------------
       
   115 // 
       
   116 CMdEObjectDef& CGlxDataSourceMde::VideoDef() const
       
   117     {
       
   118     return *iVideoDef;
       
   119     }
       
   120 
       
   121 // ----------------------------------------------------------------------------
       
   122 //  CGlxDataSourceMde::MediaDef
       
   123 // ----------------------------------------------------------------------------
       
   124 // 
       
   125 CMdEObjectDef& CGlxDataSourceMde::MediaDef() const
       
   126     {
       
   127     return *iMediaDef;
       
   128     }
       
   129 
       
   130 // ----------------------------------------------------------------------------
       
   131 //  CGlxDataSourceMde::AlbumDef
       
   132 // ----------------------------------------------------------------------------
       
   133 // 
       
   134 CMdEObjectDef& CGlxDataSourceMde::AlbumDef() const
       
   135     {
       
   136     return *iAlbumDef;
       
   137     }
       
   138 
       
   139 // ----------------------------------------------------------------------------
       
   140 //  CGlxDataSourceMde::TagDef
       
   141 // ----------------------------------------------------------------------------
       
   142 // 
       
   143 CMdEObjectDef& CGlxDataSourceMde::TagDef() const
       
   144     {
       
   145     return *iTagDef;
       
   146     }
       
   147 
       
   148 // ----------------------------------------------------------------------------
       
   149 //  CGlxDataSourceMde::MonthDef
       
   150 // ----------------------------------------------------------------------------
       
   151 //  
       
   152 CMdEObjectDef& CGlxDataSourceMde::MonthDef() const
       
   153     {
       
   154     return *iMonthDef;
       
   155     }
       
   156 
       
   157 // ----------------------------------------------------------------------------
       
   158 //  CGlxDataSourceMde::ContainsDef
       
   159 // ----------------------------------------------------------------------------
       
   160 //    
       
   161 CMdERelationDef& CGlxDataSourceMde::ContainsDef() const
       
   162     {
       
   163     return *iContainsDef;
       
   164     }
       
   165 
       
   166 // ---------------------------------------------------------------------------
       
   167 // CGlxDataSourceMde::ContainsLocationDef
       
   168 // ---------------------------------------------------------------------------
       
   169 //   
       
   170 CMdERelationDef&  CGlxDataSourceMde::ContainsLocationDef() const
       
   171     {
       
   172     return *iContainsLocationDef;
       
   173     }
       
   174 
       
   175 // ---------------------------------------------------------------------------
       
   176 // CGlxDataSourceMde::LocationDef
       
   177 // ---------------------------------------------------------------------------
       
   178 //   
       
   179 CMdEObjectDef&  CGlxDataSourceMde::LocationDef() const
       
   180 	{
       
   181 	return *iLocationDef;
       
   182 	}
       
   183