photosgallery/collectionframework/datasource/plugins/glxdatasourcemde/inc/glxdatasourcemde.inl
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     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:    Inline methods for  Data Source MDE
       
    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 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::LocationDef
       
   167 // ---------------------------------------------------------------------------
       
   168 //   
       
   169 CMdEObjectDef&  CGlxDataSourceMde::LocationDef() const
       
   170 	{
       
   171 	return *iLocationDef;
       
   172 	}
       
   173