File: file-loading.md

package info (click to toggle)
libgedit-gfls 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 448 kB
  • sloc: ansic: 1,748; xml: 57; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
libgedit-gfls :: file loading TODO list
=======================================

File loading steps
------------------

Name: GflsLoadingDriver, or GflsLoadingManager, or GflsLoader.

Steps:

1. Create a GflsLoaderConfig(Simple).
2. (Optional) If GFile as input, query the GFileInfo.
3. (Optional) Check the GFileInfo against the GflsLoaderConfig(Simple) (check
   the file size).
4. Load all the raw content into memory (with max size).
5. (Optional) Transform if needed the raw content into the final content
   suitable to be inserted into a GtkTextBuffer (encoding conversion, splitting
   very long lines, escaping invalid characters and maybe others, keeping the
   relevant information along the way in order to reverse the operation - or
   show an error - upon saving).
6. Insert the final content into the GtkTextBuffer.