mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
Reformatting: Adjust trailing comments
These would otherwise be line-wrapped by clang-format, and then consecutive reformattings remove the aligned comment indentation Example: int a; // too long comment -> int a; // too long // comment -> int a; // too long // comment
This commit is contained in:
parent
566e6c813e
commit
df3fe25702
8 changed files with 57 additions and 21 deletions
|
@ -778,7 +778,9 @@ void AccountSettings::slotDeleteAccount()
|
|||
}
|
||||
}
|
||||
|
||||
_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();
|
||||
|
|
|
@ -108,7 +108,8 @@ void ShibbolethCredentials::slotReplyFinished(QNetworkReply* r)
|
|||
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
|
||||
}
|
||||
|
|
|
@ -70,7 +70,8 @@ public:
|
|||
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;
|
||||
|
||||
|
@ -150,7 +151,9 @@ private:
|
|||
|
||||
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;
|
||||
};
|
||||
|
|
|
@ -61,25 +61,44 @@ public slots:
|
|||
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;
|
||||
};
|
||||
|
||||
|
|
|
@ -667,7 +667,8 @@ void DiscoveryJob::remote_vio_closedir_hook (csync_vio_handle_t *dhandle, void
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -173,7 +173,9 @@ void PropagateRemoteMove::finalize()
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -238,10 +238,17 @@ private:
|
|||
*/
|
||||
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;
|
||||
|
|
|
@ -1631,7 +1631,8 @@ void SyncJournalDb::avoidReadFromDbOnNextSync(const QString& fileName)
|
|||
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue