File indexing completed on 2024-04-21 03:48:25

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2014 Abhinav Gangwar <abhgang@gmail.com>
0004 //
0005 
0006 #ifndef MARBLE_COUNTRY_BY_SHAPE
0007 #define MARBLE_COUNTRY_BY_SHAPE
0008 
0009 // Qt
0010 #include <QObject>
0011 
0012 // Marble
0013 #include <marble/GeoDataCoordinates.h>
0014 
0015 namespace Marble
0016 {
0017 class CountryByShapePrivate;
0018 class MarbleWidget;
0019 
0020 class CountryByShape : public QObject
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit CountryByShape( MarbleWidget *widget );
0025     ~CountryByShape() override;
0026 
0027 Q_SIGNALS:
0028     void gameInitialized();
0029     void announceHighlight(qreal, qreal, GeoDataCoordinates::Unit );
0030 
0031 public Q_SLOTS:
0032     void postQuestion( QObject *gameObject );
0033     void initiateGame();
0034 
0035 private:
0036     CountryByShapePrivate * const d;
0037 };
0038 
0039 }   // namespace Marble
0040 
0041 #endif  // MARBLE_COUNTRY_BY_SHAPE