mpx/mpxviewframeworkqt/src/mpxviewframework.cpp
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hbmainwindow.h>
       
    19 #include <hbview.h>
       
    20 
       
    21 #include <mpxviewframeworkqt.h>
       
    22 #include <mpxviewpluginresolver.h>
       
    23 #include <mpxviewpluginqt.h>
       
    24 
       
    25 MpxViewFramework::MpxViewFramework(QWidget *parent, Hb::WindowFlags windowFlags)
       
    26 :
       
    27 HbMainWindow(parent, windowFlags)
       
    28 {
       
    29 }
       
    30 
       
    31 MpxViewFramework::~MpxViewFramework()
       
    32 {
       
    33 }
       
    34 
       
    35 MpxViewPlugin *MpxViewFramework::resolvePlugin(const QList<int>& requestedPlugins)
       
    36 {
       
    37     MpxViewPlugin *viewPlugin = 0;
       
    38     MpxViewPluginResolver *viewResolver = new MpxViewPluginResolver(requestedPlugins);
       
    39     if (viewResolver!=0) {
       
    40         viewPlugin = viewResolver->resolvePlugin();
       
    41         delete viewResolver;
       
    42     }
       
    43     return viewPlugin;
       
    44 }
       
    45