cdb045b72b
Fixed onAppendText() and onReplaceLast(): Watch out for special suffixes.
GerhardHoffmann2023-08-07 13:59:44 +02:00
6d43cf4c9f
Send custom events to the progress bar according to the state of the update process. Changed the handling of messages for the text edit.
GerhardHoffmann2023-08-07 13:56:51 +02:00
4ff3b0efdf
Advance the progress bar in the foreground when a long running task in the background (e.g. git clone).
GerhardHoffmann2023-08-06 20:44:26 +02:00
1fd2269753
onAppendText() only appends text. onReplaceLast() replaces the last line in the text edit window.
GerhardHoffmann2023-08-06 14:14:47 +02:00
f88b0edb2a
Fix for the case when several branches are edited: 'git fetch' will display several lines then, not only one.
GerhardHoffmann2023-08-04 13:35:42 +02:00
0b7d504a7a
Fixed missing git pull command. Fixed missing update for text-edit when only clone the customer repository.
GerhardHoffmann2023-08-02 16:53:19 +02:00
6a4a852fd6
Updated for new device controller lib (CAmaster)
GerhardHoffmann2023-08-02 15:52:01 +02:00
81a9304438
Worker is the work-horse of the update process. Using ismas-client it sends requests to APISM and gets results in a synchronous fashion. Add previous emits to git client and apism client have been removed.
GerhardHoffmann2023-08-02 15:50:04 +02:00
332d689b8c
Add worker-object to be able to update for the worker.
GerhardHoffmann2023-08-02 15:47:19 +02:00
ce1b1859df
Removed apism-client and tcp-client. All done inside of ismas client now.
GerhardHoffmann2023-08-02 15:18:39 +02:00
371cc1a187
Removed communication with ISMAS from git client.
GerhardHoffmann2023-08-02 15:17:10 +02:00
a94606ca89
Added sendRequestReceiveResponse(): static member for communication with APISM, on ports 7777 and 7778. Each request is immediately handled in a synchronous fashion. Added several helper functions to format messages to be sent to APISM/ISMAS.
GerhardHoffmann2023-08-02 15:13:05 +02:00
37c5c7c4f6
Simplified interface. When doing a clone of the repository, do not execute any other commands.
GerhardHoffmann2023-07-17 16:49:44 +02:00
5eb33f3e31
Minor change: renamed function sendUpdateInfToIsmas() to emulateUpdatesAvailable() for clarity.
GerhardHoffmann2023-07-17 16:48:04 +02:00
43f5f3ecae
Removed usage of any files. Removed any dependencies on git-hooks. Removed handling of opkg-related things: they are done now inside the worker itself.
GerhardHoffmann2023-07-17 16:45:11 +02:00
c503750e90
Simplified interface of ctor. onHandleChangedFiles(): split handling of opkg_commands-file and downloading of DC/JSON-Files. rsync to file-system only once these operations were successful.
GerhardHoffmann2023-07-17 16:43:05 +02:00
f5198efab3
Added worker/worker-thread-pair. Worker uses event-loop of worker-thread. Worker itself is used as work-horse for the update-process.
GerhardHoffmann2023-07-14 13:32:00 +02:00
d6446f90fe
Removed C++-thread-handling, replaced it with Qt-versions. Using explicit Worker instance instead.
GerhardHoffmann2023-07-14 13:29:52 +02:00
58bceb5d27
Started ISMASClient providing the data to be sent to ISMAS. It does not send to ISMAS itself.
GerhardHoffmann2023-07-14 13:28:41 +02:00
92084bed99
Added call to waitForConnected() when doing a connectToHost(). Replaced some qCritical() with qDebug()-calls.
GerhardHoffmann2023-07-14 13:27:14 +02:00
cd1c92a7db
Copied from ATBQT app. Added slots requestAvailableIsmasUpdates(), sendCmdSendVersionToIsmas() and sendUpdateInfoToIsmas().
GerhardHoffmann2023-07-14 13:24:14 +02:00
3c54d8de6d
Made GitClient a Qt-object. Impreoved several utility functions handling git commands. Added slot onIsmasUpdatesAvailable(). Added helpers getLastCommit(), gitBlob(), gitCommitForBlob(), gitIsFileTracked().
GerhardHoffmann2023-07-14 13:16:01 +02:00
d91d4261d9
Add another utility function and added signal/slot ismasUpdatesAvailable/onIsmasUpdatesAvailable().
GerhardHoffmann2023-07-14 13:13:03 +02:00
9df425f5f8
Use Qt to format debug-info. Note that the full info is visible only in debug-mode.
GerhardHoffmann2023-07-14 12:58:23 +02:00
5149a67d4b
Provide the possibility to pass parameters to a command using a string-list. Has to be improved later.
GerhardHoffmann2023-07-14 12:56:33 +02:00
26db620465
use of worker/worker-thread so we can work without using buttons (as the cannot be triggered by an automatic update process)
GerhardHoffmann2023-07-11 16:58:49 +02:00