equal
deleted
inserted
replaced
55 |
55 |
56 #include <qmobilityglobal.h> |
56 #include <qmobilityglobal.h> |
57 #include <QObject> |
57 #include <QObject> |
58 #include <QtCore/qstring.h> |
58 #include <QtCore/qstring.h> |
59 #include <QtCore/qlist.h> |
59 #include <QtCore/qlist.h> |
|
60 #include <QtCore/qpluginloader.h> |
60 |
61 |
61 QTM_BEGIN_NAMESPACE |
62 QTM_BEGIN_NAMESPACE |
62 |
63 |
63 class QSensorPluginInterface; |
64 class QSensorPluginInterface; |
64 |
65 |
65 class Q_AUTOTEST_EXPORT QSensorPluginLoader |
66 class Q_AUTOTEST_EXPORT QSensorPluginLoader |
66 { |
67 { |
67 public: |
68 public: |
68 QSensorPluginLoader(const char *iid, const QString &suffix = QString()); |
69 QSensorPluginLoader(const char *iid, const QString &suffix = QString()); |
|
70 ~QSensorPluginLoader(); |
69 |
71 |
70 QList<QSensorPluginInterface*> plugins() const { return m_plugins; } |
72 QList<QSensorPluginInterface*> plugins() const { return m_plugins; } |
71 |
73 |
72 private: |
74 private: |
73 void load(); |
75 void load(); |
74 |
76 |
75 QByteArray m_iid; |
77 QByteArray m_iid; |
76 QString m_location; |
78 QString m_location; |
77 QList<QSensorPluginInterface*> m_plugins; |
79 QList<QSensorPluginInterface*> m_plugins; |
|
80 QList<QPluginLoader *> m_loaders; |
78 }; |
81 }; |
79 |
82 |
80 QTM_END_NAMESPACE |
83 QTM_END_NAMESPACE |
81 |
84 |
82 #endif |
85 #endif |