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