00001 00004 /* Copyright (C) 2008 Lemur Consulting Ltd 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of the 00009 * License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef XAPIAN_INCLUDED_BACKENDMANAGER_REMOTE_H 00022 #define XAPIAN_INCLUDED_BACKENDMANAGER_REMOTE_H 00023 00024 #include "backendmanager.h" 00025 00026 #include <string> 00027 #include <vector> 00028 00030 class BackendManagerRemote : public BackendManager { 00032 void operator=(const BackendManagerRemote &); 00033 00035 BackendManagerRemote(const BackendManagerRemote &); 00036 00038 std::string last_wdb_name; 00039 00040 protected: 00042 std::string remote_type; 00043 00044 public: 00045 BackendManagerRemote(const std::string & remote_type_); 00046 00048 std::string get_writable_database_args(const std::string & name, 00049 const std::string & file); 00050 00052 std::string get_remote_database_args(const std::vector<std::string> & files, 00053 unsigned int timeout); 00054 00056 std::string get_writable_database_as_database_args(); 00057 00059 std::string get_writable_database_again_args(); 00060 }; 00061 00062 #endif // XAPIAN_INCLUDED_BACKENDMANAGER_REMOTE_H