MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / notify

Method notify

src/plugins/core/depend/dependencemanager.cpp:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void DependenceManagerPrivate::notify()
58{
59 using namespace std::placeholders;
60 if (!notifiable)
61 notifyTimer.start();
62
63 QStringList actionList { CancelActionID, DependenceManager::tr("Cancel"),
64 ViewDetails, DependenceManager::tr("View Details"),
65 InstallActionID, DependenceManager::tr("Install") };
66
67 QMutexLocker lk(&mutex);
68 while (!infoList.isEmpty()) {
69 const auto &info = infoList.takeFirst();
70 auto cb = std::bind(&DependenceManagerPrivate::handleActionInvoke, this, _1, info);
71 QString msg = DependenceManager::tr("Request to install some dependency packages. "
72 "Do you want to install them?");
73 NotificationManager::instance()->notify(0, info.plugin, msg, actionList, cb);
74 }
75}
76
77void DependenceManagerPrivate::handleActionInvoke(const QString &actId, const InstallInfo &info)
78{

Callers 12

toolMissingHintMethod · 0.45
runMethod · 0.45
runMethod · 0.45
notifyFunction · 0.45
notifyMessageMethod · 0.45
initConnectionsMethod · 0.45
startMethod · 0.45
acceptMethod · 0.45
foreachFunction · 0.45
execBuildStepMethod · 0.45
createRootItemMethod · 0.45
checkModelValidMethod · 0.45

Calls 2

startMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected