Changeset d2a5bf8 in subsurface


Ignore:
Timestamp:
Jul 9, 2017, 12:50:22 PM (2 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
8e5c211e
Parents:
55df597
git-author:
Dirk Hohndel <dirk@…> (07/09/17 12:43:06)
git-committer:
Dirk Hohndel <dirk@…> (07/09/17 12:50:22)
Message:

QML UI: add dev_info data to AppLog?

This should make it easier to tell how far we get downloading data
from dive computers.

Signed-off-by: Dirk Hohndel <dirk@…>

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/libdivecomputer.c

    rd5793ea rd2a5bf8  
    3838char *logfile_name;
    3939const char *progress_bar_text = "";
     40void (*progress_callback)(const char *text) = NULL;
    4041double progress_bar_fraction = 0.0;
    4142
     
    485486        va_end(ap);
    486487        progress_bar_text = buffer;
     488        if (progress_callback)
     489                (*progress_callback)(buffer);
    487490}
    488491
  • core/libdivecomputer.h

    rd01b7bf rd2a5bf8  
    5353extern int import_thread_cancelled;
    5454extern const char *progress_bar_text;
     55extern void (*progress_callback)(const char *text);
    5556extern double progress_bar_fraction;
    5657extern char *logfile_name;
  • mobile-widgets/qmlmanager.cpp

    rc9c9a839 rd2a5bf8  
    9494        // create location manager service
    9595        locationProvider = new GpsLocation(&appendTextToLogStandalone, this);
     96        progress_callback = &appendTextToLogStandalone;
    9697        connect(locationProvider, SIGNAL(haveSourceChanged()), this, SLOT(hasLocationSourceChanged()));
    9798        setLocationServiceAvailable(locationProvider->hasLocationsSource());
Note: See TracChangeset for help on using the changeset viewer.