1/* 2Open Tracker License 3 4Terms and Conditions 5 6Copyright (c) 1991-2000, Be Incorporated. All rights reserved. 7 8Permission is hereby granted, free of charge, to any person obtaining a copy of 9this software and associated documentation files (the "Software"), to deal in 10the Software without restriction, including without limitation the rights to 11use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12of the Software, and to permit persons to whom the Software is furnished to do 13so, subject to the following conditions: 14 15The above copyright notice and this permission notice applies to all licensees 16and shall be included in all copies or substantial portions of the Software. 17 18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY, 20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 22AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION 23WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 25Except as contained in this notice, the name of Be Incorporated shall not be 26used in advertising or otherwise to promote the sale, use or other dealings in 27this Software without prior written authorization from Be Incorporated. 28 29Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks 30of Be Incorporated in the United States and other countries. Other brand product 31names are registered trademarks or trademarks of their respective holders. 32All rights reserved. 33*/ 34 35// DesktopPoseView adds support for displaying integrated desktops 36// from multiple volumes to BPoseView 37#ifndef _DESKTOP_POSE_VIEW_H 38#define _DESKTOP_POSE_VIEW_H 39 40 41#include "EntryIterator.h" 42#include "PoseView.h" 43 44 45namespace BPrivate { 46 47class DesktopPoseView : public BPoseView { 48 // overrides BPoseView to add desktop-view specific code 49public: 50 DesktopPoseView(Model*, uint32 viewMode); 51 52 static EntryListBase* InitDesktopDirentIterator(BPoseView*, 53 const entry_ref*); 54 55 void ShowVolumes(bool visible, bool showShared); 56 57 void StartSettingsWatch(); 58 void StopSettingsWatch(); 59 60 virtual bool AddPosesThreadValid(const entry_ref*) const; 61 virtual void AddPosesCompleted(); 62 63protected: 64 virtual EntryListBase* InitDirentIterator(const entry_ref*); 65 virtual bool FSNotification(const BMessage*); 66 67 virtual bool IsDesktopView() const; 68 69 virtual bool Represents(const node_ref*) const; 70 virtual bool Represents(const entry_ref*) const; 71 72 void AdaptToVolumeChange(BMessage*); 73 void AdaptToDesktopIntegrationChange(BMessage*); 74 75private: 76 typedef BPoseView _inherited; 77}; 78 79 80inline bool 81DesktopPoseView::IsDesktopView() const 82{ 83 return true; 84} 85 86} // namespace BPrivate 87 88using namespace BPrivate; 89 90 91#endif // _DESKTOP_POSE_VIEW_H 92