"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/sync-error-service.h" between
seafile-client-9.0.1.tar.gz and seafile-client-9.0.2.tar.gz

About: Seafile (client) for the Seafile cloud storage system.

sync-error-service.h  (seafile-client-9.0.1):sync-error-service.h  (seafile-client-9.0.2)
skipping to change at line 22 skipping to change at line 22
/** /**
* record the latest sync error id * record the latest sync error id
*/ */
class LastSyncError { class LastSyncError {
SINGLETON_DEFINE(LastSyncError) SINGLETON_DEFINE(LastSyncError)
public: public:
struct SyncErrorInfo { struct SyncErrorInfo {
int id; int id;
}; };
struct RepoSyncError {
QString account_sig;
QString repo_id;
int err_id;
};
void start(); void start();
void saveLatestErrorID(const int id); void saveLatestErrorID(const int id);
int getLastSyncErrorID(); int getLastSyncErrorID();
// getRepoSyncError returns the flagged error id of a repo, or -1 if not exi
sts.
int getRepoSyncError(const QString repo_id);
void flagRepoSyncError(const QString repo_id, int err_id);
void cleanRepoSyncErrors(const QString repo_id);
void cleanAllSyncErrors();
QList<LastSyncError::SyncErrorInfo> getAllSyncErrorsInfo(); QList<LastSyncError::SyncErrorInfo> getAllSyncErrorsInfo();
private: private:
LastSyncError(); LastSyncError();
~LastSyncError(); ~LastSyncError();
static bool collectSyncError(sqlite3_stmt *stmt, void *data); static bool collectSyncError(sqlite3_stmt *stmt, void *data);
static bool collectRepoSyncError(sqlite3_stmt *stmt, void *data);
sqlite3 *db_; sqlite3 *db_;
}; };
#endif // SEAFILE_CLIENT_SYNC_ERROR_H #endif // SEAFILE_CLIENT_SYNC_ERROR_H
 End of changes. 3 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)