Model used as a list of allready uploaded files. More...
#include <fileselectionmodel.h>
Public Member Functions | |
FilesUploadedModel (QObject *parent=0) |
Model used as a list of allready uploaded files.
This class is simply an indicator and should not be relied on. Currently, there are no references for the source of data kept in the database. The files listed are only saved by the application after each successful upload of a file. Their uniqueness is based on their modification name and file name.
A proper implementation would require a md5 checksum or something similar to the AICH check sum used by eMule for proper indication. Also each data should contain a reference to it's source.
FilesUploadedModel::FilesUploadedModel | ( | QObject * | parent = 0 |
) |
: SqlQueryModel(parent) { static QString query = QString("SELECT * FROM tbl_files_uploaded"); setQuery(Database::execStatic(query)); }