Use a C++ class to read content from plain text files

Bug #1398773 reported by Stefano Verzegnassi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Document Viewer App
Triaged
Medium
Stefano Verzegnassi

Bug Description

At the moment, our plain text reader use QML XMLHttpRequest to read the content of a file.
In file-qml-plugin we have a C++ class to do the same work, which would result in a cleaner and better code.

We should switch to use that C++ class as soon as possible, since we want to add some "advanced" features that are available in C++ Qt API only.

DESIRED SOLUTION:
Use FileReader class from file-qml-plugin, instead of XMLHttpRequest.
Also, we should provided the file content as QQuickTextDocument[1], so that we can have some advanced feature (e.g. syntax highlighting)

[1]: http://doc.qt.io/qt-5/qquicktextdocument.html

Related branches

Changed in ubuntu-docviewer-app:
status: Triaged → In Progress
assignee: nobody → Stefano Verzegnassi (verzegnassi-stefano)
Changed in ubuntu-docviewer-app:
status: In Progress → Triaged
Changed in ubuntu-docviewer-app:
assignee: Stefano Verzegnassi (verzegnassi-stefano) → nobody
importance: High → Medium
summary: - Use file-qml-plugin FileReader class, to read content from plain text
- files
+ Use a C++ class to read content from plain text files
description: updated
tags: removed: bitesize
Changed in ubuntu-docviewer-app:
milestone: none → 2015-04-23
Changed in ubuntu-docviewer-app:
status: Triaged → Won't Fix
status: Won't Fix → In Progress
assignee: nobody → Stefano Verzegnassi (verzegnassi-stefano)
Changed in ubuntu-docviewer-app:
milestone: 2015-04-23 → 2015-04-30
Changed in ubuntu-docviewer-app:
status: In Progress → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.