Searched refs:watcher (Results 1 - 19 of 19) sorted by relevance

/haiku/src/servers/registrar/
H A DWatchingService.cpp37 A watcher is represented by an object of the Watcher or a derived class.
39 more than one watcher with the same target BMessenger at a time.
56 For each registered watcher \code Watcher *watcher \endcode, the map
57 contains an entry \code (watcher->Target(), watcher) \endcode.
87 /*! \brief Registers a new watcher to the watching service.
89 The ownership of \a watcher is transfered to the watching service, that
93 (Watcher::Target()), the old watcher is removed and deleted before the
96 \param watcher Th
101 AddWatcher(Watcher *watcher) argument
146 RemoveWatcher(Watcher *watcher, bool deleteWatcher) argument
212 Watcher *watcher = it->second; local
[all...]
H A DClipboard.cpp78 /*! \brief Adds a new watcher for this clipboard.
79 \param watcher The messenger referring to the new watcher.
80 \return \c true, if the watcher could be added successfully,
84 Clipboard::AddWatcher(BMessenger watcher) argument
86 return fWatchingService.AddWatcher(watcher);
90 /*! \brief Removes a watcher from this clipboard.
91 \param watcher The watcher to be removed.
92 \return \c true, if the supplied watcher wa
96 RemoveWatcher(BMessenger watcher) argument
[all...]
H A DEventMaskWatcher.cpp36 Each set bit in the watcher's event mask specifies an event the watcher
46 \brief The watcher's event mask.
51 \param target The watcher's message target.
52 \param eventMask the watcher's event mask.
61 /*! \brief Returns the watcher's event mask.
62 \return The watcher's event mask.
105 /*! \brief Returns whether the watcher-message pair satisfies the predicate
108 Returns \c true, if the supplied watcher is an EventMaskWatcher and its
112 \param watcher Th
117 Filter(Watcher *watcher, BMessage *message) argument
[all...]
H A DClipboard.h22 bool AddWatcher(BMessenger watcher);
23 bool RemoveWatcher(BMessenger watcher);
H A DWatchingService.h42 bool AddWatcher(Watcher *watcher);
44 bool RemoveWatcher(Watcher *watcher, bool deleteWatcher = true);
H A DPackageWatchingManager.cpp85 Watcher* watcher = new(std::nothrow) EventMaskWatcher(target, eventMask); local
86 if (watcher == NULL || !fWatchingService.AddWatcher(watcher)) {
87 delete watcher;
H A DWatcher.cpp45 \brief The watcher's message target.
49 /*! \brief Creates a new watcher with a specified target.
54 \param target The watcher's message target.
69 /*! \brief Returns the watcher's message target.
70 \return The watcher's message target.
79 /*! \brief Sends the supplied message to the watcher's message target.
121 /*! \brief Returns whether the watcher-message pair satisfies the predicate
126 \param watcher The watcher in question.
131 WatcherFilter::Filter(Watcher *watcher, BMessag argument
[all...]
H A DWatcher.h53 virtual bool Filter(Watcher *watcher, BMessage *message);
H A DEventMaskWatcher.h50 virtual bool Filter(Watcher *watcher, BMessage *message);
H A DTRoster.h80 status_t AddWatcher(Watcher* watcher);
81 void RemoveWatcher(Watcher* watcher);
H A DTRoster.cpp884 // add the new watcher
886 Watcher* watcher = new(nothrow) EventMaskWatcher(target, events); local
887 if (watcher) {
888 if (!fWatchingService.AddWatcher(watcher)) {
890 delete watcher;
924 // remove the watcher
1506 TRoster::AddWatcher(Watcher* watcher) argument
1510 if (!watcher)
1513 if (!fWatchingService.AddWatcher(watcher))
1521 TRoster::RemoveWatcher(Watcher* watcher) argument
[all...]
/haiku/src/servers/index/
H A DIndexServer.cpp149 VolumeWatcher* watcher = new VolumeWatcher(volume); local
150 /* if (!watcher->Enabled()) {
151 delete watcher;
154 fVolumeWatcherList.AddItem(watcher);
155 _SetupVolumeWatcher(watcher);
156 watcher->StartWatching();
163 VolumeWatcher* watcher = NULL; local
167 watcher = current;
172 if (!watcher)
175 watcher
212 VolumeWatcher* watcher = fVolumeWatcherList.ItemAt(i); local
270 VolumeWatcher* watcher = fVolumeWatcherList.ItemAt(i); local
279 _SetupVolumeWatcher(VolumeWatcher* watcher) argument
[all...]
H A DIndexServer.h82 void _SetupVolumeWatcher(VolumeWatcher* watcher);
H A DVolumeWatcher.h62 VolumeWorker(VolumeWatcher* watcher);
99 /*! Used to thread safe exchange refs. While the watcher thread file the current
100 list the worker thread can handle the second list. The worker thread gets his entries by calling SwapList while holding the watcher thread lock. */
H A DVolumeWatcher.cpp252 VolumeWorker::VolumeWorker(VolumeWatcher* watcher) argument
256 fVolumeWatcher(watcher),
/haiku/src/kits/midi2/
H A DMidiRosterLooper.h53 void StartWatching(const BMessenger* watcher);
90 // remote endpoints to the watcher. Used when the client
95 // between all registered remote endpoints to the watcher.
99 // Sends a B_MIDI_EVENT notification to the watcher
104 // Sends a B_MIDI_EVENT notification to the watcher
/haiku/src/kits/storage/
H A DPathMonitor.cpp671 Watcher* watcher = new(std::nothrow) Watcher(target); local
672 if (watcher == NULL || watcher->Init() != B_OK) {
673 delete watcher;
676 return watcher;
1997 Watcher* watcher = sWatchers->Lookup(target); local
1999 if (watcher != NULL) {
2002 if (PathHandler* handler = watcher->Lookup(path)) {
2011 watcher->Remove(handler);
2015 watcher
2052 Watcher* watcher = sWatchers->Lookup(target); local
2080 Watcher* watcher = sWatchers->Lookup(target); local
[all...]
/haiku/src/system/kernel/
H A Dteam.cpp3336 struct team_watcher* watcher; local
3337 while ((watcher = (struct team_watcher*)list_remove_head_item(
3339 watcher->hook(teamID, watcher->data);
3340 free(watcher);
3514 // create the watcher object
3515 team_watcher* watcher = (team_watcher*)malloc(sizeof(team_watcher));
3516 if (watcher == NULL)
3519 watcher->hook = hook;
3520 watcher
[all...]
/haiku/src/apps/diskprobe/
H A DDataEditor.cpp551 StateWatcher watcher(*this);
666 StateWatcher watcher(*this);
782 StateWatcher watcher(*this);
811 StateWatcher watcher(*this);

Completed in 94 milliseconds