diff -r f05641c183ff -r 43824b19ee35 bluetoothengine/btui/btuidelegate/btdelegatefactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btui/btuidelegate/btdelegatefactory.h Fri May 14 16:01:46 2010 +0300 @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef BTDELEGATEFACTORY_H +#define BTDELEGATEFACTORY_H + +#include +#include "btdelegateconsts.h" + +class BtAbstractDelegate; +class BtuiModel; + +#ifdef BUILD_BTUIDELEGATE +#define BTUIDELEGATE_IMEXPORT Q_DECL_EXPORT +#else +#define BTUIDELEGATE_IMEXPORT Q_DECL_IMPORT +#endif + +/*! + \class BtDelegateFactory + \brief the base class for creating concrete delegate instances + + \\sa btuidelegate + */ +class BTUIDELEGATE_IMEXPORT BtDelegateFactory +{ + +public: + static BtAbstractDelegate *newDelegate( + BtDelegate::Command cmd, BtuiModel& model, QObject *parent = 0 ); + +}; + +#endif // BTDELEGATEFACTORY_H