mmappcomponents/mediaplayersettingsengine/src/MPSettingsModel.cpp
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 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:  MPSettingsModel.cpp
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 // Version : %version: 4.1.2 %
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include    <ecom/ecom.h>
       
    26 #include    <mpsettingsmodel.h>
       
    27 
       
    28 #define KMPSettEngUidPluginInterfaceMediaSettings 0x101F857C
       
    29 
       
    30 // ============================ MEMBER FUNCTIONS ===============================
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CMPSettingsModel::NewL
       
    34 // Two-phased constructor.
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 EXPORT_C CMPSettingsModel* CMPSettingsModel::NewL(TUid aUid)
       
    38     {
       
    39     return static_cast<CMPSettingsModel*>(REComSession::CreateImplementationL
       
    40         (aUid, _FOFF(CMPSettingsModel, iDtor_ID_Key)));
       
    41     }
       
    42     
       
    43 // -----------------------------------------------------------------------------
       
    44 // CMPSettingsModel::~CMPSettingsModel
       
    45 // Destructor
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C CMPSettingsModel::~CMPSettingsModel()
       
    49     {
       
    50     REComSession::FinalClose();
       
    51     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CMPSettingsModel::ListImplementationsL
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 EXPORT_C void CMPSettingsModel::ListImplementationsL(RImplInfoPtrArray& aImplInfoArray)
       
    59     {
       
    60     const TUid pluginViewInterfaceUID = {KMPSettEngUidPluginInterfaceMediaSettings};
       
    61     REComSession::ListImplementationsL(pluginViewInterfaceUID, aImplInfoArray);
       
    62     }
       
    63 
       
    64 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    65 
       
    66 //  End of File