~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to include/file/CFileSender.h

  • Committer: Nathan Osman
  • Date: 2012-06-28 03:33:35 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628033335-w6t0h1ltwr21fv6b
Implemented progress of individual file transfers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
    private slots:
50
50
 
 
51
        void OnBytesWritten(qint64);
51
52
        void OnConnected();
52
53
        void OnData(QByteArray);
53
54
 
63
64
 
64
65
        void PrepareHeaders(QStringList);
65
66
        void SendFile(CFileHeader *);
 
67
        double CalculateProgress(double current, double total) { return current / total; }
66
68
 
67
69
        QList<CFileHeader *> m_headers;
68
 
        qint64 m_total_uncompressed;
69
 
        qint64 m_current_uncompressed;
 
70
 
 
71
        /* Yes, I do believe in verbosity - code completion to the rescue! */
 
72
        qint64 m_total_uncompressed_bytes,
 
73
               m_total_uncompressed_bytes_so_far;
 
74
        qint64 m_current_file_uncompressed_bytes,
 
75
               m_current_file_transfer_bytes,
 
76
               m_current_file_bytes_so_far;
 
77
 
70
78
};
71
79
 
72
80
#endif // CFILESENDER_H