// Called from the Java Swing dispatch thread
void
DesktopIndicatorHandler::disable()
{
    removeNotify();
    PostThreadMessage(
        g_desktopIndicatorThread.getWinThreadId(),
        WM_DESKTOPINDICATOR, (WPARAM)disableCode,
        (LPARAM)this);
}
Esempio n. 2
0
void NotifyManager::nextNotify()
{
    if (lst.isEmpty())
    {
        return;
    }

    NotifyUI *showUI = lst.first();
    if (showUI->valid)
    {
        return;
    }
    showUI->valid = true;
    showUI->showAnimation();
    connect(showUI, SIGNAL(signalClose()), this, SLOT(nextNotify()));
    QTimer::singleShot(showUI->showTime(), this, SLOT(removeNotify()));
}
Esempio n. 3
0
TrayManager::~TrayManager()
{
	while (FNotifyOrder.count() > 0)
		removeNotify(FNotifyOrder.first());
	delete FContextMenu;
}