QtMir ແລະ QtUbuntu¶
QtMir ແລະ QtUbuntu ແມ່ນ Qt Platform Abstractions (QPAs) ສຳລັບແພລັດຟອມ Ubuntu Touch. QtMir ປຽບເໝືອນເຊີເວີສຳລັບ Unity8 ໃນຂະນະທີ່ QtUbuntu ຖືກໃຊ້ສຳລັບແອັບພລິເຄຊັນລູກຂ່າຍ. ທັງສອງຊ່ວຍໃຫ້ສາມາດໃຊ້ການຈັດການລະດັບສູງຂອງ Qt ເຊັ່ນ surfaces, windows ແລະ controls ໂດຍບໍ່ຕ້ອງກັງວົນກ່ຽວກັບລະບົບປະຕິບັດການທີ່ຢູ່ເບື້ອງຫຼັງ.
QtMir¶
The QtMir QPA allows Unity8, the shell of Ubuntu Touch, to be written in QML and Qt C++ while operating on Mir Surfaces and Windows. It also allows the desktop to be represented and reasoned about as a Qt Scene Graph.
You'll find most of QtMir's logging in Unity8's logs, normally stored at /home/phablet/.cache/upstart/unity8 on Ubuntu Touch. Different logging categories, like qtmir.sessions and qtmir.surfaces, relate directly to different modules within QtMir's codebase.
ທ່ານສາມາດເປີດການເກັບ log ໃຫ້ລະອຽດຂຶ້ນ (verbose logging) ໄດ້ໂດຍການແກ້ໄຂໄຟລ໌ /usr/share/upstart/sessions/unity8.override:
env QT_LOGGING_RULES='qtmir.*=true'
ຈາກນັ້ນ ໃຫ້ restart Unity8:
restart unity8
QtUbuntu¶
QtUbuntu QPA ໃຊ້ Mir client API ແລະ Ubuntu Platform API ເພື່ອໃຫ້ແອັບ Ubuntu Touch ສາມາດເຮັດວຽກກັບຮາດແວໄດ້ຢ່າງສະຖຽນ.
ເນື່ອງຈາກ QtUbuntu ຖືກໃຊ້ໂດຍແອັບໂດຍກົງ, log ຂອງມັນຈະຢູ່ໃນໄຟລ໌ log ຂອງແອັບນັ້ນໆ. ທ່ານສາມາດຕັ້ງຄ່າ QT_LOGGING_RULES ເພື່ອເບິ່ງຂໍ້ມູນເພີ່ມເຕີມໄດ້.
initctl set-env QT_LOGGING_RULES='qt.qpa.mirclient.*=true'
ພວກເຮົາວາງແຜນທີ່ຈະປ່ຽນແທນ QtUbuntu ດ້ວຍ QtWayland ໃນອະນາຄົດ.
ອົງປະກອບ¶
QtUbuntu ມີອົງປະກອບຍ່ອຍຫຼາຍຢ່າງເພື່ອສະໜອງຟີເຈີຕ່າງໆໃນແພລັດຟອມ Ubuntu Touch.
QtUbuntu-Camera provides the aalCamera (Android Abstraction Layer Camera) plugin to QtMultimedia. This plugin allows apps to access Android device cameras through the QtMultimedia standard API. We are trying to replace this component with the gst-droid plugin for GStreamer for all new Android device ports.
QtUbuntu-Sensors provides Android haptic feedback, GPS, orientation, and accelerometer sensors to QtSensors. We are trying to replace this component with sensorfw, a single daemon capable of providing these functions using Android or standard Linux kernel drivers.
QtUbuntu-Media provides hardware encoding and decoding of audio/video content on Android devices to QtMultimedia. It is tightly integrated with media-hub.