00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 // (c) 2002 Patrick S. Vogt <tille@handhelds.org> 00010 #ifndef PACKAGELISTLOCAL_H 00011 #define PACKAGELISTLOCAL_H 00012 00013 #include "packagelist.h" 00014 00015 00016 #define HACK 00017 #ifdef HACK 00018 static QString listsDir="/usr/lib/ipkg/"; 00019 static QString statusDir="/usr/lib/ipkg/"; 00020 #endif 00021 00022 class PackageListLocal : public PackageList { 00023 public: 00024 PackageListLocal(); 00025 PackageListLocal( PackageManagerSettings* ); 00026 virtual ~PackageListLocal(); 00027 00028 public slots: 00029 void update(); 00030 private: 00031 #ifndef HACK 00032 QString listsDir; 00033 QString statusDir; 00034 #endif 00035 void parseStatus(); 00036 void parseList(); 00037 }; 00038 00039 #endif
1.4.2