00001 // This file is part of BOINC. 00002 // http://boinc.berkeley.edu 00003 // Copyright (C) 2008 University of California 00004 // 00005 // BOINC is free software; you can redistribute it and/or modify it 00006 // under the terms of the GNU Lesser General Public License 00007 // as published by the Free Software Foundation, 00008 // either version 3 of the License, or (at your option) any later version. 00009 // 00010 // BOINC is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 // See the GNU Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 00017 00018 #ifndef _AUTO_UPDATE_ 00019 #define _AUTO_UPDATE_ 00020 00021 #include <string> 00022 #include <vector> 00023 #include "common_defs.h" 00024 #include "client_types.h" 00025 00026 using std::string; 00027 using std::vector; 00028 00029 class AUTO_UPDATE { 00030 public: 00031 bool present; 00032 bool install_failed; 00033 VERSION_INFO version; 00034 vector<FILE_REF> file_refs; 00035 PROJECT* project; 00036 00037 AUTO_UPDATE(); 00038 void init(); 00039 int parse(MIOFILE&); 00040 void write(MIOFILE&); 00041 int validate_and_link(PROJECT*); 00042 void install(); 00043 void poll(); 00044 }; 00045 00046 #endif 00047
1.5.6