equal
deleted
inserted
replaced
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include "btdelegateconsts.h" |
22 #include "btdelegateconsts.h" |
23 |
23 |
24 class BtAbstractDelegate; |
24 class BtAbstractDelegate; |
25 class BtuiModel; |
25 class BtSettingModel; |
|
26 class BtDeviceModel; |
26 |
27 |
27 #ifdef BUILD_BTUIDELEGATE |
28 #ifdef BUILD_BTUIDELEGATE |
28 #define BTUIDELEGATE_IMEXPORT Q_DECL_EXPORT |
29 #define BTUIDELEGATE_IMEXPORT Q_DECL_EXPORT |
29 #else |
30 #else |
30 #define BTUIDELEGATE_IMEXPORT Q_DECL_IMPORT |
31 #define BTUIDELEGATE_IMEXPORT Q_DECL_IMPORT |
39 class BTUIDELEGATE_IMEXPORT BtDelegateFactory |
40 class BTUIDELEGATE_IMEXPORT BtDelegateFactory |
40 { |
41 { |
41 |
42 |
42 public: |
43 public: |
43 static BtAbstractDelegate *newDelegate( |
44 static BtAbstractDelegate *newDelegate( |
44 BtDelegate::Command cmd, BtuiModel& model, QObject *parent = 0 ); |
45 BtDelegate::Command cmd, |
|
46 BtSettingModel* settingModel, |
|
47 BtDeviceModel* deviceModel, |
|
48 QObject *parent = 0 ); |
45 |
49 |
46 }; |
50 }; |
47 |
51 |
48 #endif // BTDELEGATEFACTORY_H |
52 #endif // BTDELEGATEFACTORY_H |