Notification.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // Notification.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/Notification.h#1 $
  5. //
  6. // Library: Foundation
  7. // Package: Notifications
  8. // Module: Notification
  9. //
  10. // Definition of the Notification class.
  11. //
  12. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  13. // and Contributors.
  14. //
  15. // SPDX-License-Identifier: BSL-1.0
  16. //
  17. #ifndef Foundation_Notification_INCLUDED
  18. #define Foundation_Notification_INCLUDED
  19. #include "Poco/Foundation.h"
  20. #include "Poco/Mutex.h"
  21. #include "Poco/RefCountedObject.h"
  22. #include "Poco/AutoPtr.h"
  23. namespace Poco {
  24. class Foundation_API Notification: public RefCountedObject
  25. /// The base class for all notification classes used
  26. /// with the NotificationCenter and the NotificationQueue
  27. /// classes.
  28. /// The Notification class can be used with the AutoPtr
  29. /// template class.
  30. {
  31. public:
  32. typedef AutoPtr<Notification> Ptr;
  33. Notification();
  34. /// Creates the notification.
  35. virtual std::string name() const;
  36. /// Returns the name of the notification.
  37. /// The default implementation returns the class name.
  38. protected:
  39. virtual ~Notification();
  40. };
  41. } // namespace Poco
  42. #endif // Foundation_Notification_INCLUDED