}
}
- _model->setAccountState(0); // Else it might access during destruction. This should be better handled by it having a QSharedPointer
+ // Else it might access during destruction. This should be better handled by it having a QSharedPointer
+ _model->setAccountState(0);
+
auto manager = AccountManager::instance();
manager->deleteAccount(_accountState);
manager->save();
QVariant target = r->attribute(QNetworkRequest::RedirectionTargetAttribute);
if (target.isValid()) {
_stillValid = false;
- qCWarning(lcShibboleth) << "detected redirect, will open Login Window"; // will be done in NetworkJob's finished signal
+ // The Login window will be opened in NetworkJob's finished signal
+ qCWarning(lcShibboleth) << "detected redirect, will open Login Window";
} else {
//_stillValid = true; // gets set when reading from keychain or getting it from browser
}
QString _lastErrorString;
bool _fetchingLabel; // Whether a 'fetching in progress' label is shown.
- bool _isUndecided; // undecided folders are the big folders that the user has not accepted yet
+ // undecided folders are the big folders that the user has not accepted yet
+ bool _isUndecided;
Qt::CheckState _checked;
signals:
void dirtyChanged();
- void suggestExpand(const QModelIndex &); // Tell the view that this item should be expanded because it has an undecided item
+
+ // Tell the view that this item should be expanded because it has an undecided item
+ void suggestExpand(const QModelIndex &);
friend struct SubFolderInfo;
};
void relativeDownloadDelayTimerExpired();
private:
- QTimer _switchingTimer; // for switching between absolute and relative bw limiting
- OwncloudPropagator *_propagator; // FIXME this timer and this variable should be replaced
+ // for switching between absolute and relative bw limiting
+ QTimer _switchingTimer;
+
+ // FIXME this timer and this variable should be replaced
// by the propagator emitting the changed limit values to us as signal
+ OwncloudPropagator *_propagator;
- QTimer _absoluteLimitTimer; // for absolute up/down bw limiting
+ // for absolute up/down bw limiting
+ QTimer _absoluteLimitTimer;
+ // FIXME merge these two lists
QLinkedList<UploadDevice*> _absoluteUploadDeviceList;
- QLinkedList<UploadDevice*> _relativeUploadDeviceList; // FIXME merge with list above ^^
+ QLinkedList<UploadDevice*> _relativeUploadDeviceList;
+
QTimer _relativeUploadMeasuringTimer;
- QTimer _relativeUploadDelayTimer; // for relative bw limiting, we need to wait this amount before measuring again
- UploadDevice *_relativeLimitCurrentMeasuredDevice; // the device measured
- qint64 _relativeUploadLimitProgressAtMeasuringRestart; // for measuring how much progress we made at start
+
+ // for relative bw limiting, we need to wait this amount before measuring again
+ QTimer _relativeUploadDelayTimer;
+
+ // the device measured
+ UploadDevice *_relativeLimitCurrentMeasuredDevice;
+
+ // for measuring how much progress we made at start
+ qint64 _relativeUploadLimitProgressAtMeasuringRestart;
qint64 _currentUploadLimit;
QLinkedList<GETFileJob*> _downloadJobList;
QTimer _relativeDownloadMeasuringTimer;
- QTimer _relativeDownloadDelayTimer; // for relative bw limiting, we need to wait this amount before measuring again
- GETFileJob *_relativeLimitCurrentMeasuredJob; // the device measured
- qint64 _relativeDownloadLimitProgressAtMeasuringRestart; // for measuring how much progress we made at start
+
+ // for relative bw limiting, we need to wait this amount before measuring again
+ QTimer _relativeDownloadDelayTimer;
+
+ // the device measured
+ GETFileJob *_relativeLimitCurrentMeasuredJob;
+
+ // for measuring how much progress we made at start
+ qint64 _relativeDownloadLimitProgressAtMeasuringRestart;
+
qint64 _currentDownloadLimit;
};
DiscoveryDirectoryResult *directoryResult = static_cast<DiscoveryDirectoryResult*> (dhandle);
QString path = directoryResult->path;
qCDebug(lcDiscovery) << discoveryJob << path;
- delete directoryResult; // just deletes the struct and the iterator, the data itself is owned by the SyncEngine/DiscoveryMainThread
+ // just deletes the struct and the iterator, the data itself is owned by the SyncEngine/DiscoveryMainThread
+ delete directoryResult;
}
}
record._contentChecksumType = oldRecord._contentChecksumType;
if (record._fileSize != oldRecord._fileSize) {
qCWarning(lcPropagateRemoteMove) << "File sizes differ on server vs sync journal: " << record._fileSize << oldRecord._fileSize;
- record._fileSize = oldRecord._fileSize; // server might have claimed different size, we take the old one from the DB
+
+ // the server might have claimed a different size, we take the old one from the DB
+ record._fileSize = oldRecord._fileSize;
}
}
*/
void restoreOldFiles(SyncFileItemVector &syncItems);
- bool _hasNoneFiles; // true if there is at least one file which was not changed on the server
- bool _hasRemoveFile; // true if there is at leasr one file with instruction REMOVE
- bool _hasForwardInTimeFiles; // true if there is at least one file from the server that goes forward in time
- int _backInTimeFiles; // number of files which goes back in time from the server
+ // true if there is at least one file which was not changed on the server
+ bool _hasNoneFiles;
+
+ // true if there is at leasr one file with instruction REMOVE
+ bool _hasRemoveFile;
+
+ // true if there is at least one file from the server that goes forward in time
+ bool _hasForwardInTimeFiles;
+
+ // number of files which goes back in time from the server
+ int _backInTimeFiles;
int _uploadLimit;
SqlQuery query(_db);
// This query will match entries for which the path is a prefix of fileName
- query.prepare("UPDATE metadata SET md5='_invalid_' WHERE ?1 LIKE(path||'/%') AND type == 2;"); // CSYNC_FTW_TYPE_DIR == 2
+ // Note: CSYNC_FTW_TYPE_DIR == 2
+ query.prepare("UPDATE metadata SET md5='_invalid_' WHERE ?1 LIKE(path||'/%') AND type == 2;");
query.bindValue(1, fileName);
query.exec();