"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ext-handler.h" between
seafile-client-7.0.4.tar.gz and seafile-client-7.0.5.tar.gz

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

ext-handler.h  (seafile-client-7.0.4):ext-handler.h  (seafile-client-7.0.5)
skipping to change at line 26 skipping to change at line 26
class SeafileRpcClient; class SeafileRpcClient;
class ExtConnectionListenerThread; class ExtConnectionListenerThread;
class ApiError; class ApiError;
/** /**
* Handles commands from seafile shell extension * Handles commands from seafile shell extension
*/ */
class SeafileExtensionHandler : public QObject { class SeafileExtensionHandler : public QObject {
SINGLETON_DEFINE(SeafileExtensionHandler) SINGLETON_DEFINE(SeafileExtensionHandler)
Q_OBJECT Q_OBJECT
public: public:
SeafileExtensionHandler(); SeafileExtensionHandler();
void start(); void start();
void stop(); void stop();
private slots: private slots:
void onShareLinkGenerated(const QString& link); void onShareLinkGenerated(const QString& link);
void onLockFileSuccess(); void onLockFileSuccess();
void onLockFileFailed(const ApiError& error); void onLockFileFailed(const ApiError& error);
void generateShareLink(const QString& repo_id, void generateShareLink(const QString& repo_id,
skipping to change at line 48 skipping to change at line 49
bool internal); bool internal);
void lockFile(const QString& repo_id, void lockFile(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool lock); bool lock);
void privateShare(const QString& repo_id, void privateShare(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool to_group); bool to_group);
void openUrlWithAutoLogin(const QUrl& url); void openUrlWithAutoLogin(const QUrl& url);
void onGetSmartLinkSuccess(const QString& smart_link, const QString& protoco l_link); void onGetSmartLinkSuccess(const QString& smart_link, const QString& protoco l_link);
void onGetSmartLinkFailed(const ApiError& error); void onGetSmartLinkFailed(const ApiError& error);
void getUploadLink(const QString& repo, const QString& path_in_repo);
void onGetUploadLinkSuccess(const QString &upload_link);
void onGetUploadLinkFailed(const ApiError& error);
void showLockedBy(const QString& repo_id, const QString& path_in_repo); void showLockedBy(const QString& repo_id, const QString& path_in_repo);
void onGetFileLockInfoSuccess(bool found, const QString &owner); void onGetFileLockInfoSuccess(bool found, const QString &owner);
void onGetFileLockInfoFailed(const ApiError& error); void onGetFileLockInfoFailed(const ApiError& error);
private: private:
ExtConnectionListenerThread *listener_thread_; ExtConnectionListenerThread *listener_thread_;
bool started_; bool started_;
}; };
skipping to change at line 83 skipping to change at line 87
bool is_file, bool is_file,
bool internal); bool internal);
void lockFile(const QString& repo_id, void lockFile(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool lock); bool lock);
void privateShare(const QString& repo_id, void privateShare(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool to_group); bool to_group);
void openUrlWithAutoLogin(const QUrl& url); void openUrlWithAutoLogin(const QUrl& url);
void showLockedBy(const QString& repo_id, const QString& path_in_repo); void showLockedBy(const QString& repo_id, const QString& path_in_repo);
void getUploadLink(const QString& repo_id, const QString& path_in_repo);
private: private:
void servePipeInNewThread(HANDLE pipe); void servePipeInNewThread(HANDLE pipe);
}; };
/** /**
* Serves one extension connection. * Serves one extension connection.
* *
* It's an endless loop of "read request" -> "handle request" -> "send response" . * It's an endless loop of "read request" -> "handle request" -> "send response" .
*/ */
skipping to change at line 112 skipping to change at line 117
bool is_file, bool is_file,
bool internal); bool internal);
void lockFile(const QString& repo_id, void lockFile(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool lock); bool lock);
void privateShare(const QString& repo_id, void privateShare(const QString& repo_id,
const QString& path_in_repo, const QString& path_in_repo,
bool to_group); bool to_group);
void openUrlWithAutoLogin(const QUrl& url); void openUrlWithAutoLogin(const QUrl& url);
void showLockedBy(const QString& repo_id, const QString& path_in_repo); void showLockedBy(const QString& repo_id, const QString& path_in_repo);
void getUploadLink(const QString& repo_id, const QString& path_in_repo);
private: private:
HANDLE pipe_; HANDLE pipe_;
QList<LocalRepo> listLocalRepos(quint64 ts = 0); QList<LocalRepo> listLocalRepos(quint64 ts = 0);
bool readRequest(QStringList *args); bool readRequest(QStringList *args);
bool sendResponse(const QString& resp); bool sendResponse(const QString& resp);
void handleGenShareLink(const QStringList& args, bool internal); void handleGenShareLink(const QStringList& args, bool internal);
QString handleListRepos(const QStringList& args); QString handleListRepos(const QStringList& args);
QString handleGetFileStatus(const QStringList& args); QString handleGetFileStatus(const QStringList& args);
void handleLockFile(const QStringList& args, bool lock); void handleLockFile(const QStringList& args, bool lock);
void handlePrivateShare(const QStringList& args, bool to_group); void handlePrivateShare(const QStringList& args, bool to_group);
void handleShowHistory(const QStringList& args); void handleShowHistory(const QStringList& args);
void handleShowLockedBy(const QStringList& args); void handleShowLockedBy(const QStringList& args);
void handleGetUploadLink(const QStringList& args);
}; };
class ReposInfoCache : public QObject { class ReposInfoCache : public QObject {
SINGLETON_DEFINE(ReposInfoCache) SINGLETON_DEFINE(ReposInfoCache)
Q_OBJECT Q_OBJECT
public: public:
ReposInfoCache(QObject *parent=0); ReposInfoCache(QObject *parent=0);
void start(); void start();
QList<LocalRepo> getReposInfo(quint64 timestamp = 0); QList<LocalRepo> getReposInfo(quint64 timestamp = 0);
 End of changes. 5 change blocks. 
0 lines changed or deleted 7 lines changed or added

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