// Copyright 2016 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the Sample code usage restrictions document for further information. // #ifndef DISPLAY_MAP_H #define DISPLAY_MAP_H namespace Esri { namespace ArcGISRuntime { class Map; class MapGraphicsView; class GraphicsOverlay; class Credential; class Portal; //class AutenticationManager; } } #include class DisplayMap : public QMainWindow { Q_OBJECT // Q_PROPERTY(Esri::ArcGISRuntime::AuthenticationManager* authManager READ authManager NOTIFY authManagerChanged) public: DisplayMap(QWidget *parent = nullptr); ~DisplayMap(); void drawPoint( double latitude, double longitude); void drawLine(double coordinates[]); void putWarningImg(double latitude, double longitude, float size); static void init(); signals: void mapViewChanged(); // void authManagerChanged(); public slots: private slots: // void onPortalLoadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus); private: // Esri::ArcGISRuntime::AutenticationManager* authManager() const; Esri::ArcGISRuntime::Map* m_map; Esri::ArcGISRuntime::MapGraphicsView* m_mapView; Esri::ArcGISRuntime::GraphicsOverlay* overlay; Esri::ArcGISRuntime::Credential* m_credential = nullptr; Esri::ArcGISRuntime::Portal* m_portal = nullptr; }; #endif // DISPLAY_MAP_H