update, should now be working Toasts for splitheader channels

This commit is contained in:
apa420
2018-08-11 16:11:51 +02:00
parent 77411f7012
commit 2de99ca9f5
3 changed files with 126 additions and 13 deletions
@@ -36,6 +36,12 @@ void NotificationController::updateChannelNotification(
bool NotificationController::isChannelNotified(const QString &channelName)
{
for (std::vector<int>::size_type i = 0;
i != notificationVector.getVector().size(); i++) {
qDebug() << notificationVector.getVector()[i]
<< " vector to the left channel to the right " << channelName
<< " vectorsize:" << notificationVector.getVector().size();
}
for (std::vector<int>::size_type i = 0;
i != notificationVector.getVector().size(); i++) {
if (notificationVector.getVector()[i] == channelName) {
@@ -44,7 +50,7 @@ bool NotificationController::isChannelNotified(const QString &channelName)
}
return false;
}
/*
class CustomHandler : public WinToastLib::IWinToastHandler
{
public:
@@ -85,7 +91,7 @@ public:
}
}
};
*/
void NotificationController::addChannelNotification(const QString &channelName)
{
notificationVector.appendItem(channelName);
@@ -93,7 +99,7 @@ void NotificationController::addChannelNotification(const QString &channelName)
if (WinToastLib::WinToast::isCompatible()) {
QDir dir;
qDebug() << "NaM" << dir.absolutePath();
;
/*
WinToastLib::WinToastTemplate templ = WinToastLib::WinToastTemplate(
WinToastLib::WinToastTemplate::ImageAndText02);
@@ -111,6 +117,7 @@ void NotificationController::addChannelNotification(const QString &channelName)
WinToastLib::WinToast::instance()->initialize();
WinToastLib::WinToast::instance()->showToast(templ,
new CustomHandler());
*/
}
}