engine/collectionframework/datasource/plugins/glxdatasourcemde/inc/glxdatasourcemde.inl
changeset 71 27f2d7aec52a
parent 69 45459746d5e8
child 72 0a8e959402e5
equal deleted inserted replaced
69:45459746d5e8 71:27f2d7aec52a
     1 /*
       
     2 * Copyright (c) 2006 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 // ----------------------------------------------------------------------------
       
    37 //  CGlxDataSourceMde::ThumbnailCreator
       
    38 // ----------------------------------------------------------------------------
       
    39 // 
       
    40 CGlxtnThumbnailCreator& CGlxDataSourceMde::ThumbnailCreator() const
       
    41     {
       
    42     return *iThumbnailCreator;
       
    43     }
       
    44 
       
    45 // ----------------------------------------------------------------------------
       
    46 //  CGlxDataSourceMde::ThumbnailDatabase
       
    47 // ----------------------------------------------------------------------------
       
    48 // 
       
    49 CGlxtnThumbnailDatabase& CGlxDataSourceMde::ThumbnailDatabase() const
       
    50     {
       
    51     return *iThumbnailDatabase;
       
    52     }
       
    53 
       
    54 // ----------------------------------------------------------------------------
       
    55 //  CGlxDataSourceMde::FileServerSession
       
    56 // ----------------------------------------------------------------------------
       
    57 // 
       
    58 RFs& CGlxDataSourceMde::FileServerSession()
       
    59     {
       
    60     return iFs;
       
    61     }
       
    62 
       
    63 // ----------------------------------------------------------------------------
       
    64 //  CGlxDataSourceMde::CameraAlbumId
       
    65 // ----------------------------------------------------------------------------
       
    66 // 
       
    67 const TGlxMediaId& CGlxDataSourceMde::CameraAlbumId() const
       
    68     {
       
    69     return iCameraAlbumId;
       
    70     }
       
    71 
       
    72 // ----------------------------------------------------------------------------
       
    73 //  CGlxDataSourceMde::FavoritesId
       
    74 // ----------------------------------------------------------------------------
       
    75 // 
       
    76 const TGlxMediaId& CGlxDataSourceMde::FavoritesId() const
       
    77     {
       
    78     return iFavoritesId;
       
    79     }
       
    80 
       
    81 // ----------------------------------------------------------------------------
       
    82 //  CGlxDataSourceMde::NamespaceDef
       
    83 // ----------------------------------------------------------------------------
       
    84 // 
       
    85 CMdENamespaceDef* CGlxDataSourceMde::NamespaceDef() const
       
    86     {
       
    87     return iNameSpaceDef;
       
    88     }
       
    89 
       
    90 // ----------------------------------------------------------------------------
       
    91 //  CGlxDataSourceMde::ObjectDef
       
    92 // ----------------------------------------------------------------------------
       
    93 // 
       
    94 CMdEObjectDef& CGlxDataSourceMde::ObjectDef() const
       
    95     {
       
    96     return *iObjectDef;
       
    97     }
       
    98 
       
    99 // ----------------------------------------------------------------------------
       
   100 //  CGlxDataSourceMde::ImageDef
       
   101 // ----------------------------------------------------------------------------
       
   102 // 
       
   103 CMdEObjectDef& CGlxDataSourceMde::ImageDef() const
       
   104     {
       
   105     return *iImageDef;
       
   106     }
       
   107 
       
   108 // ----------------------------------------------------------------------------
       
   109 //  CGlxDataSourceMde::VideoDef
       
   110 // ----------------------------------------------------------------------------
       
   111 // 
       
   112 CMdEObjectDef& CGlxDataSourceMde::VideoDef() const
       
   113     {
       
   114     return *iVideoDef;
       
   115     }
       
   116 
       
   117 // ----------------------------------------------------------------------------
       
   118 //  CGlxDataSourceMde::MediaDef
       
   119 // ----------------------------------------------------------------------------
       
   120 // 
       
   121 CMdEObjectDef& CGlxDataSourceMde::MediaDef() const
       
   122     {
       
   123     return *iMediaDef;
       
   124     }
       
   125 
       
   126 // ----------------------------------------------------------------------------
       
   127 //  CGlxDataSourceMde::AlbumDef
       
   128 // ----------------------------------------------------------------------------
       
   129 // 
       
   130 CMdEObjectDef& CGlxDataSourceMde::AlbumDef() const
       
   131     {
       
   132     return *iAlbumDef;
       
   133     }
       
   134 
       
   135 // ----------------------------------------------------------------------------
       
   136 //  CGlxDataSourceMde::TagDef
       
   137 // ----------------------------------------------------------------------------
       
   138 // 
       
   139 CMdEObjectDef& CGlxDataSourceMde::TagDef() const
       
   140     {
       
   141     return *iTagDef;
       
   142     }
       
   143 
       
   144 // ----------------------------------------------------------------------------
       
   145 //  CGlxDataSourceMde::MonthDef
       
   146 // ----------------------------------------------------------------------------
       
   147 //  
       
   148 CMdEObjectDef& CGlxDataSourceMde::MonthDef() const
       
   149     {
       
   150     return *iMonthDef;
       
   151     }
       
   152 
       
   153 // ----------------------------------------------------------------------------
       
   154 //  CGlxDataSourceMde::ContainsDef
       
   155 // ----------------------------------------------------------------------------
       
   156 //    
       
   157 CMdERelationDef& CGlxDataSourceMde::ContainsDef() const
       
   158     {
       
   159     return *iContainsDef;
       
   160     }
       
   161 
       
   162 // ---------------------------------------------------------------------------
       
   163 // CGlxDataSourceMde::LocationDef
       
   164 // ---------------------------------------------------------------------------
       
   165 //   
       
   166 CMdEObjectDef&  CGlxDataSourceMde::LocationDef() const
       
   167 	{
       
   168 	return *iLocationDef;
       
   169 	}
       
   170