ui/detailscustomwidget/detailsdescriptioneditplugin/main.cpp
changeset 48 d0b4e67b3a60
equal deleted inserted replaced
36:6481344a6d67 48:d0b4e67b3a60
       
     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 
       
    19 #include "glxdetailsdescriptionedit.h"
       
    20 #include <QtPlugin>
       
    21 #include <hbdocumentloaderplugin.h>
       
    22 
       
    23 class GlxDetailsDescriptionEditPlugin : public HbDocumentLoaderPlugin
       
    24 {
       
    25 public:
       
    26     QObject *createObject(const QString& type, const QString &name);
       
    27     QList<const QMetaObject *> supportedObjects();  
       
    28 };
       
    29 Q_EXPORT_PLUGIN(GlxDetailsDescriptionEditPlugin)
       
    30 
       
    31 QObject *GlxDetailsDescriptionEditPlugin::createObject(const QString& type, const QString &name )
       
    32 {
       
    33     if( type == GlxDetailsDescriptionEdit::staticMetaObject.className() ) {
       
    34         QObject *object = new GlxDetailsDescriptionEdit();
       
    35         object->setObjectName(name);
       
    36         return object;    
       
    37     }
       
    38     return 0;
       
    39 }
       
    40 
       
    41 QList<const QMetaObject *> GlxDetailsDescriptionEditPlugin::supportedObjects()
       
    42 {
       
    43     QList<const QMetaObject *> result;
       
    44     result.append( &GlxDetailsDescriptionEdit::staticMetaObject );
       
    45     return result;
       
    46 }
       
    47 
       
    48 // end of file 
       
    49