Permalink
Browse files

invokeclient and invoketarget projects added

  • Loading branch information...
1 parent 60ec442 commit 51c37153973cdb7fa4d40c1a9f959f2874865c2a @johodgson johodgson committed Sep 24, 2012
Showing with 3,120 additions and 0 deletions.
  1. +210 −0 invokeclient/.cproject
  2. +90 −0 invokeclient/.project
  3. +25 −0 invokeclient/.settings/org.eclipse.cdt.core.prefs
  4. +177 −0 invokeclient/LICENSE
  5. +35 −0 invokeclient/Makefile
  6. +5 −0 invokeclient/NOTICE
  7. +51 −0 invokeclient/README.md
  8. 0 invokeclient/arm/.gitignore
  9. +80 −0 invokeclient/assets/ErrorDialog.qml
  10. +75 −0 invokeclient/assets/QueryResultSheet.qml
  11. BIN invokeclient/assets/images/background.png
  12. BIN invokeclient/assets/images/icon.png
  13. BIN invokeclient/assets/images/light.png
  14. BIN invokeclient/assets/images/nolight.png
  15. BIN invokeclient/assets/images/query.png
  16. +289 −0 invokeclient/assets/main.qml
  17. +114 −0 invokeclient/bar-descriptor.xml
  18. +4 −0 invokeclient/device-assets.xml
  19. BIN invokeclient/icon.png
  20. +51 −0 invokeclient/invokeclient.pro
  21. +36 −0 invokeclient/readme.txt
  22. +376 −0 invokeclient/src/app.cpp
  23. +133 −0 invokeclient/src/app.hpp
  24. +39 −0 invokeclient/src/main.cpp
  25. +12 −0 invokeclient/translations/Makefile
  26. +1 −0 invokeclient/translations/invokeclient.pro
  27. 0 invokeclient/x86/.gitignore
  28. +209 −0 invoketarget/.cproject
  29. +90 −0 invoketarget/.project
  30. +25 −0 invoketarget/.settings/org.eclipse.cdt.core.prefs
  31. +177 −0 invoketarget/LICENSE
  32. +35 −0 invoketarget/Makefile
  33. +5 −0 invoketarget/NOTICE
  34. +47 −0 invoketarget/README.md
  35. 0 invoketarget/arm/.gitignore
  36. +57 −0 invoketarget/assets/LabelLabel.qml
  37. BIN invoketarget/assets/images/background.png
  38. +106 −0 invoketarget/assets/main.qml
  39. +155 −0 invoketarget/bar-descriptor.xml
  40. +4 −0 invoketarget/device-assets.xml
  41. BIN invoketarget/icon.png
  42. +51 −0 invoketarget/invoketarget.pro
  43. +36 −0 invoketarget/readme.txt
  44. +166 −0 invoketarget/src/app.cpp
  45. +102 −0 invoketarget/src/app.hpp
  46. +39 −0 invoketarget/src/main.cpp
  47. +12 −0 invoketarget/translations/Makefile
  48. +1 −0 invoketarget/translations/invoketarget.pro
  49. 0 invoketarget/x86/.gitignore
