2015-07-12 21:10:02 -04:00
|
|
|
/*
|
|
|
|
|
XOWA: the XOWA Offline Wiki Application
|
|
|
|
|
Copyright (C) 2012 gnosygnu@gmail.com
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2015-11-01 20:50:05 -05:00
|
|
|
package gplx.xowa.drds; import gplx.*; import gplx.xowa.*;
|
2015-12-06 23:12:52 -05:00
|
|
|
import gplx.xowa.drds.pages.*; import gplx.xowa.drds.files.*;
|
2015-11-01 20:50:05 -05:00
|
|
|
import gplx.xowa.apps.*; import gplx.xowa.wikis.data.tbls.*;
|
2015-12-06 23:12:52 -05:00
|
|
|
import gplx.xowa.files.gui.*;
|
2015-11-01 20:50:05 -05:00
|
|
|
public class Xod_app {
|
|
|
|
|
private final Xoav_app app;
|
|
|
|
|
private final Xod_page_mgr page_mgr = new Xod_page_mgr();
|
2015-12-06 23:12:52 -05:00
|
|
|
private final Xod_file_mgr file_mgr = new Xod_file_mgr();
|
2015-11-01 20:50:05 -05:00
|
|
|
public Xod_app(Xoav_app app) {
|
|
|
|
|
this.app = app;
|
|
|
|
|
}
|
2015-12-06 23:12:52 -05:00
|
|
|
public Xow_wiki Get_wiki(String wiki_domain) {
|
|
|
|
|
return app.Wiki_mgri().Get_by_key_or_make_init_y(Bry_.new_u8(wiki_domain));
|
|
|
|
|
}
|
|
|
|
|
public Xod_page_itm Get_page(Xow_wiki wiki, String page_ttl) {
|
2015-11-01 20:50:05 -05:00
|
|
|
return page_mgr.Get_page(wiki, page_ttl);
|
|
|
|
|
}
|
2015-12-06 23:12:52 -05:00
|
|
|
public void Load_files(Xow_wiki wiki, Xod_page_itm pg, Xog_js_wkr js_wkr) {
|
|
|
|
|
file_mgr.Load_files(wiki, pg, js_wkr);
|
|
|
|
|
}
|
2015-07-12 21:10:02 -04:00
|
|
|
}
|