bluetoothengine/btui/btuidelegate/btdelegatefactory.h
changeset 19 43824b19ee35
child 31 a0ea99b6fa53
equal deleted inserted replaced
17:f05641c183ff 19:43824b19ee35
       
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef BTDELEGATEFACTORY_H
       
    19 #define BTDELEGATEFACTORY_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "btdelegateconsts.h"
       
    23 
       
    24 class BtAbstractDelegate;
       
    25 class BtuiModel;
       
    26 
       
    27 #ifdef BUILD_BTUIDELEGATE
       
    28 #define BTUIDELEGATE_IMEXPORT Q_DECL_EXPORT
       
    29 #else
       
    30 #define BTUIDELEGATE_IMEXPORT Q_DECL_IMPORT
       
    31 #endif
       
    32 
       
    33 /*!
       
    34     \class BtDelegateFactory
       
    35     \brief the base class for creating concrete delegate instances
       
    36 
       
    37     \\sa btuidelegate
       
    38  */
       
    39 class BTUIDELEGATE_IMEXPORT BtDelegateFactory
       
    40 {
       
    41 
       
    42 public:
       
    43     static BtAbstractDelegate *newDelegate( 
       
    44             BtDelegate::Command cmd, BtuiModel& model, QObject *parent = 0 );
       
    45 
       
    46 };
       
    47 
       
    48 #endif // BTDELEGATEFACTORY_H