1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#include "sendevents.h"
6#include "framework/framework.h"
7#include "common/common.h"
8
9void SendEvents::projectActived(const dpfservice::ProjectInfo &info)
10{
11 project.activedProject(info);
12}
13
14void SendEvents::projectCreated(const dpfservice::ProjectInfo &info)
15{
16 project.createdProject(info);
17}
18
19void SendEvents::projectDeleted(const dpfservice::ProjectInfo &info)
20{
21 project.deletedProject(info);
22}
23
24void SendEvents::collaboratorsOpenRepos(const QString &workspace)
25{
26 dpf::Event event;
27 event.setTopic(T_COLLABORATORS);
28 event.setData(D_OPEN_REPOS);
29 event.setProperty(P_WORKSPACEFOLDER, workspace);
30 dpf::EventCallProxy::instance().pubEvent(event);
31}
32