1 // $XConsortium: UAS_SearchScope.hh /main/5 1996/09/14 13:10:24 cde-hal $
2 #ifndef _UAS_SearchScope_hh_
3 #define _UAS_SearchScope_hh_
6 #include "UAS_Sender.hh"
7 #include "UAS_SearchZones.hh"
8 #include "UAS_BookcaseEntry.hh"
9 #include "UAS_Common.hh"
18 //typedef unsigned char bool;
20 class UAS_SearchScope;
23 UAS_SearchScope *f_search_scope;
27 UAS_SearchScope *f_search_scope;
31 UAS_SearchScope *f_search_scope;
34 class UAS_SearchScope: public UAS_Base {
38 UAS_SearchScope (const char *name,
39 UAS_PtrList<UAS_BookcaseEntry> &bcases,
40 unsigned int component_mask, bool ro = FALSE);
43 /* -------- data retrieval methods -------- */
45 const char *name() const
47 void set_name (const char *name);
49 UAS_SearchZones &search_zones()
50 { return f_search_zones; }
52 UAS_PtrList<UAS_BookcaseEntry> &bookcases()
55 void bookcases(UAS_PtrList<UAS_BookcaseEntry> &);
57 /* -------- data setting methods -------- */
58 const char *name (const char *newname);
60 void search_zones (UAS_SearchZones &search_zones)
61 { f_search_zones = search_zones; }
63 /* -------- delete flag -------- */
65 bool read_only() const
66 { return (f_read_only); }
68 { f_read_only = TRUE; }
75 void set_infolib(UAS_Pointer<UAS_Common> il)
78 UAS_Pointer<UAS_Common> get_infolib()
81 STATIC_SENDER_HH (ScopeCreated);
82 STATIC_SENDER_HH (ScopeDeleted);
83 STATIC_SENDER_HH (ScopeRenamed);
86 /* -------- for debug only -------- */
94 UAS_Pointer<UAS_Common> f_infolib;
95 UAS_SearchZones f_search_zones;
96 UAS_PtrList<UAS_BookcaseEntry> f_bcases;