diff --git a/src/scripts/CMakeLists.txt b/src/scripts/CMakeLists.txt index 76e9f885..514a3ac5 100644 --- a/src/scripts/CMakeLists.txt +++ b/src/scripts/CMakeLists.txt @@ -1,13 +1,22 @@ function(install_python_script name) if (ENABLE_PYTHON_PLUGINS) install( DIRECTORY ${name} DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python" FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE ) install(FILES i18n.py DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python/${name}") endif() endfunction() +function(install_qml_script name) + install( + DIRECTORY ${name} + DESTINATION "${FALKON_INSTALL_PLUGINDIR}/qml" + ) +endfunction() + install_python_script(hellopython) install_python_script(runaction) + +install_qml_script(helloqml) diff --git a/src/scripts/helloqml/helloqml.qml b/src/scripts/helloqml/helloqml.qml new file mode 100644 index 00000000..22866e42 --- /dev/null +++ b/src/scripts/helloqml/helloqml.qml @@ -0,0 +1,15 @@ +import org.kde.falkon 1.0 as Falkon + +Falkon.PluginInterface { + init: function(state, settingsPath){ + console.log(__name__ + " Plugin loaded") + } + + testPlugin: function() { + return true + } + + unload: function() { + console.log("Bye!") + } +} \ No newline at end of file diff --git a/src/scripts/helloqml/metadata.desktop b/src/scripts/helloqml/metadata.desktop new file mode 100644 index 00000000..b4db887b --- /dev/null +++ b/src/scripts/helloqml/metadata.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Hello Qml +Comment=Sample Qml Plugin +Icon= +Type=Service +X-Falkon-Author=Anmol Gautam +X-Falkon-Email=tarptaeya@gmail.com +X-Falkon-Version=0.1.0 +X-Falkon-Settings=false +X-Falkon-EntryPoint=helloqml.qml