Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Beta4 BB samples

  • Loading branch information...
commit e1b6fd846aeb917934b9b8bb21caf02764fb429b 1 parent ab26775
@CodeHoarder CodeHoarder authored
Showing with 7,700 additions and 4,187 deletions.
  1. +0 −32 BatterySample/Makefile
  2. 0  BatterySample/arm/.gitignore
  3. BIN  BatterySample/assets/images/battery_overlay.png
  4. BIN  BatterySample/assets/images/blue_background.png
  5. BIN  BatterySample/assets/images/error.png
  6. BIN  BatterySample/assets/images/not_charging.png
  7. BIN  BatterySample/assets/images/yellow_background.png
  8. BIN  BatterySample/assets/images/yellow_background_glow.png
  9. +0 −221 BatterySample/assets/main.qml
  10. +0 −115 BatterySample/bar-descriptor.xml
  11. +0 −38 BatterySample/batterysample.pro
  12. +0 −35 BatterySample/readme.txt
  13. +0 −61 BatterySample/src/main.cpp
  14. 0  BatterySample/x86/.gitignore
  15. +0 −34 PaymentSample/Makefile
  16. 0  PaymentSample/arm/.gitignore
  17. +0 −116 PaymentSample/bar-descriptor.xml
  18. +0 −49 PaymentSample/paymentservice.pro
  19. +0 −39 PaymentSample/readme.txt
  20. +0 −68 PaymentSample/src/main.cpp
  21. 0  PaymentSample/x86/.gitignore
  22. +0 −35 PimAccounts/Makefile
  23. +0 −51 PimAccounts/accounts.pro
  24. 0  PimAccounts/arm/.gitignore
  25. +0 −102 PimAccounts/bar-descriptor.xml
  26. +0 −35 PimAccounts/readme.txt
  27. +0 −61 PimAccounts/src/main.cpp
  28. 0  PimAccounts/x86/.gitignore
  29. +0 −35 PimAddressBook/Makefile
  30. +0 −51 PimAddressBook/addressbook.pro
  31. 0  PimAddressBook/arm/.gitignore
  32. +0 −103 PimAddressBook/bar-descriptor.xml
  33. +0 −35 PimAddressBook/readme.txt
  34. +0 −61 PimAddressBook/src/main.cpp
  35. 0  PimAddressBook/x86/.gitignore
  36. +0 −35 PimCalendar/Makefile
  37. 0  PimCalendar/arm/.gitignore
  38. +0 −103 PimCalendar/bar-descriptor.xml
  39. +0 −51 PimCalendar/calendar.pro
  40. +0 −35 PimCalendar/readme.txt
  41. +0 −61 PimCalendar/src/main.cpp
  42. 0  PimCalendar/x86/.gitignore
  43. +0 −35 PimMessages/Makefile
  44. 0  PimMessages/arm/.gitignore
  45. +0 −103 PimMessages/bar-descriptor.xml
  46. +0 −51 PimMessages/messages.pro
  47. +0 −35 PimMessages/readme.txt
  48. +0 −67 PimMessages/src/main.cpp
  49. 0  PimMessages/x86/.gitignore
  50. +0 −35 PimNotebook/Makefile
  51. +0 −102 PimNotebook/bar-descriptor.xml
  52. +0 −51 PimNotebook/notebook.pro
  53. +0 −35 PimNotebook/readme.txt
  54. +0 −60 PimNotebook/src/main.cpp
  55. +2 −2 SensorDemo/Makefile
  56. +2 −0  SensorDemo/SensorDemo.pro
  57. BIN  SensorDemo/assets/images/alarm.png
  58. BIN  SensorDemo/assets/images/compass.png
  59. BIN  SensorDemo/assets/images/crash.png
  60. BIN  SensorDemo/assets/images/magnet.png
  61. BIN  SensorDemo/assets/images/nightlamp.png
  62. BIN  SensorDemo/assets/images/rotation3d.png
  63. +4 −4 SensorDemo/assets/main.qml
  64. +4 −6 SensorDemo/bar-descriptor.xml
  65. +44 −0 SensorDemo/readme.txt
  66. +3 −1 SensorDemo/src/Flashlight.hpp
  67. +1 −1  SensorDemo/src/main.cpp
  68. +0 −34 SensorsAccelGame/Makefile
  69. +0 −51 SensorsAccelGame/accelgame.pro
  70. 0  SensorsAccelGame/arm/.gitignore
  71. +0 −80 SensorsAccelGame/assets/main.qml
  72. +0 −113 SensorsAccelGame/bar-descriptor.xml
  73. +0 −36 SensorsAccelGame/readme.txt
  74. +0 −88 SensorsAccelGame/src/accelerationsensor.cpp
  75. +0 −88 SensorsAccelGame/src/gamecontroller.cpp
  76. +0 −72 SensorsAccelGame/src/gamecontroller.hpp
  77. +0 −54 SensorsAccelGame/src/main.cpp
  78. 0  SensorsAccelGame/x86/.gitignore
  79. +0 −34 SensorsCompass/Makefile
  80. 0  SensorsCompass/arm/.gitignore
  81. +0 −113 SensorsCompass/bar-descriptor.xml
  82. +0 −51 SensorsCompass/compass.pro
  83. +0 −36 SensorsCompass/readme.txt
  84. +0 −74 SensorsCompass/src/CompassSensor.cpp
  85. +0 −65 SensorsCompass/src/CompassSensor.hpp
  86. +0 −43 SensorsCompass/src/main.cpp
  87. 0  SensorsCompass/x86/.gitignore
  88. +0 −35 SensorsImageRotation/Makefile
  89. 0  SensorsImageRotation/arm/.gitignore
  90. +0 −114 SensorsImageRotation/bar-descriptor.xml
  91. +0 −51 SensorsImageRotation/imagerotation.pro
  92. +0 −36 SensorsImageRotation/readme.txt
  93. +0 −51 SensorsImageRotation/src/main.cpp
  94. 0  SensorsImageRotation/x86/.gitignore
  95. +0 −35 SensorsOrientation/Makefile
  96. 0  SensorsOrientation/arm/.gitignore
  97. +0 −114 SensorsOrientation/bar-descriptor.xml
  98. +0 −51 SensorsOrientation/orientation.pro
  99. +0 −36 SensorsOrientation/readme.txt
  100. +0 −57 SensorsOrientation/src/main.cpp
  101. 0  SensorsOrientation/x86/.gitignore
  102. +0 −35 SensorsTossGame/Makefile
  103. 0  SensorsTossGame/arm/.gitignore
  104. +0 −114 SensorsTossGame/bar-descriptor.xml
  105. +0 −36 SensorsTossGame/readme.txt
  106. +0 −83 SensorsTossGame/src/main.cpp
  107. +0 −51 SensorsTossGame/tossgame.pro
  108. 0  {SensorsAccelGame → accelgame}/.cproject
  109. 0  {SensorsAccelGame → accelgame}/.project
  110. 0  {SensorsAccelGame → accelgame}/.settings/org.eclipse.cdt.core.prefs
  111. +34 −0 accelgame/Makefile
  112. +53 −0 accelgame/accelgame.pro
  113. 0  {SensorsAccelGame → accelgame}/assets/Maze.qml
  114. 0  {SensorsAccelGame → accelgame}/assets/images/background.png
  115. 0  {SensorsAccelGame → accelgame}/assets/images/block.png
  116. 0  {SensorsAccelGame → accelgame}/assets/images/maze_background.png
  117. 0  {SensorsAccelGame → accelgame}/assets/images/player.png
  118. +84 −0 accelgame/assets/main.qml
  119. +114 −0 accelgame/bar-descriptor.xml
  120. 0  {SensorsTossGame → accelgame}/device-assets.xml
  121. 0  {SensorsTossGame → accelgame}/icon.png
  122. +36 −0 accelgame/readme.txt
  123. +94 −0 accelgame/src/accelerationsensor.cpp
  124. 0  {SensorsAccelGame → accelgame}/src/accelerationsensor.hpp
  125. 0  {SensorsAccelGame → accelgame}/src/board.cpp
  126. 0  {SensorsAccelGame → accelgame}/src/board.hpp
  127. +88 −0 accelgame/src/gamecontroller.cpp
  128. +72 −0 accelgame/src/gamecontroller.hpp
  129. +54 −0 accelgame/src/main.cpp
  130. 0  {SensorsAccelGame → accelgame}/src/player.cpp
  131. 0  {SensorsAccelGame → accelgame}/src/player.hpp
  132. 0  {PimAccounts → accounts}/.cproject
  133. 0  {PimAccounts → accounts}/.project
  134. 0  {PimAccounts → accounts}/.settings/org.eclipse.cdt.core.prefs
  135. +35 −0 accounts/Makefile
  136. +53 −0 accounts/accounts.pro
  137. 0  {PimAccounts → accounts}/assets/AccountEditor.qml
  138. 0  {PimAccounts → accounts}/assets/AccountViewer.qml
  139. 0  {PimAccounts → accounts}/assets/EditorField.qml
  140. 0  {PimAccounts → accounts}/assets/ViewerField.qml
  141. 0  {PimAccounts → accounts}/assets/images/action_addaccount.png
  142. 0  {PimAccounts → accounts}/assets/images/action_editaccount.png
  143. 0  {PimAccounts → accounts}/assets/images/background.png
  144. 0  {PimAccounts → accounts}/assets/main.qml
  145. +104 −0 accounts/bar-descriptor.xml
  146. 0  {SensorsOrientation → accounts}/device-assets.xml
  147. 0  {SensorsOrientation → accounts}/icon.png
  148. +35 −0 accounts/readme.txt
  149. 0  {PimAccounts → accounts}/src/AccountEditor.cpp
  150. 0  {PimAccounts → accounts}/src/AccountEditor.hpp
  151. 0  {PimAccounts → accounts}/src/AccountViewer.cpp
  152. 0  {PimAccounts → accounts}/src/AccountViewer.hpp
  153. 0  {PimAccounts → accounts}/src/Accounts.cpp
  154. 0  {PimAccounts → accounts}/src/Accounts.hpp
  155. +61 −0 accounts/src/main.cpp
  156. 0  {PimAccounts → accounts}/translations/Makefile
  157. 0  {PimAccounts → accounts}/translations/accounts.pro
  158. 0  {PimAddressBook → addressbook}/.cproject
  159. 0  {PimAddressBook → addressbook}/.project
  160. 0  {PimAddressBook → addressbook}/.settings/org.eclipse.cdt.core.prefs
  161. +35 −0 addressbook/Makefile
  162. +53 −0 addressbook/addressbook.pro
  163. 0  {PimAddressBook → addressbook}/assets/ContactEditor.qml
  164. 0  {PimAddressBook → addressbook}/assets/ContactViewer.qml
  165. 0  {PimNotebook → addressbook}/assets/ViewerField.qml
  166. 0  {PimAddressBook → addressbook}/assets/images/action_addcontact.png
  167. 0  {PimAddressBook → addressbook}/assets/images/action_editcontact.png
  168. 0  {PimAddressBook → addressbook}/assets/images/background.png
  169. 0  {PimAddressBook → addressbook}/assets/main.qml
  170. +105 −0 addressbook/bar-descriptor.xml
  171. 0  {SensorsImageRotation → addressbook}/device-assets.xml
  172. 0  {SensorsImageRotation → addressbook}/icon.png
  173. +35 −0 addressbook/readme.txt
  174. 0  {PimAddressBook → addressbook}/src/AddressBook.cpp
  175. 0  {PimAddressBook → addressbook}/src/AddressBook.hpp
  176. 0  {PimAddressBook → addressbook}/src/ContactEditor.cpp
  177. 0  {PimAddressBook → addressbook}/src/ContactEditor.hpp
  178. 0  {PimAddressBook → addressbook}/src/ContactViewer.cpp
  179. 0  {PimAddressBook → addressbook}/src/ContactViewer.hpp
  180. +61 −0 addressbook/src/main.cpp
  181. 0  {PimAddressBook → addressbook}/translations/Makefile
  182. 0  {PimAddressBook → addressbook}/translations/addressbook.pro
  183. +230 −0 bannerads/.cproject
  184. +91 −0 bannerads/.project
  185. +25 −0 bannerads/.settings/org.eclipse.cdt.core.prefs
  186. +35 −0 bannerads/Makefile
  187. +43 −0 bannerads/assets/LabeledLabel.qml
  188. +78 −0 bannerads/assets/Weather.qml
  189. BIN  bannerads/assets/images/background.png
  190. BIN  bannerads/assets/images/placeholder_728x90.png
  191. BIN  bannerads/assets/images/sun.png
  192. +176 −0 bannerads/assets/main.qml
  193. +47 −0 bannerads/bannerads.pro
  194. +106 −0 bannerads/bar-descriptor.xml
  195. 0  {SensorsCompass → bannerads}/device-assets.xml
  196. 0  {SensorsCompass → bannerads}/icon.png
  197. +35 −0 bannerads/readme.txt
  198. +59 −0 bannerads/src/main.cpp
  199. +12 −0 bannerads/translations/Makefile
  200. +1 −0  bannerads/translations/bannerads.pro
  201. +2 −2 barcodereader/Makefile
  202. +3 −1 barcodereader/bar-descriptor.xml
  203. +2 −0  barcodereader/barcodereader.pro
  204. +2 −2 barcodereader/readme.txt
  205. +1 −1  barcodereader/src/main.cpp
  206. 0  {BatterySample → batterysample}/.cproject
  207. 0  {BatterySample → batterysample}/.project
  208. 0  {BatterySample → batterysample}/.settings/org.eclipse.cdt.core.prefs
  209. 0  {PaymentSample → batterysample}/LICENSE
  210. +32 −0 batterysample/Makefile
  211. 0  {BatterySample → batterysample}/Notice
  212. +68 −0 batterysample/assets/Battery.qml
  213. 0  {BatterySample → batterysample}/assets/images/background.png
  214. BIN  batterysample/assets/images/battery.png
  215. BIN  batterysample/assets/images/battery_plugged.png
  216. BIN  batterysample/assets/images/battery_plugged_bad.png
  217. BIN  batterysample/assets/images/battery_plugged_error.png
  218. BIN  batterysample/assets/images/exclamation.png
  219. BIN  batterysample/assets/images/fill_green.png
  220. BIN  batterysample/assets/images/fill_grey.png
  221. BIN  batterysample/assets/images/fill_red.png
  222. BIN  batterysample/assets/images/fill_yellow.png
  223. BIN  batterysample/assets/images/flash.png
  224. +106 −0 batterysample/assets/main.qml
  225. +118 −0 batterysample/bar-descriptor.xml
  226. +40 −0 batterysample/batterysample.pro
  227. 0  {SensorsAccelGame → batterysample}/device-assets.xml
  228. BIN  batterysample/icon.png
  229. +35 −0 batterysample/readme.txt
  230. +61 −0 batterysample/src/main.cpp
  231. 0  {BatterySample → batterysample}/translations/Makefile
  232. 0  {BatterySample → batterysample}/translations/batterysample.pro
  233. +225 −0 bbminvitetodownload/.cproject
  234. +91 −0 bbminvitetodownload/.project
  235. +176 −0 bbminvitetodownload/LICENSE
  236. +35 −0 bbminvitetodownload/Makefile
  237. BIN  bbminvitetodownload/assets/images/background.png
  238. +69 −0 bbminvitetodownload/assets/invite.qml
  239. +74 −0 bbminvitetodownload/assets/registration.qml
  240. +104 −0 bbminvitetodownload/bar-descriptor.xml
  241. +55 −0 bbminvitetodownload/bbminvitetodownload.pro
  242. 0  {PimNotebook → bbminvitetodownload}/device-assets.xml
  243. 0  {SensorsAccelGame → bbminvitetodownload}/icon.png
  244. +51 −0 bbminvitetodownload/readme.txt
  245. +58 −0 bbminvitetodownload/src/InviteToDownload.cpp
  246. +63 −0 bbminvitetodownload/src/InviteToDownload.hpp
  247. +221 −0 bbminvitetodownload/src/RegistrationHandler.cpp
  248. +151 −0 bbminvitetodownload/src/RegistrationHandler.hpp
  249. +48 −0 bbminvitetodownload/src/main.cpp
  250. +12 −0 bbminvitetodownload/translations/Makefile
  251. +1 −0  bbminvitetodownload/translations/bbminvitetodownload.pro
  252. +210 −0 bbmprofile/.cproject
  253. +91 −0 bbmprofile/.project
  254. +176 −0 bbmprofile/LICENSE
  255. +35 −0 bbmprofile/Makefile
  256. +58 −0 bbmprofile/assets/Field.qml
  257. +146 −0 bbmprofile/assets/UpdateProfile.qml
  258. BIN  bbmprofile/assets/images/avatarPlaceholder.png
  259. BIN  bbmprofile/assets/images/background.png
  260. BIN  bbmprofile/assets/images/background_blurred.png
  261. BIN  bbmprofile/assets/images/busy.png
  262. +150 −0 bbmprofile/assets/profile.qml
  263. +74 −0 bbmprofile/assets/registration.qml
  264. +105 −0 bbmprofile/bar-descriptor.xml
  265. +56 −0 bbmprofile/bbmprofile.pro
  266. 0  {PimMessages → bbmprofile}/device-assets.xml
  267. 0  {PimNotebook → bbmprofile}/icon.png
  268. +50 −0 bbmprofile/readme.txt
  269. +131 −0 bbmprofile/src/Profile.cpp
  270. +78 −0 bbmprofile/src/Profile.hpp
  271. +73 −0 bbmprofile/src/ProfileEditor.cpp
  272. +43 −0 bbmprofile/src/ProfileEditor.hpp
  273. +221 −0 bbmprofile/src/RegistrationHandler.cpp
  274. +151 −0 bbmprofile/src/RegistrationHandler.hpp
  275. +55 −0 bbmprofile/src/main.cpp
  276. +12 −0 bbmprofile/translations/Makefile
  277. +1 −0  bbmprofile/translations/bbmprofile.pro
  278. +210 −0 bbmprofilebox/.cproject
  279. +91 −0 bbmprofilebox/.project
  280. +25 −0 bbmprofilebox/.settings/org.eclipse.cdt.core.prefs
  281. +176 −0 bbmprofilebox/LICENSE
  282. +35 −0 bbmprofilebox/Makefile
  283. +106 −0 bbmprofilebox/assets/NewProfileBoxPage.qml
  284. +51 −0 bbmprofilebox/assets/ProfileBoxItem.qml
  285. BIN  bbmprofilebox/assets/images/apple.png
  286. BIN  bbmprofilebox/assets/images/background.png
  287. BIN  bbmprofilebox/assets/images/background_blurred.png
  288. BIN  bbmprofilebox/assets/images/orange.png
  289. BIN  bbmprofilebox/assets/images/pear.png
  290. +82 −0 bbmprofilebox/assets/main.qml
  291. +74 −0 bbmprofilebox/assets/registration.qml
  292. +102 −0 bbmprofilebox/bar-descriptor.xml
  293. +52 −0 bbmprofilebox/bbmprofilebox.pro
  294. 0  {PimCalendar → bbmprofilebox}/device-assets.xml
  295. 0  {PimMessages → bbmprofilebox}/icon.png
  296. +50 −0 bbmprofilebox/readme.txt
  297. +184 −0 bbmprofilebox/src/ProfileBoxManager.cpp
  298. +66 −0 bbmprofilebox/src/ProfileBoxManager.hpp
  299. +221 −0 bbmprofilebox/src/RegistrationHandler.cpp
  300. +151 −0 bbmprofilebox/src/RegistrationHandler.hpp
