| 1 | // -*- coding: utf-8 -*- |
| 2 | // |
| 3 | // addon_fwd.hxx --- Forward declarations for the FlightGear add-on |
| 4 | // infrastructure |
| 5 | // Copyright (C) 2017 Florent Rougon |
| 6 | // |
| 7 | // This program is free software; you can redistribute it and/or modify |
| 8 | // it under the terms of the GNU General Public License as published by |
| 9 | // the Free Software Foundation; either version 2 of the License, or |
| 10 | // (at your option) any later version. |
| 11 | // |
| 12 | // This program is distributed in the hope that it will be useful, |
| 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | // GNU General Public License for more details. |
| 16 | // |
| 17 | // You should have received a copy of the GNU General Public License along |
| 18 | // with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | |
| 21 | #ifndef FG_ADDON_FWD_HXX |
| 22 | #define FG_ADDON_FWD_HXX |
| 23 | |
| 24 | #include <simgear/structure/SGSharedPtr.hxx> |
| 25 | |
| 26 | namespace flightgear |
| 27 | { |
| 28 | |
| 29 | namespace addons |
| 30 | { |
| 31 | |
| 32 | class Addon; |
| 33 | class AddonManager; |
| 34 | class AddonVersion; |
| 35 | class AddonVersionSuffix; |
| 36 | class ResourceProvider; |
| 37 | |
| 38 | enum class UrlType; |
| 39 | class QualifiedUrl; |
| 40 | |
| 41 | enum class ContactType; |
| 42 | class Contact; |
| 43 | class Author; |
| 44 | class Maintainer; |
| 45 | |
| 46 | using AddonRef = SGSharedPtr<Addon>; |
| 47 | using AddonVersionRef = SGSharedPtr<AddonVersion>; |
| 48 | using ContactRef = SGSharedPtr<Contact>; |
| 49 | using AuthorRef = SGSharedPtr<Author>; |
| 50 | using MaintainerRef = SGSharedPtr<Maintainer>; |
| 51 | |
| 52 | namespace errors |
| 53 | { |
| 54 | |
| 55 | class error; |
| 56 | class error_loading_config_file; |
| 57 | class no_metadata_file_found; |
| 58 | class error_loading_metadata_file; |
| 59 | class error_loading_menubar_items_file; |
| 60 | class duplicate_registration_attempt; |
| 61 | class fg_version_too_old; |
| 62 | class fg_version_too_recent; |
| 63 | class invalid_resource_path; |
| 64 | class unable_to_create_addon_storage_dir; |
| 65 | |
| 66 | } // of namespace errors |
| 67 | |
| 68 | } // of namespace addons |
| 69 | |
| 70 | } // of namespace flightgear |
| 71 | |
| 72 | #endif // of FG_ADDON_FWD_HXX |