File indexing completed on 2024-05-12 05:22:10
0001 /* 0002 SPDX-FileCopyrightText: 2012 Jan Grulich <jgrulich@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QMainWindow> 0010 0011 #include "libkgapi2/staticmaps/staticmapmarker.h" 0012 #include "libkgapi2/staticmaps/staticmaptilefetchjob.h" 0013 0014 namespace Ui 0015 { 0016 class MainWindow; 0017 } 0018 0019 class MainWindow : public QMainWindow 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit MainWindow(QWidget *parent = nullptr); 0025 ~MainWindow() override; 0026 0027 public Q_SLOTS: 0028 void getImage(); 0029 void addMarker(); 0030 void slotTileFetched(KGAPI2::Job *); 0031 0032 private: 0033 Ui::MainWindow *m_ui; 0034 0035 QList<KGAPI2::StaticMapMarker> m_markers; 0036 };