View
210 invokeclient/.cproject
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.qnx.qcc.toolChain.131834024">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.131834024" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.131834024" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.131834024.1220996407" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1023647021" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1220369761" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1698682655" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1239601004" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1387720936" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1225898742" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.131834024.1599508125" incrementalBuildTarget="Device-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1397401905" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1997505107" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.626281897" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1020166724" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.1270571690" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1525461135" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1837593530" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.749204541" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.327090057">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.327090057" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.327090057" name="Device-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.327090057.374658757" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1069362049" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1842967225" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.941737115" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1376969919" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1909869085" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.2111322168" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.327090057.2036308786" incrementalBuildTarget="Device-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.302662969" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.2072123678" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.1593788880" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.824910854" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.561138894" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.594449342" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1119575885" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.1826130776" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.2110965992">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.2110965992" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.2110965992" name="Device-Release" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.2110965992.1339401169" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1309643387" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1082239219" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1692918946" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1330465010" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.409935756" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.851633316" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Release" enableAutoBuild="true" id="com.qnx.qcc.toolChain.2110965992.1100821226" incrementalBuildTarget="Device-Release" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1681743531" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.610056313" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.1040987172" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1267367924" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.761814584" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.2044236716" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.904707355" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.1456003958" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1696152496">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1696152496" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1696152496" name="Simulator-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1696152496.541265572" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1942277228" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.715607906" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.31073479" name="Target CPU:" superClass="com.qnx.qcc.option.cpu"/>
+ <option id="com.qnx.qcc.option.compiler.614147058" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.8803014" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1145028000" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Simulator-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.1696152496.1918215702" incrementalBuildTarget="Simulator-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1799323163" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1666833790" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.1333127749" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.700392909" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.2007727032" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1924264481" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.889495757" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.1893647082" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="invokeclient.null.1930615814" name="invokeclient"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.327090057">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1696152496">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.2110965992">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.131834024">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+ <storageModule moduleId="refreshScope"/>
+</cproject>
View
90 invokeclient/.project
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>invokeclient</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ <nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>com.rim.tad.tools.qml.core.qmlNature</nature>
+ </natures>
+</projectDescription>
View
25 invokeclient/.settings/org.eclipse.cdt.core.prefs
@@ -0,0 +1,25 @@
+eclipse.preferences.version=1
+environment/project/com.qnx.qcc.toolChain.1696152496/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1696152496/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1696152496/CPULIST/value=x86
+environment/project/com.qnx.qcc.toolChain.1696152496/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.1696152496/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.1696152496/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.1696152496/append=true
+environment/project/com.qnx.qcc.toolChain.1696152496/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.2110965992/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.2110965992/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.2110965992/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.2110965992/EXCLUDE_VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.2110965992/EXCLUDE_VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.2110965992/EXCLUDE_VARIANTLIST/value=r
+environment/project/com.qnx.qcc.toolChain.2110965992/append=true
+environment/project/com.qnx.qcc.toolChain.2110965992/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.327090057/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.327090057/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.327090057/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.327090057/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.327090057/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.327090057/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.327090057/append=true
+environment/project/com.qnx.qcc.toolChain.327090057/appendContributed=true
View
177 invokeclient/LICENSE
@@ -0,0 +1,177 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
View
35 invokeclient/Makefile
@@ -0,0 +1,35 @@
+QMAKE_TARGET = invokeclient
+QMAKE = $(QNX_HOST)/usr/bin/qmake
+TARGET = $(QMAKE_TARGET)
+
+
+all: Makefile $(QMAKE_TARGET)
+
+clean:
+ $(MAKE) -C ./arm -f Makefile sureclean
+ $(MAKE) -C ./x86 -f Makefile sureclean
+
+
+Makefile: FORCE
+ $(QMAKE) -spec unsupported/blackberry-armv7le-g++ -o arm/Makefile $(QMAKE_TARGET).pro CONFIG+=device
+ $(QMAKE) -spec unsupported/blackberry-x86-g++ -o x86/Makefile $(QMAKE_TARGET).pro CONFIG+=simulator
+ $(MAKE) -C ./translations -f Makefile update release
+
+FORCE:
+
+$(QMAKE_TARGET): device simulator
+
+device:
+ $(MAKE) -C ./arm -f Makefile all
+
+Device-Debug: Makefile
+ $(MAKE) -C ./arm -f Makefile debug
+
+Device-Release: Makefile
+ $(MAKE) -C ./arm -f Makefile release
+
+simulator:
+ $(MAKE) -C ./x86 -f Makefile all
+
+Simulator-Debug: Makefile
+ $(MAKE) -C ./x86 -f Makefile debug
View
5 invokeclient/NOTICE
@@ -0,0 +1,5 @@
+Invoke Client
+Copyright (c) 2011 Research In Motion Limited (http://www.rim.com/)
+
+This product includes software developed at
+Research In Motion Limited (http://www.rim.com/).
View
51 invokeclient/README.md
@@ -0,0 +1,51 @@
+# Invoke Client
+
+Demonstrates the Invocation Framework of BlackBerry 10. This app acts as a client that can invoke target apps registered with the Invocation Framework. Easiest way to take it for a spin is to also download Invoke Target sample application.
+
+**Feature Summary**
+
+ - Choose Target type
+ - Choose/specify Invoke Action
+ - Specify MIME type
+ - Specify URI
+ - Specify Target ID to perform Bound Invocation
+ - Query for Invocation Targets based on the above configs
+ - Perform Brokered/Unbound Invocation based on the above configs
+
+**Author(s)**
+
+* [Shadid Haque](https://github.com/shaque)
+
+**Requirements**
+
+ - BlackBerry Native SDK 10.0.06 beta
+ - BlackBerry 10 Dev Alpha device running 10.0.06 OS
+
+
+**Importing a project into the Native SDK**
+
+ 1. From the the Sample apps page, download and extract the sample application.
+ 2. Launch the Native SDK.
+ 3. On the File menu, click Import.
+ 4. Expand General, and select Existing Projects into Workspace. Click Next.
+ 5. Browse to the location where you extracted the sample app, and click OK.
+ The sample project should display in the the Projects section.
+ 6. Click Finish to import the project into your workspace.
+
+
+ **To contribute code to this repository you must be [signed up as an official contributor](http://blackberry.github.com/howToContribute.html).**
+
+
+## Contributing Changes
+
+Please see the [README](https://github.com/blackberry/Samples-for-Java) of the Samples-for-Java repository for instructions on how to add new Samples or make modifications to existing Samples.
+
+
+## Bug Reporting and Feature Requests
+
+If you find a bug in a Sample, or have an enhancement request, simply file an [Issue](https://github.com/blackberry/Samples-for-Java/issues) for the Sample and send a message (via github messages) to the Sample Author(s) to let them know that you have filed an [Issue](https://github.com/blackberry/Samples-for-Java/issues).
+
+
+## Disclaimer
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
0 invokeclient/arm/.gitignore
No changes.
View
80 invokeclient/assets/ErrorDialog.qml
@@ -0,0 +1,80 @@
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/import bb.cascades 1.0
+
+import bb.cascades 1.0
+
+Dialog {
+ id: root
+
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ layout: DockLayout {}
+
+ ImageView {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ imageSource: "asset:///images/background.png"
+ }
+
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Center
+
+ Label {
+ horizontalAlignment: HorizontalAlignment.Center
+
+ text: qsTr ("An Error Occurred")
+ textStyle {
+ base: SystemDefaults.TextStyles.BigText
+ }
+ }
+
+//! [0]
+ Label {
+ horizontalAlignment: HorizontalAlignment.Center
+ topMargin: 100
+
+ text: _app.errorMessage
+ multiline: true
+ }
+//! [0]
+
+ Button {
+ horizontalAlignment: HorizontalAlignment.Center
+ topMargin: 100
+
+ text: qsTr ("OK")
+
+ onClicked: {
+ _app.clearError()
+ root.close()
+ }
+ }
+ }
+ }
+
+//! [1]
+ function handleErrorMessage()
+ {
+ if (_app.errorMessage != "")
+ root.open()
+ }
+
+ onCreationCompleted: _app.errorMessageChanged.connect(handleErrorMessage)
+//! [1]
+}
View
75 invokeclient/assets/QueryResultSheet.qml
@@ -0,0 +1,75 @@
+
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/import bb.cascades 1.0
+
+import bb.cascades 1.0
+
+Sheet {
+ id: root
+
+//! [0]
+ onCreationCompleted: {
+ _app.queryFinished.connect(root.open)
+ _app.closeQueryResults.connect(root.close)
+ }
+//! [0]
+
+ Page {
+ Container {
+ layout: DockLayout {}
+
+ ImageView {
+ imageSource: "asset:///images/background.png"
+ }
+
+ Container {
+ topPadding: 50
+ leftPadding: 50
+ rightPadding: 50
+ bottomPadding: 50
+
+ Button {
+ horizontalAlignment: HorizontalAlignment.Center
+
+ text: qsTr ("Close")
+ onClicked: root.close()
+ }
+
+ Divider {}
+
+//! [1]
+ ListView {
+ horizontalAlignment: HorizontalAlignment.Fill
+
+ dataModel: _app.model
+
+ listItemComponents: ListItemComponent {
+ type: "item"
+
+ StandardListItem {
+ title: ListItemData.label
+ imageSource: ListItemData.imageSource
+ }
+ }
+
+ onTriggered: {
+ _app.invokeTarget(dataModel.data(indexPath).name)
+ }
+ }
+//! [1]
+ }
+ }
+ }
+}
View
BIN invokeclient/assets/images/background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN invokeclient/assets/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN invokeclient/assets/images/light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN invokeclient/assets/images/nolight.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN invokeclient/assets/images/query.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
289 invokeclient/assets/main.qml
@@ -0,0 +1,289 @@
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/import bb.cascades 1.0
+
+Page {
+//! [0]
+ actions: [
+ ActionItem {
+ title: qsTr ("Invoke (best-fit)")
+ imageSource: "asset:///images/icon.png"
+ ActionBar.placement: ActionBarPlacement.OnBar
+ onTriggered: {
+ _app.invoke()
+ }
+ },
+ ActionItem {
+ title: qsTr ("Query")
+ imageSource: "asset:///images/query.png"
+ ActionBar.placement: ActionBarPlacement.OnBar
+ onTriggered: {
+ _app.query()
+ }
+ },
+ InvokeActionItem {
+ ActionBar.placement: ActionBarPlacement.OnBar
+ query {
+ mimeType: "image/png"
+ invokeActionId: "bb.action.OPEN"
+ }
+ },
+ InvokeActionItem {
+ title: qsTr ("OpenImage1")
+ ActionBar.placement: ActionBarPlacement.OnBar
+ query {
+ mimeType: "image/png"
+ invokeActionId: "bb.action.OPEN"
+ invokeTargetId: "com.example.bb10samples.invocation.openimage1"
+ }
+ },
+ InvokeActionItem {
+ title: qsTr ("OpenImage2")
+ ActionBar.placement: ActionBarPlacement.OnBar
+ query {
+ mimeType: "image/png"
+ invokeActionId: "bb.action.OPEN"
+ invokeTargetId: "com.example.bb10samples.invocation.openimage2"
+ }
+ }
+ ]
+//! [0]
+
+ Container {
+ layout: DockLayout {}
+
+ ImageView {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ imageSource: "asset:///images/background.png"
+ }
+
+ ScrollView {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ scrollViewProperties {
+ scrollMode: ScrollMode.Vertical
+ }
+
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Fill
+
+ topPadding: 50
+ leftPadding: 50
+ rightPadding: 50
+
+//! [1]
+ DropDown {
+ horizontalAlignment: HorizontalAlignment.Fill
+
+ title: qsTr ("Invocation Type:")
+
+ Option {
+ selected: true
+ text: qsTr ("All")
+ description: qsTr ("All types of invocation targets.")
+ value: 0
+ }
+
+ Option {
+ text: qsTr ("Application")
+ description: qsTr ("Targets that launch in a new window.")
+ value: 1
+ }
+
+ Option {
+ text: qsTr ("Viewer")
+ description: qsTr ("Targets that launch embedded.")
+ value: 2
+ }
+
+ Option {
+ text: qsTr ("Service")
+ description: qsTr ("Targets that launch in background.")
+ value: 3
+ }
+
+ Option {
+ text: qsTr ("Card")
+ description: qsTr ("Targets that embeds as Card.")
+ value: 3
+ }
+
+ onSelectedValueChanged: {
+ _app.targetType = selectedValue
+ }
+ }
+//! [1]
+
+ Container {
+ horizontalAlignment: HorizontalAlignment.Center
+
+ layout: DockLayout {}
+
+ ImageView {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Top
+
+ imageSource: "asset:///images/nolight.png"
+ }
+
+ ImageView {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Top
+
+ imageSource: "asset:///images/light.png"
+
+ animations: [
+ FadeTransition {
+ id: fadeout
+ fromOpacity: 1
+ toOpacity: 0
+ duration: 300
+ onEnded: {
+ fadein.play();
+ }
+ },
+ FadeTransition {
+ id: fadein
+ duration: fadeout.duration
+ fromOpacity: 0
+ toOpacity: 1
+ easingCurve: StockCurve.BounceInOut
+ onEnded: {
+ fadeout.play();
+ }
+ }
+ ]
+ onCreationCompleted: {
+ fadeout.play();
+ }
+ }
+ }
+
+//! [2]
+ DropDown {
+ id: actionSelector
+
+ horizontalAlignment: HorizontalAlignment.Fill
+
+ title: qsTr ("Action:")
+
+ Option {
+ selected: true
+ text: qsTr ("All")
+ description: qsTr ("Valid for queries only.")
+ value: "__All"
+ }
+
+ Option {
+ selected: true
+ text: qsTr ("Menu Actions")
+ description: qsTr ("Valid for queries only.")
+ value: "__MenuActions"
+ }
+
+ Option {
+ selected: true
+ text: qsTr ("bb.action.OPEN")
+ description: qsTr ("A menu action for opening content.")
+ value: "bb.action.OPEN"
+ }
+
+ Option {
+ text: qsTr ("bb.action.SET")
+ description: qsTr ("A menu action for setting content as")
+ value: "bb.action.SET"
+ }
+
+ Option {
+ text: qsTr ("bb.action.SHARE")
+ description: qsTr ("A menu action for sharing content.")
+ value: "bb.action.SHARE"
+ }
+
+ Option {
+ text: qsTr ("Custom")
+ description: qsTr ("Specify a custom action.")
+ value: ""
+ }
+
+ onSelectedValueChanged: {
+ _app.action = selectedValue
+ }
+ }
+//! [2]
+
+ TextField {
+ visible: (actionSelector.selectedValue == "")
+ hintText: qsTr ("[Custom Action]")
+
+ onTextChanging: {
+ _app.action = text
+ }
+ }
+
+//! [3]
+ TextField {
+ hintText: qsTr ("[MIME Type]")
+ text: "image/png"
+
+ onTextChanging: {
+ _app.mimeType = text
+ }
+ }
+//! [3]
+
+ TextField {
+ hintText: qsTr ("[URI]")
+
+ onTextChanging: {
+ _app.uri = text
+ }
+ }
+
+ TextField {
+ hintText: qsTr ("[Data]")
+
+ text: qsTr ("Test data..")
+
+ onTextChanging: {
+ _app.data = text
+ }
+ }
+
+ TextField {
+ hintText: qsTr ("[Target ID - for Bound Invocation]")
+
+ onTextChanging: {
+ _app.target = text
+ }
+ }
+
+ Label {
+ text: _app.statusMessage
+ }
+ }
+ }
+
+//! [4]
+ attachedObjects: [
+ QueryResultSheet {},
+ ErrorDialog {}
+ ]
+//! [4]
+ }
+}
View
114 invokeclient/bar-descriptor.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--
+
+ Copyright (c) 2011, 2012 Research In Motion Limited.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
+
+<!-- BlackBerry Tablet OS application descriptor file.
+
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+
+-->
+
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
+ <id>com.example.bb10samples.invocation.invokeclient</id>
+
+ <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>invokeclient</name>
+
+ <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
+ Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
+ An updated version of application must have a versionNumber value higher than the previous version. Required. -->
+ <versionNumber>1.0.0</versionNumber>
+
+ <!-- Fourth digit segment of the package version. First three segments are taken from the
+ <versionNumber> element. Must be an integer from 0 to 2^16-1 -->
+ <buildId>1</buildId>
+
+ <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
+ <!-- <versionLabel></versionLabel> -->
+
+ <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <description>The invokeclient application</description>
+
+ <!-- Copyright information. Optional. -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Name of author which is used for signing. Must match the developer name of your development certificate. -->
+ <author>Example Inc.</author>
+
+ <!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
+ <!-- <authorId>ABC1234YjsnUk235h</authorId> -->
+
+ <initialWindow>
+ <systemChrome>none</systemChrome>
+ <transparent>false</transparent>
+ </initialWindow>
+
+ <!-- The category where the application appears. Either core.games or core.media. -->
+ <category>core.games</category>
+ <icon>
+ <image>icon.png</image>
+ </icon>
+ <configuration id="com.qnx.qcc.toolChain.131834024" name="Default">
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm/o.le-v7-g/invokeclient" entry="true" type="Qnx/Elf">invokeclient</asset>
+ </configuration>
+ <configuration id="com.qnx.qcc.toolChain.327090057" name="Device-Debug">
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm/o.le-v7-g/invokeclient" entry="true" type="Qnx/Elf">invokeclient</asset>
+ </configuration>
+ <configuration id="com.qnx.qcc.toolChain.2110965992" name="Device-Release">
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm/o.le-v7/invokeclient" entry="true" type="Qnx/Elf">invokeclient</asset>
+ </configuration>
+ <configuration id="com.qnx.qcc.toolChain.1696152496" name="Simulator-Debug">
+ <platformArchitecture>x86</platformArchitecture>
+ <asset path="x86/o-g/invokeclient" entry="true" type="Qnx/Elf">invokeclient</asset>
+ </configuration>
+
+ <!-- The icon for the application, which should be 86x86. -->
+
+ <asset path="assets">assets</asset>
+ <!-- The splash screen that will appear when your application is launching. Should be 1024x600. -->
+ <!-- <splashscreen></splashscreen> -->
+
+ <!-- Locale support -->
+ <asset path="translations" dest="qm">
+ <include name="*.qm"/>
+ </asset>
+ <asset path="icon.png">icon.png</asset>
+
+ <!-- Request permission to execute native code. Required for native applications. -->
+ <action system="true">run_native</action>
+ <env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
+
+ <!-- The permissions requested by your application. -->
+ <!-- <action>access_shared</action> -->
+ <!-- <action>record_audio</action> -->
+ <!-- <action>read_geolocation</action> -->
+ <!-- <action>use_camera</action> -->
+ <!-- <action>access_internet</action> -->
+ <!-- <action>play_audio</action> -->
+ <!-- <action>post_notification</action> -->
+ <!-- <action>set_audio_volume</action> -->
+ <!-- <action>read_device_identifying_information</action> -->
+
+</qnx>
View
4 invokeclient/device-assets.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<assets>
+ <target-device width="768" height="1280" ppi="356" class="phone"/>
+</assets>
View
BIN invokeclient/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
51 invokeclient/invokeclient.pro
@@ -0,0 +1,51 @@
+TEMPLATE = app
+TARGET = invokeclient
+
+CONFIG += qt warn_on debug_and_release cascades
+
+INCLUDEPATH += ../src
+SOURCES += ../src/*.cpp
+HEADERS += ../src/*.hpp ../src/*.h
+LIBS += -lbbsystem -lscreen -lbbdata
+
+lupdate_inclusion {
+ SOURCES += ../assets/*.qml
+}
+
+device {
+ CONFIG(release, debug|release) {
+ DESTDIR = o.le-v7
+ }
+ CONFIG(debug, debug|release) {
+ DESTDIR = o.le-v7-g
+ }
+}
+
+simulator {
+ CONFIG(release, debug|release) {
+ DESTDIR = o
+ }
+ CONFIG(debug, debug|release) {
+ DESTDIR = o-g
+ }
+}
+
+OBJECTS_DIR = $${DESTDIR}/.obj
+MOC_DIR = $${DESTDIR}/.moc
+RCC_DIR = $${DESTDIR}/.rcc
+UI_DIR = $${DESTDIR}/.ui
+
+suredelete.target = sureclean
+suredelete.commands = $(DEL_FILE) $${MOC_DIR}/*; $(DEL_FILE) $${RCC_DIR}/*; $(DEL_FILE) $${UI_DIR}/*
+suredelete.depends = distclean
+
+QMAKE_EXTRA_TARGETS += suredelete
+
+TRANSLATIONS = \
+ $${TARGET}_en_GB.ts \
+ $${TARGET}_fr.ts \
+ $${TARGET}_it.ts \
+ $${TARGET}_de.ts \
+ $${TARGET}_es.ts \
+ $${TARGET}.ts
+
View
36 invokeclient/readme.txt
@@ -0,0 +1,36 @@
+Invoke Client
+
+========================================================================
+Sample Description.
+
+The Invoke Client example demonstrates how to invoke functionality from
+other applications in our own program.
+
+You will learn how to:
+- Use the InvokeManager class
+- Create sheets dynamically
+- Separate the business logic from the UI
+- Handle signals from C++ objects inside QML
+
+========================================================================
+Requirements:
+
+BlackBerry 10 Native SDK Beta 3
+
+========================================================================
+Running the example:
+
+1. Clone the Sample repository.
+2. Launch BlackBerry 10 Native SDK Beta 3, and from the File menu, select Import.
+3. Expand General, and select Existing Projects into Workspace. Click Next.
+4. Browse to the location of your sample directory, and then click OK.
+5. The sample project should display in the Projects section.
+ Click Finish to import the project into your workspace.
+6. In the Project Explorer pane, Right-click the project (for example hellocascades)
+ and select Build Project.
+7. In the Project Explorer pane, Right-click the project (for example hellocascades)
+ and select Run As > BlackBerry C/C++ Application.
+8. The application will now install and launch on your device if not you might
+ have to set up your environment:
+ http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html
+
View
376 invokeclient/src/app.cpp
@@ -0,0 +1,376 @@
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "app.hpp"
+
+#include <bb/cascades/AbstractPane>
+#include <bb/cascades/Application>
+#include <bb/cascades/QmlDocument>
+#include <bb/system/InvokeAction>
+#include <bb/system/InvokeQueryTargetsReply>
+#include <bb/system/InvokeQueryTargetsRequest>
+#include <bb/system/InvokeReply>
+#include <bb/system/InvokeRequest>
+#include <bb/system/InvokeTarget>
+#include <bb/system/InvokeTargetReply>
+
+using namespace bb::cascades;
+using namespace bb::system;
+
+//! [0]
+App::App(QObject *parent)
+ : QObject(parent)
+ , m_targetType(0)
+ , m_action(QLatin1String("bb.action.OPEN"))
+ , m_mimeType(QLatin1String("image/png"))
+ , m_model(new GroupDataModel(this))
+ , m_invokeManager(new InvokeManager(this))
+{
+ // Disable item grouping in the targets result list
+ m_model->setGrouping(ItemGrouping::None);
+
+ // Create signal/slot connections to handle card status changes
+ connect(m_invokeManager, SIGNAL(childCardDone(const bb::system::CardDoneMessage&)), this, SLOT(childCardDone(const bb::system::CardDoneMessage&)));
+ connect(m_invokeManager, SIGNAL(peekStarted(bb::system::CardPeek::Type)), this, SLOT(peekStarted(bb::system::CardPeek::Type)));
+ connect(m_invokeManager, SIGNAL(peekEnded()), this, SLOT(peekEnded()));
+
+ // Load the UI from the QML file
+ QmlDocument *qml = QmlDocument::create("asset:///main.qml");
+ qml->setContextProperty("_app", this);
+
+ AbstractPane *root = qml->createRootObject<AbstractPane>();
+ Application::instance()->setScene(root);
+}
+//! [0]
+
+//! [1]
+void App::invoke()
+{
+ // Create a new invocation request
+ InvokeRequest request;
+
+ // Setup the request properties according to the current configuration
+ if (!m_action.isEmpty()) {
+ if (m_action != QLatin1String("__All") && m_action != QLatin1String("__MenuActions")) {
+ request.setAction(m_action);
+ } else if (m_target.isEmpty()) {
+ m_errorMessage = tr("[%1] is not a valid action type for an unbound invocation.").arg(m_action);
+ emit errorMessageChanged();
+ return;
+ }
+ }
+
+ if (!m_mimeType.isEmpty()) {
+ request.setMimeType(m_mimeType);
+ } else {
+ m_errorMessage = tr("MIME type must be specified!");
+ emit errorMessageChanged();
+ return;
+ }
+
+ if (!m_uri.isEmpty())
+ request.setUri(m_uri);
+
+ if (!m_data.isEmpty())
+ request.setData(m_data.toUtf8());
+
+ if (!m_target.isEmpty())
+ request.setTarget(m_target);
+
+ // Start the invocation
+ const InvokeReply *reply = m_invokeManager->invoke(request);
+ if (reply) {
+ // Ensure that processInvokeReply() is called when the invocation has finished
+ QObject::connect(reply, SIGNAL(finished()), this, SLOT(processInvokeReply()));
+ } else {
+ m_errorMessage = tr("Invoke Failed! InvokeReply is empty.");
+ emit errorMessageChanged();
+ return;
+ }
+}
+//! [1]
+
+//! [2]
+void App::query()
+{
+ // Create a new query targets request
+ InvokeQueryTargetsRequest request;
+
+ // Setup the request properties according to the current configuration
+ if (m_targetType == 0)
+ request.setTargetTypes(InvokeTarget::Application | InvokeTarget::Card | InvokeTarget::Viewer | InvokeTarget::Service);
+ else if (m_targetType == 1)
+ request.setTargetTypes(InvokeTarget::Application);
+ else if (m_targetType == 2)
+ request.setTargetTypes(InvokeTarget::Viewer);
+ else if (m_targetType == 3)
+ request.setTargetTypes(InvokeTarget::Service);
+ else if (m_targetType == 4)
+ request.setTargetTypes(InvokeTarget::Card);
+
+ if (!m_action.isEmpty()) {
+ if (m_action == QLatin1String("__All"))
+ request.setActionType(InvokeAction::All);
+ else if (m_action == QLatin1String("__MenuActions"))
+ request.setActionType(InvokeAction::Menu);
+ else
+ request.setAction(m_action);
+ }
+
+ if (m_mimeType.isEmpty() && m_uri.isEmpty()) {
+ m_errorMessage = tr("MIME type OR URI must be specified!");
+ emit errorMessageChanged();
+ return;
+ }
+
+ if (!m_mimeType.isEmpty())
+ request.setMimeType(m_mimeType);
+
+ if (!m_uri.isEmpty())
+ request.setUri(m_uri);
+
+ // Start the query
+ const InvokeReply *reply = m_invokeManager->queryTargets(request);
+
+ // Ensure that processQueryReply() is called when the query has finished
+ QObject::connect(reply, SIGNAL(finished()), this, SLOT(processQueryReply()));
+}
+//! [2]
+
+//! [3]
+void App::invokeTarget(const QString &target)
+{
+ // Setup the configuration to invoke the given target
+ m_targetType = 0;
+ m_target = target;
+
+ emit closeQueryResults();
+
+ // Trigger the invocation
+ invoke();
+}
+//! [3]
+
+void App::clearError()
+{
+ m_errorMessage.clear();
+ emit errorMessageChanged();
+}
+
+//! [4]
+void App::processInvokeReply()
+{
+ // Get the reply from the sender object
+ InvokeReply *reply = qobject_cast<InvokeReply*>(sender());
+
+ // Check for errors during invocation
+ switch (reply->error()) {
+ case InvokeReplyError::BadRequest:
+ m_errorMessage = tr("[ErrorBadRequest] Invoke Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::Internal:
+ m_errorMessage = tr("[ErrorInternal] Invoke Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::NoTarget:
+ m_errorMessage = tr("[ErrorNoTarget] Invoke Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::TargetNotOwned:
+ m_errorMessage = tr("[ErrorTargetNotOwned] Invoke Failed.");
+ emit errorMessageChanged();
+ break;
+ default:
+ break;
+ }
+
+ // Delete the reply later on
+ reply->deleteLater();
+}
+//! [4]
+
+//! [5]
+void App::processQueryReply()
+{
+ // Get the reply from the sender object
+ InvokeQueryTargetsReply *reply = qobject_cast<InvokeQueryTargetsReply*>(sender());
+
+ if (reply->error() == InvokeReplyError::None) { // If no error occurred ...
+ // Clear the target result model
+ m_model->clear();
+
+ // Iterate over the reported actions and targets
+ foreach (const InvokeAction &action, reply->actions()) {
+ foreach (const InvokeTarget &target, action.targets()) {
+ // Add one entry to the model for each target
+ QVariantMap entry;
+ entry["label"] = target.label();
+ entry["name"] = target.name();
+ entry["imageSource"] = target.icon();
+
+ m_model->insert(entry);
+ }
+ }
+
+ // Signal that the query was successful
+ emit queryFinished();
+ }
+
+ // Check for errors during invocation
+ switch (reply->error()) {
+ case InvokeReplyError::BadRequest:
+ m_errorMessage = tr("[ErrorBadRequest] Query Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::Internal:
+ m_errorMessage = tr("[ErrorInternal] Query Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::NoTarget:
+ m_errorMessage = tr("[ErrorNoTarget] Query Failed!");
+ emit errorMessageChanged();
+ break;
+ case InvokeReplyError::TargetNotOwned:
+ m_errorMessage = tr("[ErrorTargetNotOwned] Query Failed.");
+ emit errorMessageChanged();
+ break;
+ default:
+ break;
+ }
+
+ // Delete the reply later on
+ reply->deleteLater();
+}
+//! [5]
+
+void App::peekStarted(bb::system::CardPeek::Type)
+{
+ m_statusMessage = tr("Peek Status: Started");
+ emit statusMessageChanged();
+}
+
+void App::peekEnded()
+{
+ m_statusMessage = tr("Peek Status: Ended");
+ emit statusMessageChanged();
+}
+
+void App::childCardDone(const bb::system::CardDoneMessage &message)
+{
+ if (!message.data().isEmpty()) {
+ m_statusMessage = message.data();
+ emit statusMessageChanged();
+ }
+}
+
+int App::targetType() const
+{
+ return m_targetType;
+}
+
+void App::setTargetType(int targetType)
+{
+ if (m_targetType == targetType)
+ return;
+
+ m_targetType = targetType;
+ emit targetTypeChanged();
+}
+
+QString App::action() const
+{
+ return m_action;
+}
+
+void App::setAction(const QString &action)
+{
+ if (m_action == action)
+ return;
+
+ m_action = action;
+ emit actionChanged();
+}
+
+QString App::mimeType() const
+{
+ return m_mimeType;
+}
+
+void App::setMimeType(const QString &mimeType)
+{
+ if (m_mimeType == mimeType)
+ return;
+
+ m_mimeType = mimeType;
+ emit mimeTypeChanged();
+}
+
+QString App::uri() const
+{
+ return m_uri;
+}
+
+void App::setUri(const QString &uri)
+{
+ if (m_uri == uri)
+ return;
+
+ m_uri = uri;
+ emit uriChanged();
+}
+
+QString App::data() const
+{
+ return m_data;
+}
+
+void App::setData(const QString &data)
+{
+ if (m_data == data)
+ return;
+
+ m_data = data;
+ emit dataChanged();
+}
+
+QString App::target() const
+{
+ return m_target;
+}
+
+void App::setTarget(const QString &target)
+{
+ if (m_target == target)
+ return;
+
+ m_target = target;
+ emit targetChanged();
+}
+
+bb::cascades::GroupDataModel* App::model() const
+{
+ return m_model;
+}
+
+QString App::errorMessage() const
+{
+ return m_errorMessage;
+}
+
+QString App::statusMessage() const
+{
+ return m_statusMessage;
+}
View
133 invokeclient/src/app.hpp
@@ -0,0 +1,133 @@
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#ifndef APP_HPP
+#define APP_HPP
+
+#include <bb/cascades/GroupDataModel>
+#include <bb/system/CardDoneMessage>
+#include <bb/system/InvokeManager>
+
+#include <QObject>
+
+/*!
+ * @brief Application GUI object
+ */
+//! [0]
+class App : public QObject
+{
+ Q_OBJECT
+
+ // The properties to configure an invocation request
+ Q_PROPERTY(int targetType READ targetType WRITE setTargetType NOTIFY targetTypeChanged)
+ Q_PROPERTY(QString action READ action WRITE setAction NOTIFY actionChanged)
+ Q_PROPERTY(QString mimeType READ mimeType WRITE setMimeType NOTIFY mimeTypeChanged)
+ Q_PROPERTY(QString uri READ uri WRITE setUri NOTIFY uriChanged)
+ Q_PROPERTY(QString data READ data WRITE setData NOTIFY dataChanged)
+ Q_PROPERTY(QString target READ target WRITE setTarget NOTIFY targetChanged)
+
+ // The model property that lists the invocation targets query results
+ Q_PROPERTY(bb::cascades::GroupDataModel* model READ model CONSTANT)
+
+ // The current error message
+ Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged)
+
+ // The current status message
+ Q_PROPERTY(QString statusMessage READ statusMessage NOTIFY statusMessageChanged)
+
+public:
+ App(QObject *parent = 0);
+
+public Q_SLOTS:
+ // This method is called to invoke another application with the current configuration
+ void invoke();
+
+ // This method is called to query for all applications that can be invoked with the current configuration
+ void query();
+
+ // This method is called to invoke a specific application with the given @p target id
+ void invokeTarget(const QString &target);
+
+ // This method clears the current error message
+ void clearError();
+
+Q_SIGNALS:
+ // The change notification signals of the properties
+ void targetTypeChanged();
+ void actionChanged();
+ void mimeTypeChanged();
+ void uriChanged();
+ void dataChanged();
+ void targetChanged();
+ void errorMessageChanged();
+ void statusMessageChanged();
+
+ // This signal is emitted if the query() call was successful
+ void queryFinished();
+
+ // This signal is emitted to trigger a close of the query result sheet
+ void closeQueryResults();
+
+private Q_SLOTS:
+ // This slot handles the result of an invocation
+ void processInvokeReply();
+
+ // This slot handles the result of a target query
+ void processQueryReply();
+
+ // This slot updates the status message if the user has started to peek an invoked card
+ void peekStarted(bb::system::CardPeek::Type);
+
+ // This slot updates the status message if the user has finished to peek an invoked card
+ void peekEnded();
+
+ // This slot updates the status message when the invocation of a card is done
+ void childCardDone(const bb::system::CardDoneMessage&);
+
+private:
+ // The accessor methods of the properties
+ int targetType() const;
+ void setTargetType(int targetType);
+ QString action() const;
+ void setAction(const QString &action);
+ QString mimeType() const;
+ void setMimeType(const QString &mimeType);
+ QString uri() const;
+ void setUri(const QString &uri);
+ QString data() const;
+ void setData(const QString &data);
+ QString target() const;
+ void setTarget(const QString &target);
+ bb::cascades::GroupDataModel* model() const;
+ QString errorMessage() const;
+ QString statusMessage() const;
+
+ // The property values
+ int m_targetType;
+ QString m_action;
+ QString m_mimeType;
+ QString m_uri;
+ QString m_data;
+ QString m_target;
+ bb::cascades::GroupDataModel* m_model;
+ QString m_errorMessage;
+ QString m_statusMessage;
+
+ // The central object to manage invocations
+ bb::system::InvokeManager* m_invokeManager;
+};
+//! [0]
+
+#endif
View
39 invokeclient/src/main.cpp
@@ -0,0 +1,39 @@
+/* Copyright (c) 2012 Research In Motion Limited.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "app.hpp"
+
+#include <bb/cascades/Application>
+
+#include <QLocale>
+#include <QTranslator>
+
+using ::bb::cascades::Application;
+
+int main(int argc, char **argv)
+{
+ Application app(argc, argv);
+
+ QTranslator translator;
+ const QString locale_string = QLocale().name();
+ const QString filename = QString( "invokeclient_%1" ).arg(locale_string);
+ if (translator.load(filename, "app/native/qm")) {
+ app.installTranslator(&translator);
+ }
+
+ App mainApp;
+
+ return Application::exec();
+}
View
12 invokeclient/translations/Makefile
@@ -0,0 +1,12 @@
+QMAKE_TARGET = invokeclient
+LUPDATE = $(QNX_HOST)/usr/bin/lupdate
+LRELEASE = $(QNX_HOST)/usr/bin/lrelease
+
+update: $(QMAKE_TARGET).pro FORCE
+ $(LUPDATE) $(QMAKE_TARGET).pro
+
+release: $(QMAKE_TARGET).pro $(QMAKE_TARGET).ts
+ $(LRELEASE) $(QMAKE_TARGET).pro
+
+FORCE:
+
View
1 invokeclient/translations/invokeclient.pro
@@ -0,0 +1 @@
+include (../invokeclient.pro)
View
0 invokeclient/x86/.gitignore
No changes.
View
209 invoketarget/.cproject
@@ -0,0 +1,209 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.qnx.qcc.toolChain.133086530">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.133086530" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.133086530" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.133086530.1591095952" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1945316321" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1265219825" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1850160176" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.546217444" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.272209701" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1632235135" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.133086530.821067039" incrementalBuildTarget="Device-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.287946791" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1060679521" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.891044157" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.505674380" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.727817795" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.509407516" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.15239995" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.677459835" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.271873193">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.271873193" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.271873193" name="Device-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.271873193.1004961494" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1816600694" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1792155475" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.644622212" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.252181957" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.374739922" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1408409972" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.271873193.1324744966" incrementalBuildTarget="Device-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.275218443" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.57610381" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.1623926045" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1510406989" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.131155989" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1129439539" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.777822220" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.878515255" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1680652142">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1680652142" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1680652142" name="Device-Release" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1680652142.1564098971" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1231313868" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.2019389328" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1607095807" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.2051690881" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.363525651" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1700182248" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Release" enableAutoBuild="true" id="com.qnx.qcc.toolChain.1680652142.1586624132" incrementalBuildTarget="Device-Release" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1309769810" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1901270914" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.299560680" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1663392141" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.820031194" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.889225301" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1637785831" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.134627118" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1953561384">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1953561384" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1953561384" name="Simulator-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1953561384.1860558646" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.609273590" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.971988455" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1626754638" name="Target CPU:" superClass="com.qnx.qcc.option.cpu"/>
+ <option id="com.qnx.qcc.option.compiler.1066890305" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.895283433" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1079807725" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Simulator-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.1953561384.2041579601" incrementalBuildTarget="Simulator-Debug" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1038492318" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.553750103" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.includePath.1973914878" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/c"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/cpp/embedded"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1095129102" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.149627486" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.153720047" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1522699043" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.599110573" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="invoketarget.null.645452857" name="invoketarget"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.271873193">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1953561384">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1680652142">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.133086530">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+</cproject>
View
90 invoketarget/.project
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>invoketarget</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>