diff options
| author | Anton <anton@picapica> | 2019-03-04 20:06:51 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-04 20:06:51 +0400 |
| commit | d1e06b9877096c848a8660bb476377b85cabcbbd (patch) | |
| tree | 8bc55d6a90f63d3d18e2f41b8bfb8082d1a1cce2 /pica-client/skynet.h | |
| parent | 0f7e68383a797309c382710567c76a469c8d0904 (diff) | |
| download | pica-pica-d1e06b9877096c848a8660bb476377b85cabcbbd.tar.gz pica-pica-d1e06b9877096c848a8660bb476377b85cabcbbd.zip | |
pica-client: start timer with zero interval when file transfer is active
Diffstat (limited to 'pica-client/skynet.h')
| -rw-r--r-- | pica-client/skynet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pica-client/skynet.h b/pica-client/skynet.h index cb948e0..32b574f 100644 --- a/pica-client/skynet.h +++ b/pica-client/skynet.h @@ -93,6 +93,7 @@ private: QMap<QByteArray, QList<QString> > sndfilequeues; int retry_timer_id; int event_loop_timer_id; + int file_transfer_timer_id; void timerEvent(QTimerEvent * e); @@ -100,6 +101,10 @@ private: struct PICA_c2c *find_active_chan(QByteArray peer_id); QList<QByteArray> filter_existing_chans(QList<QByteArray> peer_ids); bool open_account(); + void active_filetransfers_up(); + void active_filetransfers_down(); + void active_filetransfers_reset(); + quint32 active_filetransfers; void emit_MessageReceived(QByteArray from, QString msg); void emit_UnableToDeliver(QByteArray to, QString msg); |
