1 // Copyright (C) 2013 James Turner - zakalawe@mac.com
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Library General Public
5 // License as published by the Free Software Foundation; either
6 // version 2 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Library General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef SG_PACKAGE_INSTALL_HXX
19 #define SG_PACKAGE_INSTALL_HXX
23 #include <simgear/misc/sg_path.hxx>
42 * create from a directory on disk, or fail.
44 static Install* createFromPath(const SGPath& aPath, Catalog* aCat);
46 unsigned int revsion() const
47 { return m_revision; }
49 Package* package() const
55 bool hasUpdate() const;
61 // boost signals time?
69 class PackageArchiveDownloader;
70 friend class PackageArchiveDownloader;
72 Install(Package* aPkg, const SGPath& aPath);
75 void writeRevisionFile();
78 unsigned int m_revision; ///< revision on disk
79 SGPath m_path; ///< installation point on disk
81 PackageArchiveDownloader* m_download;
87 } // of namespace simgear
89 #endif // of SG_PACKAGE_CATALOG_HXX