Register the plugin using the new Q_PLUGIN_METADATA macro
[profile/ivi/bluetooth-qt.git] / declarative / components.h
1 /*
2  * Copyright 2011 Intel Corporation.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at 
6  * http://www.apache.org/licenses/LICENSE-2.0
7  */
8
9 #ifndef COMPONENTS_H
10 #define COMPONENTS_H
11
12 #include <Qt/QtQml>
13 #include <QtQml/QQmlEngine>
14 #include <QtQml/QQmlExtensionPlugin>
15
16 class Components : public QQmlExtensionPlugin
17 {
18     Q_OBJECT
19     Q_PLUGIN_METADATA(IID "org.bluetooth-qt-project.Components")
20 public:
21     void registerTypes(const char *uri);
22     void initializeEngine(QQmlEngine *engine, const char *uri);
23 };
24
25 #endif // COMPONENTS_H