Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / UAS / DtSR / DtSR_SearchResults.hh
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 // $XConsortium: DtSR_SearchResults.hh /main/4 1996/10/16 14:23:29 cde-hal $
24 #ifndef _DTSR_SEARCHRESULTS_HH_
25 #define _DTSR_SEARCHRESULTS_HH_
26
27 #include "UAS_SearchResults.hh"
28 #include "UAS_Collection.hh"
29 #include "DtSR_SearchResultsEntry.hh"
30 #include "DtSR_Stems.hh"
31
32 template <class T> class UAS_Pointer;
33 template <class T> class UAS_List;
34
35 class DtSR_SearchResultsEntry;
36
37 class DtSR_SearchResults : public UAS_SearchResults
38 {
39   public:
40     DtSR_SearchResults (UAS_Pointer<UAS_String> query,
41                         UAS_Pointer<UAS_String> scope_name,
42                         UAS_Pointer<UAS_List<UAS_SearchResultsEntry> > res,
43                         int ndocs, UAS_Pointer<DtSR_Stems>,
44                         UAS_SearchZones zones, int stype);
45
46     ~DtSR_SearchResults() {}
47
48     UAS_Pointer<UAS_List<UAS_SearchResultsEntry> > create_results(int, int);
49
50     static void sort(UAS_Pointer<UAS_List<UAS_SearchResultsEntry> >);
51
52     void merge(UAS_Pointer<DtSR_SearchResults> &);
53
54     UAS_Pointer<DtSR_Stems> stems(int dbn);
55
56     UAS_SearchZones &search_zones() { return f_zones; }
57
58     int search_type() { return f_search_type; }
59
60   protected:
61     friend class UAS_Pointer<DtSR_SearchResults>;
62     virtual void unreference();
63
64   private:
65
66     UAS_List<DtSR_Stems>        f_stems_list;
67     UAS_SearchZones             f_zones;
68
69     int                         f_search_type;
70 };
71
72 #endif