Sorry, we could not display the entire diff because too many files (1,225) changed.
View
32 BatterySample/Makefile
@@ -1,32 +0,0 @@
-QMAKE_TARGET = batterysample
-QMAKE = $(QNX_HOST)/usr/bin/qmake
-TARGET = $(QMAKE_TARGET)
-
-all: Makefile $(QMAKE_TARGET)
-
-clean:
- $(MAKE) -C ./arm -f Makefile distclean
- $(MAKE) -C ./x86 -f Makefile distclean
-
-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
-
-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
0  BatterySample/arm/.gitignore
No changes.
View
BIN  BatterySample/assets/images/battery_overlay.png
Deleted file not rendered
View
BIN  BatterySample/assets/images/blue_background.png
Deleted file not rendered
View
BIN  BatterySample/assets/images/error.png
Deleted file not rendered
View
BIN  BatterySample/assets/images/not_charging.png
Deleted file not rendered
View
BIN  BatterySample/assets/images/yellow_background.png
Deleted file not rendered
View
BIN  BatterySample/assets/images/yellow_background_glow.png
Deleted file not rendered
View
221 BatterySample/assets/main.qml
@@ -1,221 +0,0 @@
-/* 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.device 1.0
-
-// Page laying out the visual components
-Page {
- Container {
- layout: DockLayout {}
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Fill
- verticalAlignment: VerticalAlignment.Fill
-
- imageSource: "asset:///images/background.png"
- }
-
- Container {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Center
-
- layout: DockLayout {}
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Top
-
- translationX: -5
- translationY: 10
-
- imageSource: "asset:///images/yellow_background.png"
-
- visible: (_battery.chargingState == BatteryChargingState.NotCharging ||
- _battery.chargingState == BatteryChargingState.Full ||
- _battery.chargingState == BatteryChargingState.Charging)
-
- opacity: (_battery.chargingState == BatteryChargingState.NotCharging ? 0.3 : 1.0)
- }
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Top
- preferredWidth: 470
-
- translationX: -5
- translationY: 7
-
- imageSource: "asset:///images/yellow_background_glow.png"
-
- visible: (_battery.chargingState == BatteryChargingState.Charging)
-
- animations: SequentialAnimation {
- id: glowAnimation
-
- repeatCount: 1000000
- FadeTransition {
- fromOpacity: 0.0
- toOpacity: 1.0
- duration: 1000
- }
- FadeTransition {
- fromOpacity: 1.0
- toOpacity: 0.0
- duration: 1000
- }
- }
-
- function runAnimation()
- {
- if (_battery.chargingState == BatteryChargingState.Charging)
- glowAnimation.play();
- else
- glowAnimation.stop();
- }
-
- onCreationCompleted: _battery.levelChanged.connect(runAnimation)
- }
-
-//! [0]
- Container {
- background: Color.Black
-
- horizontalAlignment: HorizontalAlignment.Right
- verticalAlignment: VerticalAlignment.Top
-
- translationX: -51
-
- preferredWidth: (470 - (470.0 * _battery.level)/100.0) + 1 // width depends on current battery level
- preferredHeight: 500
-
- visible: (_battery.chargingState == BatteryChargingState.Charging)
- }
-//! [0]
-
-//! [1]
- ImageView {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Top
-
- translationX: -110
-
- imageSource: "asset:///images/blue_background.png"
-
- visible: (_battery.chargingState == BatteryChargingState.Discharging)
- }
-//! [1]
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Fill
- verticalAlignment: VerticalAlignment.Fill
-
- imageSource: "asset:///images/battery_overlay.png"
- }
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Top
-
- translationY: 35
-
- imageSource: "asset:///images/error.png"
-
- visible: (_battery.chargingState == BatteryChargingState.Unknown)
- }
-
- ImageView {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Top
-
- translationY: 35
-
- imageSource: "asset:///images/not_charging.png"
-
- visible: (_battery.chargingState == BatteryChargingState.NotCharging)
- }
- }
-
- Container {
- horizontalAlignment: HorizontalAlignment.Center
- verticalAlignment: VerticalAlignment.Bottom
-
- bottomPadding: 50
-
-//! [2]
- Label {
- id: stateLabel
-
- horizontalAlignment: HorizontalAlignment.Center
-
- text: {
- switch (_battery.chargingState) {
- case BatteryChargingState.Unknown:
- return qsTr ("Unknown");
- break;
- case BatteryChargingState.NotCharging:
- return qsTr ("Not Charging");
- break;
- case BatteryChargingState.Charging:
- return qsTr ("Charging");
- break;
- case BatteryChargingState.Discharging:
- return qsTr ("Discharging");
- break;
- case BatteryChargingState.Full:
- return qsTr ("Full");
- break;
- }
- }
- textStyle {
- color: Color.White
- fontSize: FontSize.XLarge
- }
- }
-//! [2]
-
- Label {
- id: descriptionLabel
-
- horizontalAlignment: HorizontalAlignment.Center
- bottomMargin: 100
-
- text: {
- switch (_battery.chargingState) {
- case BatteryChargingState.Unknown:
- return qsTr ("Something is up with the battery");
- break;
- case BatteryChargingState.NotCharging:
- return qsTr ("Plugged in, just no charge");
- break;
- case BatteryChargingState.Charging:
- return qsTr ("Plugged in");
- break;
- case BatteryChargingState.Discharging:
- return qsTr ("Unplugged and discharging");
- break;
- case BatteryChargingState.Full:
- return qsTr ("Plugged in, full");
- break;
- }
- }
- textStyle {
- color: Color.Gray
- fontSize: FontSize.Large
- }
- }
- }
- }
-}
View
115 BatterySample/bar-descriptor.xml
@@ -1,115 +0,0 @@
-<?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.battery.batterysample</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>batterysample</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 batterysample 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>
- <autoOrients>true</autoOrients>
- <systemChrome>none</systemChrome>
- <transparent>false</transparent>
- </initialWindow>
-
- <!-- The category where the application appears. Either core.games or core.media. -->
- <category>core.games</category>
- <configuration id="com.qnx.qcc.toolChain.1273328071" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/batterysample" entry="true" type="Qnx/Elf">batterysample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.658863613" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/batterysample" entry="true" type="Qnx/Elf">batterysample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.286609293" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/batterysample" entry="true" type="Qnx/Elf">batterysample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.520290002" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/batterysample" entry="true" type="Qnx/Elf">batterysample</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <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>
-
- <!-- 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
38 BatterySample/batterysample.pro
@@ -1,38 +0,0 @@
-TEMPLATE = app
-TARGET = batterysample
-
-CONFIG += qt warn_on debug_and_release cascades
-LIBS += -lbbdevice
-
-INCLUDEPATH += ../src
-SOURCES += ../src/*.cpp
-HEADERS += ../src/*.hpp ../src/*.h
-
-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
-
-TRANSLATIONS += translations/$${TARGET}_de.ts \
- translations/$${TARGET}_en_GB.ts \
- translations/$${TARGET}_fr.ts \
- translations/$${TARGET}_it.ts \
- translations/$${TARGET}_es.ts
View
35 BatterySample/readme.txt
@@ -1,35 +0,0 @@
-Battery
-
-========================================================================
-Sample Description.
-
-A radio group and an battery image are the only things you need to build a simple battery state display app. In this sample, a radio group and an image are used to display and describe the different battery states.
-
-You will learn how to:
-- Dynamically change images
-- Trigger C++ functions from QML
-- Use a StackLayout
-- Property binding
-
-========================================================================
-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
61 BatterySample/src/main.cpp
@@ -1,61 +0,0 @@
-/* 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 <bb/cascades/AbstractPane>
-#include <bb/cascades/Application>
-#include <bb/cascades/QmlDocument>
-#include <bb/device/BatteryInfo>
-
-#include <QtCore/QLocale>
-#include <QtCore/QTranslator>
-
-using namespace bb::cascades;
-using namespace bb::device;
-
-/**
- * This sample application shows some basic
- * usage of the BatteryInfo API, such as charging level and charging state.
- */
-int main(int argc, char **argv)
-{
- qmlRegisterUncreatableType<bb::device::BatteryChargingState>("bb.device", 1, 0, "BatteryChargingState", "");
-
- Application app(argc, argv);
-
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString("batterysample_%1").arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
-
-//! [0]
- // Create the battery info object
- BatteryInfo batteryInfo;
-
- // Load the UI description from main.qml
- QmlDocument *qml = QmlDocument::create("asset:///main.qml");
-
- // Make the BatteryInfo object available to the UI as context property
- qml->setContextProperty("_battery", &batteryInfo);
-//! [0]
-
- // Create the application scene
- AbstractPane *appPage = qml->createRootObject<AbstractPane>();
- Application::instance()->setScene(appPage);
-
-
- return Application::exec();
-}
View
0  BatterySample/x86/.gitignore
No changes.
View
34 PaymentSample/Makefile
@@ -1,34 +0,0 @@
-QMAKE_TARGET = paymentservice
-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
-
-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
0  PaymentSample/arm/.gitignore
No changes.
View
116 PaymentSample/bar-descriptor.xml
@@ -1,116 +0,0 @@
-<?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.payment.paymentservice</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>paymentservice</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 paymentservice 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>
- <aspectRatio>portrait</aspectRatio>
- <autoOrients>false</autoOrients>
- <systemChrome>none</systemChrome>
- <transparent>false</transparent>
- </initialWindow>
-
- <!-- The category where the application appears. Either core.games or core.media. -->
- <category>core.games</category>
- <configuration id="com.qnx.qcc.toolChain.535232161" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/paymentservice" entry="true" type="Qnx/Elf">paymentservice</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1912649659" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/paymentservice" entry="true" type="Qnx/Elf">paymentservice</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1101158431" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/paymentservice" entry="true" type="Qnx/Elf">paymentservice</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1579162024" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/paymentservice" entry="true" type="Qnx/Elf">paymentservice</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <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>
-
- <!-- 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
49 PaymentSample/paymentservice.pro
@@ -1,49 +0,0 @@
-TEMPLATE = app
-TARGET = paymentservice
-
-CONFIG += qt warn_on debug_and_release cascades
-LIBS += -lbbplatform
-
-INCLUDEPATH += ../src
-SOURCES += ../src/*.cpp
-HEADERS += ../src/*.hpp ../src/*.h
-
-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 += translations/$${TARGET}_en_GB.ts \
- translations/$${TARGET}_fr.ts \
- translations/$${TARGET}_it.ts \
- translations/$${TARGET}_de.ts \
- translations/$${TARGET}_es.ts
-
View
39 PaymentSample/readme.txt
@@ -1,39 +0,0 @@
-Payment Sample
-
-========================================================================
-Sample Description.
-
-The Payment service example demonstrates how to use the cascades payment service to include features,
-such as "Buy" button as well as displaying history of purchases and the display of subscription terms,
-allowing you to monetize your application content.
-
-You will learn how to:
-- Use the Payment Service API's(purchase, request price, request purchases and check subscription terms)
-- Trigger C++ functions from QML
-- Load data into a list using XmlDataModel
-- Property binding
-- Various Layouts
-- How to use TabbedPane's
-
-========================================================================
-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
68 PaymentSample/src/main.cpp
@@ -1,68 +0,0 @@
-/* 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 "PaymentServiceControl.hpp"
-
-#include <bb/cascades/AbstractPane>
-#include <bb/cascades/Application>
-#include <bb/cascades/QmlDocument>
-
-#include <bb/platform/PaymentManager>
-
-#include <QtCore/QLocale>
-#include <QtCore/QTimer>
-#include <QtCore/QTranslator>
-
-using namespace bb::cascades;
-using namespace bb::platform;
-
-/**
- * This sample application shows some basic
- * usage of the PaymentService API, such as buying items, querying item price,
- * querying the subscription terms, canceling subscription, canceling purchase and
- * querying purchases made.
- */
-int main(int argc, char **argv)
-{
- Application app(argc, argv);
-
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString("paymentservice_%1").arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
-
- // Since this is a sample application and is not affiliated with an actual application on
- // BlackBerry App World (and thus does not have any real digital goods), set the connection
- // mode to test.
- PaymentManager::setConnectionMode(PaymentConnectionMode::Test);
-
- // Register our class that wraps the C++ PaymentService interface with QML so that we
- // can make calls into the PaymentService and get results, through QML.
- qmlRegisterType<PaymentServiceControl>("com.sample.payment", 1, 0, "PaymentServiceControl");
- qmlRegisterType<QTimer>("bb.cascades", 1, 0, "QTimer");
-
- // Load the UI description from main.qml
- QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
-
- // Create the application scene
- AbstractPane *appPage = qml->createRootObject<AbstractPane>();
- qml->setContextProperty("_absPane", appPage);
- Application::instance()->setScene(appPage);
-
- return Application::exec();
-}
-
View
0  PaymentSample/x86/.gitignore
No changes.
View
35 PimAccounts/Makefile
@@ -1,35 +0,0 @@
-QMAKE_TARGET = accounts
-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
51 PimAccounts/accounts.pro
@@ -1,51 +0,0 @@
-TEMPLATE = app
-TARGET = accounts
-
-CONFIG += qt warn_on debug_and_release cascades
-
-INCLUDEPATH += ../src
-SOURCES += ../src/*.cpp
-HEADERS += ../src/*.hpp ../src/*.h
-LIBS += -lbbpim
-
-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
0  PimAccounts/arm/.gitignore
No changes.
View
102 PimAccounts/bar-descriptor.xml
@@ -1,102 +0,0 @@
-<?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.pim.accounts</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>accounts</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 accounts 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>
- <configuration id="com.qnx.qcc.toolChain.1906702220" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/accounts" entry="true" type="Qnx/Elf">accounts</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1719883196" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/accounts" entry="true" type="Qnx/Elf">accounts</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1377699660" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/accounts" entry="true" type="Qnx/Elf">accounts</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1497917278" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/accounts" entry="true" type="Qnx/Elf">accounts</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <asset path="assets">assets</asset>
-
- <!-- Locale support -->
- <asset path="translations" dest="qm">
- <include name="*.qm"/>
- </asset>
-
- <!-- Request permission to execute native code. Required for native applications. -->
- <permission system="true">run_native</permission>
- <permission>access_pimdomain_accounts</permission>
- <env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
-
-</qnx>
View
35 PimAccounts/readme.txt
@@ -1,35 +0,0 @@
-Accounts
-
-========================================================================
-Sample Description.
-
-The Accounts example demonstrates how to manage the accounts that are
-used by the PIM APIs (e.g. contacts, calendar, notes).
-
-You will learn how to:
-- List available accounts and filter them by type
-- Create, edit and delete accounts
-- Separate the business logic from the UI
-
-========================================================================
-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
61 PimAccounts/src/main.cpp
@@ -1,61 +0,0 @@
-/* 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 "Accounts.hpp"
-
-#include "AccountEditor.hpp"
-#include "AccountViewer.hpp"
-
-#include <bb/cascades/AbstractPane>
-#include <bb/cascades/Application>
-#include <bb/cascades/QmlDocument>
-
-#include <QLocale>
-#include <QTranslator>
-
-using namespace bb::cascades;
-
-int main(int argc, char **argv)
-{
-//! [0]
- // Register our custom types with QML, so that they can be used as property types
- qmlRegisterUncreatableType<AccountEditor>("com.example.bb10samples.pim.accounts", 1, 0, "AccountEditor", "Usage as property type and access to enums");
- qmlRegisterType<AccountViewer>();
-//! [0]
-
- Application app(argc, argv);
-
- // localization support
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString::fromLatin1("accounts_%1").arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
-
-//! [1]
- // Load the UI description from main.qml
- QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
-
- // Make the Accounts object available to the UI as context property
- qml->setContextProperty("_accounts", new Accounts(&app));
-//! [1]
-
- // Create the application scene
- AbstractPane *appPage = qml->createRootObject<AbstractPane>();
- Application::instance()->setScene(appPage);
-
- return Application::exec();
-}
View
0  PimAccounts/x86/.gitignore
No changes.
View
35 PimAddressBook/Makefile
@@ -1,35 +0,0 @@
-QMAKE_TARGET = addressbook
-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
51 PimAddressBook/addressbook.pro
@@ -1,51 +0,0 @@
-TEMPLATE = app
-TARGET = addressbook
-
-CONFIG += qt warn_on debug_and_release cascades
-
-INCLUDEPATH += ../src
-SOURCES += ../src/*.cpp
-HEADERS += ../src/*.hpp ../src/*.h
-LIBS += -lbbpim
-
-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
0  PimAddressBook/arm/.gitignore
No changes.
View
103 PimAddressBook/bar-descriptor.xml
@@ -1,103 +0,0 @@
-<?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.pim.addressbook</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>addressbook</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 addressbook 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>
- <configuration id="com.qnx.qcc.toolChain.1111814637" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/addressbook" entry="true" type="Qnx/Elf">addressbook</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.694824214" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/addressbook" entry="true" type="Qnx/Elf">addressbook</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.100537980" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/addressbook" entry="true" type="Qnx/Elf">addressbook</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1609045545" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/addressbook" entry="true" type="Qnx/Elf">addressbook</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <asset path="assets">assets</asset>
-
- <!-- Locale support -->
- <asset path="translations" dest="qm">
- <include name="*.qm"/>
- </asset>
-
- <!-- Request permission to execute native code. Required for native applications. -->
- <permission system="true">run_native</permission>
- <permission>access_pimdomain_contacts</permission>
-
- <env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
-
-</qnx>
View
35 PimAddressBook/readme.txt
@@ -1,35 +0,0 @@
-Address Book
-
-========================================================================
-Sample Description.
-
-The Address Book example demonstrates how to implement a simple address book application
-based on the PIM APIs as provided by BB10.
-
-You will learn how to:
-- List available contacts and filter them
-- Create, edit and delete contacts
-- Separate the business logic from the UI
-
-========================================================================
-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
61 PimAddressBook/src/main.cpp
@@ -1,61 +0,0 @@
-/* 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 "AddressBook.hpp"
-
-#include "ContactEditor.hpp"
-#include "ContactViewer.hpp"
-
-#include <bb/cascades/AbstractPane>
-#include <bb/cascades/Application>
-#include <bb/cascades/QmlDocument>
-
-#include <QLocale>
-#include <QTranslator>
-
-using namespace bb::cascades;
-
-int main(int argc, char **argv)
-{
-//! [0]
- // Register our custom types with QML, so that they can be used as property types
- qmlRegisterUncreatableType<ContactEditor>("com.example.bb10samples.pim.addressbook", 1, 0, "ContactEditor", "Usage as property type and access to enums");
- qmlRegisterType<ContactViewer>();
-//! [0]
-
- Application app(argc, argv);
-
- // localization support
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString::fromLatin1("addressbook_%1").arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
-
-//! [1]
- // Load the UI description from main.qml
- QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
-
- // Make the AddressBook object available to the UI as context property
- qml->setContextProperty("_addressBook", new AddressBook(&app));
-//! [1]
-
- // Create the application scene
- AbstractPane *appPage = qml->createRootObject<AbstractPane>();
- Application::instance()->setScene(appPage);
-
- return Application::exec();
-}
View
0  PimAddressBook/x86/.gitignore
No changes.
View
35 PimCalendar/Makefile
@@ -1,35 +0,0 @@
-QMAKE_TARGET = calendar
-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
0  PimCalendar/arm/.gitignore
No changes.
View
103 PimCalendar/bar-descriptor.xml
@@ -1,103 +0,0 @@
-<?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.pim.calendar</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>calendar</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 calendar 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>
- <configuration id="com.qnx.qcc.toolChain.850560420" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/calendar" entry="true" type="Qnx/Elf">calendar</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.645825037" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/calendar" entry="true" type="Qnx/Elf">calendar</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.946047250" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/calendar" entry="true" type="Qnx/Elf">calendar</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.241965584" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/calendar" entry="true" type="Qnx/Elf">calendar</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <asset path="assets">assets</asset>
-
- <!-- Locale support -->
- <asset path="translations" dest="qm">
- <include name="*.qm"/>
- </asset>
-
- <!-- Request permission to execute native code. Required for native applications. -->
- <permission system="true">run_native</permission>
- <permission>access_pimdomain_calendars</permission>
-
- <env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
-
-</qnx>
View
51 PimCalendar/calendar.pro
@@ -1,51 +0,0 @@
-TEMPLATE = app
-TARGET = calendar
-
-CONFIG += qt warn_on debug_and_release cascades
-
-INCLUDEPATH += ../src
-SOURCES += ../src/*.cpp
-HEADERS += ../src/*.hpp ../src/*.h
-LIBS += -lbbpim
-
-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
35 PimCalendar/readme.txt
@@ -1,35 +0,0 @@
-Calendar
-
-========================================================================
-Sample Description.
-
-The Calendar example demonstrates how to implement a simple calendar application
-based on the PIM APIs as provided by BB10.
-
-You will learn how to:
-- List available events and filter them
-- Create, edit and delete events
-- Separate the business logic from the UI
-
-========================================================================
-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
61 PimCalendar/src/main.cpp
@@ -1,61 +0,0 @@
-/* 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 "Calendar.hpp"
-
-#include "EventEditor.hpp"
-#include "EventViewer.hpp"
-
-#include <bb/cascades/AbstractPane>
-#include <bb/cascades/Application>
-#include <bb/cascades/QmlDocument>
-
-#include <QLocale>
-#include <QTranslator>
-
-using namespace bb::cascades;
-
-int main(int argc, char **argv)
-{
-//! [0]
- // Register our custom types with QML, so that they can be used as property types
- qmlRegisterUncreatableType<EventEditor>("com.example.bb10samples.pim.calendar", 1, 0, "EventEditor", "Usage as property type and access to enums");
- qmlRegisterType<EventViewer>();
-//! [0]
-
- Application app(argc, argv);
-
- // localization support
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString::fromLatin1("calendar_%1").arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
-
-//! [1]
- // Load the UI description from main.qml
- QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
-
- // Make the Calendar object available to the UI as context property
- qml->setContextProperty("_calendar", new Calendar(&app));
-//! [1]
-
- // Create the application scene
- AbstractPane *appPage = qml->createRootObject<AbstractPane>();
- Application::instance()->setScene(appPage);
-
- return Application::exec();
-}
View
0  PimCalendar/x86/.gitignore
No changes.
View
35 PimMessages/Makefile
@@ -1,35 +0,0 @@
-QMAKE_TARGET = messages
-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
0  PimMessages/arm/.gitignore
No changes.
View
103 PimMessages/bar-descriptor.xml
@@ -1,103 +0,0 @@
-<?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.pim.messages</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>messages</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 messages 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>
- <configuration id="com.qnx.qcc.toolChain.1508195427" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/messages" entry="true" type="Qnx/Elf">messages</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.2119329596" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/messages" entry="true" type="Qnx/Elf">messages</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.253103508" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/messages" entry="true" type="Qnx/Elf">messages</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.445251176" name="Simulator-Debug">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/messages" entry="true" type="Qnx/Elf">messages</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <asset path="icon.png">icon.png</asset>
- <asset path="assets">assets</asset>
-
- <!-- Locale support -->
- <asset path="translations" dest="qm">
- <include name="*.qm"/>
- </asset>
-
- <!-- Request permission to execute native code. Required for native applications. -->