poco/Foundation/src/TaskNotification.cpp
Roger Meier b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00

95 lines
1.4 KiB
C++

//
// TaskNotification.cpp
//
// $Id: //poco/1.4/Foundation/src/TaskNotification.cpp#1 $
//
// Library: Foundation
// Package: Tasks
// Module: Tasks
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/TaskNotification.h"
namespace Poco {
TaskNotification::TaskNotification(Task* pTask):
_pTask(pTask)
{
if (_pTask) _pTask->duplicate();
}
TaskNotification::~TaskNotification()
{
if (_pTask) _pTask->release();
}
TaskStartedNotification::TaskStartedNotification(Task* pTask):
TaskNotification(pTask)
{
}
TaskStartedNotification::~TaskStartedNotification()
{
}
TaskCancelledNotification::TaskCancelledNotification(Task* pTask):
TaskNotification(pTask)
{
}
TaskCancelledNotification::~TaskCancelledNotification()
{
}
TaskFinishedNotification::TaskFinishedNotification(Task* pTask):
TaskNotification(pTask)
{
}
TaskFinishedNotification::~TaskFinishedNotification()
{
}
TaskFailedNotification::TaskFailedNotification(Task* pTask, const Exception& exc):
TaskNotification(pTask),
_pException(exc.clone())
{
}
TaskFailedNotification::~TaskFailedNotification()
{
delete _pException;
}
TaskProgressNotification::TaskProgressNotification(Task* pTask, float progress):
TaskNotification(pTask),
_progress(progress)
{
}
TaskProgressNotification::~TaskProgressNotification()
{
}
} // namespace Poco