1/* 2 * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef PACKAGE_WATCHING_MANAGER_H 6#define PACKAGE_WATCHING_MANAGER_H 7 8 9#include "WatchingService.h" 10 11 12class PackageWatchingManager { 13public: 14 PackageWatchingManager(); 15 ~PackageWatchingManager(); 16 17 void HandleStartStopWatching(BMessage* request); 18 void NotifyWatchers(BMessage* message); 19 20private: 21 status_t _AddWatcher(const BMessage* request); 22 status_t _RemoveWatcher(const BMessage* request); 23 24private: 25 WatchingService fWatchingService; 26}; 27 28 29#endif // PACKAGE_WATCHING_MANAGER_H 30