qHexWalker 0.0.1
Hexagonal Grid Pathfinding & Maze Visualization on Interactive Maps
Loading...
Searching...
No Matches
MapProvider Class Referencefinal

#include <mapProvider.h>

+ Inheritance diagram for MapProvider:
+ Collaboration diagram for MapProvider:

Public Member Functions

 MapProvider (QObject *parent=nullptr)
 
 ~MapProvider () override
 
QString url () const noexcept
 
void exchangeUrlOffline (const QString &pathToMap)
 
void setUrl (const QString &url) noexcept
 
public::void urlChanged ()
 

Static Public Member Functions

static MapProviderError isSQLiteFileValidOffline (const QString &filePath)
 

Private Attributes

QString url_
 
QTemporaryFile * tempStyleFile_
 

Detailed Description

Definition at line 8 of file mapProvider.h.

Constructor & Destructor Documentation

◆ MapProvider()

MapProvider::MapProvider ( QObject *  parent = nullptr)
explicit

Definition at line 7 of file mapProvider.cpp.

References tempStyleFile_.

◆ ~MapProvider()

MapProvider::~MapProvider ( )
override

Definition at line 9 of file mapProvider.cpp.

References tempStyleFile_.

Member Function Documentation

◆ exchangeUrlOffline()

void MapProvider::exchangeUrlOffline ( const QString &  pathToMap)

Definition at line 54 of file mapProvider.cpp.

References setUrl(), and tempStyleFile_.

+ Here is the call graph for this function:

◆ isSQLiteFileValidOffline()

MapProviderError MapProvider::isSQLiteFileValidOffline ( const QString &  filePath)
static

Definition at line 11 of file mapProvider.cpp.

References CannotOpenDb, NoDb, Ok, and OtherErrors.

◆ setUrl()

void MapProvider::setUrl ( const QString &  url)
inlinenoexcept

Definition at line 22 of file mapProvider.h.

References url(), url_, and urlChanged().

Referenced by exchangeUrlOffline(), and EntryPoint::InitMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ url()

QString MapProvider::url ( ) const
inlinenoexcept

Definition at line 17 of file mapProvider.h.

References url_.

Referenced by setUrl().

+ Here is the caller graph for this function:

◆ urlChanged()

public::void MapProvider::urlChanged ( )

Referenced by setUrl().

+ Here is the caller graph for this function:

Member Data Documentation

◆ tempStyleFile_

QTemporaryFile* MapProvider::tempStyleFile_
private

Definition at line 34 of file mapProvider.h.

Referenced by MapProvider(), ~MapProvider(), and exchangeUrlOffline().

◆ url_

QString MapProvider::url_
private

Definition at line 33 of file mapProvider.h.

Referenced by setUrl(), and url().


The documentation for this class was generated from the following files: