locationmapnavfw/library/src/mnprovider.cpp
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005-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:  CMnProvider class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include "mnprovider.h"
       
    22 #include "mnproviderimpl.h"
       
    23 
       
    24 // ======== LOCAL FUNCTIONS ========
       
    25 
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CMnProvider::CMnProvider()
       
    32     {
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 CMnProvider::CMnProvider( CMnProvider& )
       
    39     {
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 EXPORT_C CMnProvider::~CMnProvider()
       
    46     {
       
    47     }
       
    48 
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 EXPORT_C TUid CMnProvider::Uid() const
       
    54     {
       
    55     return iUid;
       
    56     }
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // ---------------------------------------------------------------------------
       
    60 //
       
    61 EXPORT_C TVersion CMnProvider::Version() const
       
    62     {
       
    63     return iVersion;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 EXPORT_C void CMnProvider::GetName( TPtrC& aName ) const
       
    70     {
       
    71     if ( iName )
       
    72         {
       
    73         aName.Set( iName->Des() );
       
    74         }
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 EXPORT_C void CMnProvider::GetShortName( TPtrC& aShortName ) const
       
    81     {
       
    82     if ( iShortName )
       
    83         {
       
    84         aShortName.Set( iShortName->Des() );
       
    85         }
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // ---------------------------------------------------------------------------
       
    90 //
       
    91 EXPORT_C void CMnProvider::GetVendorName( TPtrC& aVendorName ) const
       
    92     {
       
    93     if ( iVendorName )
       
    94         {
       
    95         aVendorName.Set( iVendorName->Des() );
       
    96         }
       
    97     }
       
    98 
       
    99 // ---------------------------------------------------------------------------
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 EXPORT_C CMnProvider::TServices CMnProvider::SupportedServices() const
       
   103     {
       
   104     return iServices;
       
   105     }
       
   106 
       
   107 // ---------------------------------------------------------------------------
       
   108 // ---------------------------------------------------------------------------
       
   109 //
       
   110 EXPORT_C TUint32 CMnProvider::SupportedFeatures( TService /*aService*/ ) const
       
   111     {
       
   112     return 0;
       
   113     }