2
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; version 2 of the
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19
#ifndef _DB_OBJECT_MASTER_FILTER_BE_H_
20
#define _DB_OBJECT_MASTER_FILTER_BE_H_
23
#include "grt/grt_manager.h"
25
#include "grts/structs.db.h"
26
#include "grts/structs.db.mgmt.h"
28
#include "wbpublic_public_interface.h"
33
class DBObjectFilterBE;
35
class WBPUBLICBACKEND_PUBLIC_FUNC DBObjectMasterFilterBE
38
DBObjectMasterFilterBE(GRTManager *grtm);
40
void add_filter(DBObjectFilterBE *filter);
41
void remove_all_filters();
43
void add_stored_filter_set(const std::string &name, std::list<std::string> &names);
44
void remove_stored_filter_set(int index);
45
void load_stored_filter_set(int index, std::list<int> &indexes);
46
void load_stored_filter_set_list(std::list<std::string> &names);
50
std::vector<DBObjectFilterBE *> _filters;
51
grt::DictRef _stored_master_filter_sets;
52
std::string _stored_master_filter_sets_filepath;
58
#endif /* _DB_OBJECT_MASTER_FILTER_BE_H_ */